Seite 1 von 1

ImportError: No module named math

Verfasst: Samstag 8. März 2008, 12:54
von Twilo
Hallo,

bei Trac erhalte ich jetzt folgende Exception

Code: Alles auswählen

Oops...

Trac detected an internal error: No module named math

Traceback (most recent call last):
  File "/home/viptrdbj/trac.xxx.de/xxx/index.cgi", line 22, in ?
    from trac.web import cgi_frontend
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/web/__init__.py", line 1, in ?
    from trac.web.api import *
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/web/api.py", line 17, in ?
    from BaseHTTPServer import BaseHTTPRequestHandler
  File "/usr/lib/python2.4/BaseHTTPServer.py", line 76, in ?
    import mimetools
  File "/usr/lib/python2.4/mimetools.py", line 6, in ?
    import tempfile
  File "/usr/lib/python2.4/tempfile.py", line 33, in ?
    from random import Random as _Random
  File "/usr/lib/python2.4/random.py", line 43, in ?
    from math import log as _log, exp as _exp, pi as _pi, e as _e
ImportError: No module named math
mit der python-Shell erhalte ich diesen Fehler nicht

Code: Alles auswählen

python
Python 2.4.4 (#2, Mar  3 2008, 01:16:37)
[GCC 4.2.3 (Debian 4.2.3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from math import log as _log, exp as _exp, pi as _pi, e as _e
>>>
Woran könnte das liegen?

mfg
Twilo

Verfasst: Samstag 8. März 2008, 18:39
von mitsuhiko
Irgendwas löscht deinen sys.path zb.