[Tutor] problem importing class
dyoo at hkn.eecs.berkeley.edu
Thu Oct 26 18:37:27 CEST 2006
It looks like people have identified the problem, that your site.py module
isn't being found because it conflicts with something from Python's
This isn't the first time this kind of problem has hit people. This
problem is well known and is the subject of a Python Enhancement Proposal
(PEP 328). If you're using Python 2.5, you can use a new feature called
'absolute_import' to avoid the import problem. See:
for more details.
In the meantime, if you can't depend on using Python 2.5 yet, just rename
your site.py module to something else to avoid the collision between
Python's own site.py module and your own.
More information about the Tutor