error with /usr/lib/python2.3/compileall.py: "Sorry invalid mode: U"

Erwin S. Andreasen erwin+usenet at andreasen.org
Tue Jan 13 08:12:39 EST 2004


Marco Herrn <herrn at gmx.net> writes:

> I tried to install a package under debian, where in the postinstall
> phase some python scripts are called. Then I got the error
> "Sorry invalid mode: U".

> I looked what this script does and it is the following:
>
> 	python -O /usr/lib/python2.3/compileall.py /usr/share/woody

I think this happens because your "python" is really a link to a
pre-2.3 python. The 'U' option to open appeared in 2.3.


-- 
===============================================================
<erwin at andreasen.org>                           Herlev, Denmark     
<URL:http://www.andreasen.org/>                             <*>   
===============================================================




More information about the Python-list mailing list