Dino, you seemed to have missed the part about pyxml..<br><br>It works in cpython with pyxml installed. However, pyxml is playing tricks with paths etc, and there might even be pyd:s involved..<br><br>C:\Python24&gt;python.exe
<br>Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32<br>Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>&gt;&gt;&gt; import xml
<br>&gt;&gt;&gt; xml.__file__<br>'C:\\Python24\\lib\\site-packages\\_xmlplus\\__init__.pyc'<br>&gt;&gt;&gt; from xml import xpath<br>&gt;&gt;&gt;<br><br><div><span class="gmail_quote">On 5/17/06, <b class="gmail_sendername">
Dino Viehland</b> &lt;<a href="mailto:dinov@exchange.microsoft.com">dinov@exchange.microsoft.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>










<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">This doesn't work for my in CPython
2.4 either, so I think the docs are wrong:</span></font></p></div><div><span class="q">

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&gt;&gt;&gt; from xml import xpath</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Traceback (most recent call last):</span></font></p></span></div><div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp; File &quot;&lt;stdin&gt;&quot;, line 1,
in ?</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">ImportError: cannot import name xpath</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&gt;&gt;&gt; import sys</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&gt;&gt;&gt; sys.version</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">'2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC
v.1310 32 bit (Intel)]'</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&gt;&gt;&gt;&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<p><font color="navy" face="Bookman Old Style" size="1"><span style="font-size: 8pt; color: navy;"><a href="http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Do
you want to help develop Dynamic languages on CLR?</a> </span></font><font color="white" face="Bookman Old Style" size="1"><span style="font-size: 1pt; color: white;">(<a href="http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038</a>)</span></font><font face="Bookman Old Style" size="1"><span style="font-size: 8pt;"></span></font></p>

</div>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:users-bounces@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
users-bounces@lists.ironpython.com</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Greg Lee<br>
<b><span style="font-weight: bold;">Sent:</span></b> Tuesday, May 16, 2006 3:17
PM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:users@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users@lists.ironpython.com</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [IronPython] from xml
import xpath</span></font></p>

</div></div><div><span class="e" id="q_10b438c1498d8662_3">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I'm
porting an application that uses PyXML.&nbsp; The following from the PyXml
documentation <a href="http://pyxml.sourceforge.net/topics/howto/section-XPath.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://pyxml.sourceforge.net/topics/howto/section-XPath.html</a>

doesn't work:</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;">from xml import xpath</span></font> <br>
<font face="Courier New" size="2"><span style="font-size: 10pt;">Traceback
(most recent call last):</span></font> <br>
<font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;
File , line 0, in input##113</span></font> <br>
<font face="Courier New" size="2"><span style="font-size: 10pt;">ImportError:
cannot import xpath from xml</span></font> </p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Any
suggestions?&nbsp; I messed around with adding site-packages to IRONPYTHONPATH
but other BadThings happened.</span></font> </p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Here's
the installation:</span></font> </p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;">Microsoft Windows XP [Version 5.1.2600]<br>
IronPython 1.0.60420 (Beta) on .NET 2.0.50727.42<br>
<br>
python 2.4.2<br>
pyxml 0.8.4<br>
pywin32 205<br>
py2exe 0.6.3<br>
<br>
IRONPYTHONPATH = c:\python24\lib</span></font> </p>

</span></div><div></div>

</div>



</div><br>_______________________________________________<br>users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:users@lists.ironpython.com">users@lists.ironpython.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br><br><br></blockquote></div><br>