[XML-SIG] problem with insallation
P-O Bengtsson
p.o.bengtsson at gmail.com
Thu Jun 22 12:01:55 CEST 2006
That solved the problem, thanks
There were another file named xml, that was imported instead of the one
intended. I should have thought of that my self from the beginning…
Once again, thanks for the help!
/P-O
On 6/21/06, Dieter Maurer <dieter at handshake.de> wrote:
>
> P-O Bengtsson wrote at 2006-6-21 00:58 +0200:
> >i have tried both and got the same error message. I have also tried to
> >import the dom package in the same two ways without any luck...
> >
> >On 6/20/06, Dieter Maurer <dieter at handshake.de> wrote:
> >> P-O Bengtsson wrote at 2006-6-20 10:34 +0200:
> >> > ...
> >> >"import xml" works fine, but when I try to import dom or sax package I
> >> get
> >> >the error message
> >> >
> >> >" ImportError: No module named sax"
>
> Several possibilities:
>
> * You get an "xml" from a different position than you
> expect.
>
> You can find out via "xml.__file__".
>
> * Your "xml" lacks an "__init__.py".
>
> In this case, it is not viewed as a Python package
> (with subpackages and/or modules)
>
> * The "sax", "dom", ... folders lack "__init__.py"
> files
>
>
> --
> Dieter
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/xml-sig/attachments/20060622/f30b9a91/attachment.html
More information about the XML-SIG
mailing list