By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,930 Members | 2,018 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,930 IT Pros & Developers. It's quick & easy.

urllib.open problem

P: n/a
Hi Guys,
I have a python script which runs perfectly on my machine.
However a machine that I tested it on gives the following error
message:

Traceback (most recent call last):
File "whip.py", line 616, in OnRebootRunning
File "whip.py", line 626, in RebootCustom
File "urllib.pyc", line 77, in urlopen
File "urllib.pyc", line 170, in open
TypeError: cannot concatenate 'str' and 'NoneType' objects

The code snipplet where this error
happens is
f = urllib.urlopen("http://www.hotmail.com/)
notes= f.readlines()

Does anyone know what causes this error? Im perplexed because it works
on some machines and it doesnt work on other computers although they all
have the same spec.
Thanks for the help
Cheers
Stan
Sep 14 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Thu, 15 Sep 2005 09:19:53 +1000, Astan Chee <st***@al.com.au>
declaimed the following in comp.lang.python:
The code snipplet where this error
happens is
f = urllib.urlopen("http://www.hotmail.com/)
notes= f.readlines()
Is that a cut&paste, or did you type it by hand?

Note that you have no closing " on that URL.
-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Sep 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.