New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Python Problems

Post Reply New Thread Subscribe

Thread Tools
Posts: n/a

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...
QUOTE Thanks
Posts: n/a

This went away when I upgraded my version of python.
QUOTE Thanks

witeshark's Avatar
Member Since: Mar 09, 2004
Location: Miami FL
Posts: 2,860
witeshark will become famous soon enough
Mac Specs: G4 1Ghz OS X 10.4.7

witeshark is offline
Nice to know - I have not yet tried Python...
QUOTE Thanks
Posts: n/a

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.
QUOTE Thanks

Post Reply New Thread Subscribe

« Converting VB projects to RealBASIC | CFMX & Tomcat install Issues!! »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
HELP! New G4 emac- problems uploading and sending attachments braford Other Hardware and Peripherals 0 02-13-2004 02:19 PM
help: my G5 is having some major starting up problems h3o Apple Desktops 12 01-10-2004 12:25 AM
G4 533 digital audio shutdown problems showgren Apple Desktops 0 01-01-2004 04:08 PM
gif animation problems in Entourage via email totalbuddy Schweb's Lounge 0 12-18-2003 04:44 PM

All times are GMT -4. The time now is 05:41 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?