Results 1 to 4 of 4

Thread: Python Problems

  1. #1
    Python Problems
    I'm very new to python... ran into this error


    import urllib
    proxies = proxies={'http': ''}
    filehandle = urllib.urlopen('', proxies=proxies)


    AttributeError: 'NoneType' object has no attribute 'read'

    The problem is in the proxies variable... running without it (proxies=None) generates no error. Anyone know python?
    p.s. I took this code straight off the python website describing the urllib module... so it *should* work...

  2. #2
    This went away when I upgraded my version of python.

  3. #3

    witeshark's Avatar
    Member Since
    Mar 09, 2004
    Miami FL
    G4 1Ghz OS X 10.4.7
    Nice to know - I have not yet tried Python...

  4. #4
    I've only used it for a few days now, and I already feel pretty comfortable in it. It's very easy to use. It used to be if I had something to do that I couldn't do by hand (like say... decrypting an encypted message, or processing a file) I would write up a little terminal C++ program to do it for me, but now that I've used python that seems ridiculous. Python is not only a thousand times easier to do anything I could ever do in C++ (aside from real development), but it also makes stuff that would have been very difficult... such as http operations...very easy. I'd recommend it, you can pick it up in a few days.

    Oh, and make sure you update first.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Python Fault
    By TOmike15 in forum macOS - Development and Darwin
    Replies: 4
    Last Post: 06-10-2015, 11:05 AM
  2. Using Python
    By AllanGreen in forum macOS - Apps and Games
    Replies: 8
    Last Post: 07-07-2012, 10:11 PM
  3. Python
    By NickBird in forum Switcher Hangout
    Replies: 0
    Last Post: 11-14-2008, 01:54 AM
  4. python/textstat
    By coach_z in forum macOS - Apps and Games
    Replies: 1
    Last Post: 04-26-2005, 12:27 AM
  5. PYTHON PROGRAMMERS!!! how do i compile/run linux-based python code on OS X
    By pkny in forum macOS - Development and Darwin
    Replies: 4
    Last Post: 03-20-2005, 05:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts