Possible problem in compiler/transformer.py of Python2.4...
venkatbo at yahoo.com
venkatbo at yahoo.com
Thu Aug 31 01:18:36 EDT 2006
Hi all,
I have python2.4 running on ppc-linux 2.6.17. I'm attempting to get
a TurboGears 0.9a9 (using CherryPy 2.2.1) based app running on
it.
During the TG-app startup sequence, it reaches the point where it
imports cherrypy, which eventually causes py2.4's system file,
compiler/transformer.py, to import a module by name, symbol.
Unable to find it, python quits...
Following are the error msgs:
...
File "start-tg-app.py", line 24, in ?
import cherrypy
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/__init__.py",
line 10, in ?
import config
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/config.py",
line 8, in ?
from cherrypy.lib import autoreload, cptools, httptools
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/lib/cptools.py",
line 252, in ?
import compiler
File "/usr/lib/python2.4/compiler/__init__.py", line 24, in ?
from transformer import parse, parseFile
File "/usr/lib/python2.4/compiler/transformer.py", line 30, in ?
import symbol
ImportError: No module named symbol
...
What is surprising is I checkd the entire py2.4 distribution and I
can't see a symbol.py (or a module with symbol defined) where
transformer.py could import the symbol module form. All I can see
is:
...../lib/python2.4/compiler/symbols.py
in the same directory as that of transformer.py (in compiler).
Has anyone seen this error, or have any pointers to solve the problem.
Thanks,
/venkat
More information about the Python-list
mailing list