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

Guido van Rossum guido@beopen.com
Mon, 10 Jul 2000 10:32:44 -0500


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?

--Guido van Rossum (home page: http://dinsdale.python.org/~guido/)