[Python-Dev] strange import encodings error in trunk?

Thomas Wouters thomas at python.org
Sat Apr 12 04:01:48 CEST 2008


On Sat, Apr 12, 2008 at 3:31 AM, Gregory P. Smith <greg at krypto.org> wrote:

> has anyone ever seen this error?  this is a pristine --with-pydebug build
> of trunk:
>
> >>> msg = 'ABC'
> >>> x = msg.decode('utf8')
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/home/gps/python/trunk/Lib/encodings/__init__.py", line 100, in
> search_function
>     level=0)
> TypeError: SetupPathsAndImport() got an unexpected keyword argument
> 'level'
>

Your Google sitecustomize is in the way :) Run python with -E.

-- 
Thomas Wouters <thomas at python.org>

Hi! I'm a .signature virus! copy me into your .signature file to help me
spread!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20080412/5dfe1a5e/attachment.htm 


More information about the Python-Dev mailing list