Python2.3 absolute import error
m.doering at bgbm.org
Tue Aug 26 09:41:13 CEST 2003
After diving into the site.py traceback I noticed that I had a module named
"types" in my package and site.py tried to import the standard types module
but ended up importing my custom module instead (the scripts directory is
the first in sys.path).
I renamed it and everything seems to work fine.
"A.M. Kuchling" <amk at amk.ca> wrote in message
news:g8KcnaISvKGppdeiRTvUqg at speakeasy.net...
> On Mon, 25 Aug 2003 17:56:52 +0200,
> > 'import site' failed; use -v for traceback
> ^^^^ what's this?
> I expect the installation is incorrect or sys.path is messed up in some
> and suspect that your import problems are only a side effect, not the root
> cause of the problem. Run "python -v" to see the traceback from site.py.
More information about the Python-list