[Python-Dev] Demo/embed causes 'import site' failure

M.-A. Lemburg mal@lemburg.com
Mon, 10 Jul 2000 16:47:06 +0200


Guido van Rossum wrote:
> 
> I decided to build the simple embedding demo in Demo/embed/.  After
> fixing the Makefile (checkins coming), I ended up with one problem:
> the 'import site.py' failed error.  When using -v I get this traceback:
> 
> 'import site' failed; traceback:
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.0/site.py", line 146, in ?
>     sys.setdefaultencoding('ascii')
> LookupError: no codec search functions registered: can't find encoding
> 
> Is there some part of the initialization that I'm forgetting?

Looks like the 'import encodings' failed. Could you check this
with -vv ?

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/