Hallo Liste vielleicht kennt jemand von euch dieses Problem oder kann sich einen Reim darauf machen bzw. sieht sofort, was hier falsch läuft. 'import site' scheitert, weil 'import stat' scheitert und dies, weil es dieses Modul angeblich nicht gibt. Doch das stat-Modul ist vorhanden (s.u.) und '/usr/local/lib/python2.5/' ist in sys.path enthalten, sonst würden os und posixpath ja auch nicht gefunden werden... Das Gleiche passiert dann nochmals mit 'import sre_constants' Python wird von einem anderen Programm auf einer Sun gestartet [SunOS <hostname> 5.9 Generic_112233-07 sun4u sparc SUNW,Sun-Fire-V240] hier der trace vom Python-Start: start Python call.. PYCALL is /usr/local/bin/python -v # installing zipimport hook import zipimport # builtin # installed zipimport hook # /usr/local/lib/python2.5/site.pyc matches /usr/local/lib/python2.5/site.py import site # precompiled from /usr/local/lib/python2.5/site.pyc # /usr/local/lib/python2.5/os.pyc matches /usr/local/lib/python2.5/os.py import os # precompiled from /usr/local/lib/python2.5/os.pyc import posix # builtin import posixpath # from /usr/local/lib/python2.5/posixpath.py # can't create /usr/local/lib/python2.5/posixpath.pyc 'import site' failed; traceback: Traceback (most recent call last): File "/usr/local/lib/python2.5/site.py", line 62, in <module> import os File "/usr/local/lib/python2.5/os.py", line 49, in <module> import posixpath as path File "/usr/local/lib/python2.5/posixpath.py", line 14, in <module> import stat ImportError: No module named stat ls -l /usr/local/lib/python2.5/stat* -rw-r--r-- 1 root bin 1667 Mai 17 2007 /usr/local/lib/python2.5/stat.py -rw-r--r-- 1 root other 2484 Jul 11 2007 /usr/local/lib/python2.5/stat.pyc -rw-r--r-- 1 root bin 2484 Mai 17 2007 /usr/local/lib/python2.5/stat.pyo ... und dann nochmals im Python-Program: Traceback (most recent call last): File "/opt2/app/tc50_val/xml_report/replprtbom.py", line 13, in <module> from parse_dbe import read_dbe File "/opt2/app/tc50_val/xml_report/parse_dbe.py", line 13, in <module> from xmlgen import repl_xml_special_chrs File "/opt2/app/tc50_val/xml_report/xmlgen.py", line 67, in <module> import re File "/usr/local/lib/python2.5/re.py", line 97, in <module> import sre_compile File "/usr/local/lib/python2.5/sre_compile.py", line 15, in <module> from sre_constants import * ImportError: No module named sre_constants ls -l /usr/local/lib/python2.5/sre_constants* -rw-r--r-- 1 root bin 7137 Mai 17 2007 /usr/local/lib/python2.5/sre_constants.py -rw-r--r-- 1 root other 6165 Jul 11 2007 /usr/local/lib/python2.5/sre_constants.pyc -rw-r--r-- 1 root bin 6165 Mai 17 2007 /usr/local/lib/python2.5/sre_constants.pyo Cioa Rainer
participants (1)
-
Rainer Fischbach