coercing to Unicode: need string or buffer, NoneType found

Jon Bowlas j.bowlas at ucl.ac.uk
Thu Jul 27 06:20:46 EDT 2006


It says line 8 in the traceback so I guess its 

result[i] = unicode(result[i], 'latin-1')

Jon
----- Original Message ----- 
From: "Sybren Stuvel" <sybrenUSE at YOURthirdtower.com.imagination>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Thursday, July 27, 2006 11:06 AM
Subject: Re: coercing to Unicode: need string or buffer, NoneType found


> Jon Bowlas enlightened us with:
>> I wrote this script in Zope some time ago and it worked for a while,
>> but now I'm getting the following error:
>> TypeError: coercing to Unicode: need string or buffer, NoneType
>> found
> 
> What line is causing the error?
> 
> Sybren
> -- 
> The problem with the world is stupidity. Not saying there should be a
> capital punishment for stupidity, but why don't we just take the
> safety labels off of everything and let the problem solve itself? 
>                                             Frank Zappa
> -- 
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list