Cannot import htmllib
Fredrik Lundh
fredrik at pythonware.com
Thu Apr 13 08:20:52 EDT 2006
geir.smestad at gmail.com wrote:
> -----
> Traceback (most recent call last):
> File "/home/geir/programmering/htmlparse/formatter.py", line 1, in
> -toplevel-
> import formatter
> File "/home/geir/programmering/htmlparse/formatter.py", line 2, in
> -toplevel-
> import htmllib
> File "/usr/lib/python2.4/htmllib.py", line 9, in -toplevel-
> from formatter import AS_IS
> ImportError: cannot import name AS_IS
> -----
> As far as I can see, the files formatter.py and htmllib.py are where
> they are supposed to be, in /usr/lib/python2.4/.
not only that, but according to the traceback, you also have a formatter
module under
/home/geir/programmering/htmlparse
(by default, the current directory is part of the system path).
</F>
More information about the Python-list
mailing list