Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Python and XML (http://www.velocityreviews.com/forums/t320505-re-python-and-xml.html)

Martin v. =?iso-8859-15?q?L=F6wis?= 08-03-2003 05:48 PM

Re: Python and XML
 
"Matthieu M." <mat@frheaven.com> writes:

> from xml.dom import pulldom

[...]
> ImportError: No module named dom
>
> When I look in my Python folder I see .py files in xml/dom...


Please report

1. the output of

import xml
print xml.__file__

2. The contents of the directory printed above

3. The contents of the dom directory inside.

Regards,
Martin

Matthieu M. 08-03-2003 06:37 PM

Re: Python and XML
 
Martin v. Löwis wrote:

> 1. the output of
>
> import xml
> print xml.__file__


c:\python23\lib\xml\__init__.pyc

> 2. The contents of the directory printed above


C:\Python23\Lib\xml

03/08/2003 15:48 <REP> .
03/08/2003 15:48 <REP> ..
03/08/2003 15:48 <REP> dom
03/08/2003 15:46 <REP> parsers
03/08/2003 15:48 <REP> sax
26/01/2003 10:06 1 053 __init__.py
03/08/2003 15:48 1 053 __init__.pyc

> 3. The contents of the dom directory inside.


C:\Python23\Lib\xml\dom

03/08/2003 15:48 <REP> .
03/08/2003 15:48 <REP> ..
24/04/2003 20:03 3 580 domreg.py
03/08/2003 15:48 3 894 domreg.pyc
29/06/2003 01:09 37 362 expatbuilder.py
25/01/2003 10:11 5 471 minicompat.py
03/08/2003 15:48 6 279 minicompat.pyc
06/04/2003 22:12 67 941 minidom.py
25/01/2003 12:07 964 NodeFilter.py
24/04/2003 20:03 12 325 pulldom.py
03/08/2003 15:48 16 975 pulldom.pyc
25/01/2003 10:29 12 772 xmlbuilder.py
27/02/2003 17:13 4 137 __init__.py
03/08/2003 15:48 8 642 __init__.pyc

In fact I've done all this things in the Python Shell, otherwise, when I
lauch it with "python foo.py" I've got the same kind of errors.
I think the problem comes from here, but I'm not skilled in Python, so...

Thanks

--
Matthieu M. <mat@frheaven.com>
http://www.frheaven.com


Martin v. =?iso-8859-15?q?L=F6wis?= 08-03-2003 08:11 PM

Re: Python and XML
 
"Matthieu M." <mat@frheaven.com> writes:

> In fact I've done all this things in the Python Shell, otherwise, when
> I lauch it with "python foo.py" I've got the same kind of errors.
> I think the problem comes from here, but I'm not skilled in Python, so...


Sorry, I have no idea why it fails to find the dom package.

Regards,
Martin


All times are GMT. The time now is 10:50 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57