[Python-Dev] python -U fails

Vladimir Marangozov Vladimir.Marangozov@inrialpes.fr
Thu, 7 Sep 2000 18:46:11 +0200 (CEST)

Seen on c.l.py (import site fails due to eval on an unicode string):

~/python/Python-2.0b1>python -U
'import site' failed; use -v for traceback
Python 2.0b1 (#2, Sep  7 2000, 12:59:53) 
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> eval (u"1+2")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: eval() argument 1 must be string or code object

The offending eval is in os.py

Traceback (most recent call last):
  File "./Lib/site.py", line 60, in ?
    import sys, os
  File "./Lib/os.py", line 331, in ?
    if _exists("fork") and not _exists("spawnv") and _exists("execv"):
  File "./Lib/os.py", line 325, in _exists

       Vladimir MARANGOZOV          | Vladimir.Marangozov@inrialpes.fr
http://sirac.inrialpes.fr/~marangoz | tel:(+33-4)76615277 fax:76615252