import site error!!: in building python 2.0

etsang at my-deja.com etsang at my-deja.com
Wed Dec 6 13:42:03 EST 2000


Hi, when I build the python 2.0 with resource modules turned on, python
compliles and I get the executable. However, I encountered the follwing
error when I test run the executable:

./python -v
'import site' failed; traceback:
ImportError: No module named site
Python 2.0 (#1, Dec  6 2000, 10:33:11)
[GCC 2.8.1] on sunos5
Type "copyright", "credits" or "license" for more information.

>>> >>> import resource
import resource # builtin
>>> ^D
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] signal
# cleanup[1] exceptions
# cleanup[1] resource
# cleanup sys
# cleanup __builtin__
# cleanup ints
# cleanup floats

What is going on???

Also when I try insering the line
expect expect.a in Setup
and try to make again (after make clean and deleting buildno,
getbuildinfo.o and those .a files), it does ot link expect.a?
anyone tried bulding python 2.0 with expect??

Thanks


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list