TypeError: coercing to Unicode:

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2009
Posts: 19
Reputation: starzstar is an unknown quantity at this point 
Solved Threads: 0
starzstar starzstar is offline Offline
Newbie Poster

TypeError: coercing to Unicode:

 
0
  #1
Feb 28th, 2009
I am tryingto download a file from the server ,I dont know why i m getting the following error

localFile = open(localFileName, 'wb')
TypeError: coercing to Unicode: need string or buffer, type found

Any clues..?

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 608
Reputation: jrcagle is on a distinguished road 
Solved Threads: 150
jrcagle jrcagle is offline Offline
Practically a Master Poster

Re: TypeError: coercing to Unicode:

 
0
  #2
Mar 1st, 2009
Hm. The only thing I can think of is that your LocalFileName is not valid ASCII.

Jeff
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Python
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC