ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activepython
activepython
Re: Issue Attempting to Import xml.parsers.xmlproc in ActivePython
by Bob Kline other posts by this author
Apr 23 2008 2:11PM messages near this date
view in the new Beta List Site
Issue Attempting to Import xml.parsers.xmlproc in ActivePython | Shelve bug in ActiveState Python? [or Python as Houdini]
Fraser MacKenzie wrote:
>  I am using python2.5 (downloaded and installed about a week ago).
> 
>  I am attempting to validate an XML file, using the appropriate DTD.  
>  In looking at the ASPN Cookbook, it appears that I am suppossed to use 
>  the following imports:
> 
>  from xml.parsers.xmlproc import xmlproc
>  from xml.parsers.xmlproc import xmlval
>  from xml.parsers.xmlproc import xmldtd
> 
>  However, when I attempt to run my python program, I get the following 
>  errors:
> 
>  Traceback (most recent call last):
>    File "./feedManager.py", line 62, in <module>
>      from xml.parsers.xmlproc import xmlproc
>  ImportError: No module named xmlproc
> 
>  I have tried just importing xml.parsers, and that has no issue.  Is 
>  there a known issue with the latest release of ActivePython and xmlproc?

You need to install PyXML [1].  You might want to look at more recent 
packages, such as lxml.etree [2], as it's not clear whether PyXML is 
still being maintained.

[1] http://www.python.org/community/sigs/current/xml-sig/
[2] http://codespeak.net/lxml/

-- 
Bob Kline
http://www.rksystems.com
mailto:bkline@[...].com

_______________________________________________
ActivePython mailing list
ActivePython@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
Thread:
Fraser MacKenzie
Bob Kline

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved