[IronPython] from xml import xpath
Simon Dahlbacka
simon.dahlbacka at gmail.com
Wed May 17 20:41:25 CEST 2006
Dino, you seemed to have missed the part about pyxml..
It works in cpython with pyxml installed. However, pyxml is playing tricks
with paths etc, and there might even be pyd:s involved..
C:\Python24>python.exe
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import xml
>>> xml.__file__
'C:\\Python24\\lib\\site-packages\\_xmlplus\\__init__.pyc'
>>> from xml import xpath
>>>
On 5/17/06, Dino Viehland <dinov at exchange.microsoft.com> wrote:
>
> This doesn't work for my in CPython 2.4 either, so I think the docs are
> wrong:
>
>
>
> >>> from xml import xpath
>
> Traceback (most recent call last):
>
> File "<stdin>", line 1, in ?
>
> ImportError: cannot import name xpath
>
> >>> import sys
>
> >>> sys.version
>
> '2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]'
>
> >>>
>
>
>
> Do you want to help develop Dynamic languages on CLR?<http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038>
> (
> http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038
> )
> ------------------------------
>
> *From:* users-bounces at lists.ironpython.com [mailto:
> users-bounces at lists.ironpython.com] *On Behalf Of *Greg Lee
> *Sent:* Tuesday, May 16, 2006 3:17 PM
> *To:* users at lists.ironpython.com
> *Subject:* [IronPython] from xml import xpath
>
>
>
> I'm porting an application that uses PyXML. The following from the PyXml
> documentation http://pyxml.sourceforge.net/topics/howto/section-XPath.htmldoesn't work:
>
> from xml import xpath
> Traceback (most recent call last):
> File , line 0, in input##113
> ImportError: cannot import xpath from xml
>
> Any suggestions? I messed around with adding site-packages to
> IRONPYTHONPATH but other BadThings happened.
>
> Here's the installation:
>
> Microsoft Windows XP [Version 5.1.2600]
> IronPython 1.0.60420 (Beta) on .NET 2.0.50727.42
>
> python 2.4.2
> pyxml 0.8.4
> pywin32 205
> py2exe 0.6.3
>
> IRONPYTHONPATH = c:\python24\lib
>
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060517/11bf238b/attachment.html>
More information about the Ironpython-users
mailing list