Re: problem with insallation

"P-O Bengtsson" <[email protected]>
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
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 <[email protected]> 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 <[email protected]> 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
>

_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.