<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Bookman Old Style";
        panose-1:2 5 6 4 5 5 5 2 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>This is probably really tough to do &#8211;
in order to know the PYD is playing tricks we&#8217;d need to support using the
PYD, and then it&#8217;s not a problem anymore. &nbsp;I&#8217;ll open a bug on this
anyway to see if we can make the experience better, but I have no idea what sort
of time frame we&#8217;d be able to do this in (another option for us would be
to create an xpath wrapper around System.Xml.XPath which looks like pyxml, but
it&#8217;d not solve any larger problems around PYDs in general).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=1 color=navy face="Bookman Old Style"><span
style='font-size:8.0pt;font-family:"Bookman Old Style";color:navy'><a
href="http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038">Do
you want to help develop Dynamic languages on CLR?</a> </span></font><font
size=1 color=white face="Bookman Old Style"><span style='font-size:1.0pt;
font-family:"Bookman Old Style";color:white'>(http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)</span></font><font
size=1 face="Bookman Old Style"><span style='font-size:8.0pt;font-family:"Bookman Old Style"'><o:p></o:p></span></font></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

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

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

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Greg Lee<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, May 19, 2006 10:18
AM<br>
<b><span style='font-weight:bold'>To:</span></b> Discussion of IronPython<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [IronPython] from xml
import xpath</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Is a better diagnostic message
possible?&nbsp; This would let us distinguish a pyd problem from &quot;playing
tricks with paths&quot;, and presumably there might be some value in fixing any
problems in the latter.</span></font><o:p></o:p></p>

</div>

<blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com]<b><span
style='font-weight:bold'>On Behalf Of </span></b>Dino Viehland<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, May 17, 2006
11:50 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Discussion of IronPython<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [IronPython] from xml
import xpath</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You&#8217;re right, I did miss
that&#8230;&nbsp; Looking at this page: <a
href="http://pyxml.sourceforge.net/topics/howto/section-install.html">http://pyxml.sourceforge.net/topics/howto/section-install.html</a>&nbsp;
It would seem that you may be right about the Pyd&#8217;s (it at least requires
a C compiler, making that likely &#8211; and almost guaranteeing it won&#8217;t
work w/ IronPython).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Unfortunately we don&#8217;t support
PYD&#8217;s currently (and aren&#8217;t likely to soon) so most likely this
won&#8217;t currently work. If you absolutely need XPath support in the mean
time I&#8217;d suggest using .NET&#8217;s XMLPath (and if you need to work on
both you could make a thin wrapper over either PyXml for CPython and
.NET&#8217;s XPath support).&nbsp; For example:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>import clr<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>clr.AddReference(&#8216;System.Xml&#8217;)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>import System.Xml.XPath as XPath<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>xpathDoc =
XPath.XPathDocument(&#8216;file://foo.txt&#8217;)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=1 color=navy face="Bookman Old Style"><span
style='font-size:8.0pt;font-family:"Bookman Old Style";color:navy'><a
href="http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038">Do
you want to help develop Dynamic languages on CLR?</a> </span></font><font
size=1 color=white face="Bookman Old Style"><span style='font-size:1.0pt;
font-family:"Bookman Old Style";color:white'>(http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)</span></font><font
size=1 face="Bookman Old Style"><span style='font-size:8.0pt;font-family:"Bookman Old Style"'><o:p></o:p></span></font></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

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

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

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Simon Dahlbacka<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, May 17, 2006
11:41 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Discussion of IronPython<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [IronPython] from xml
import xpath</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>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;<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 5/17/06, <b><span style='font-weight:bold'>Dino
Viehland</span></b> &lt;<a href="mailto:dinov@exchange.microsoft.com">dinov@exchange.microsoft.com</a>&gt;
wrote:</span></font></span><o:p></o:p></p>

<div>

<div vlink=blue link=blue>

<div>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;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><o:p></o:p></p>

</div>

<div>

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

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

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

</div>

<div>

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

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

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

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

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

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

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

<div>

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

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

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

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

<p><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'> <a
href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>
[mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">
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">users@lists.ironpython.com</a><br>
<b><span style='font-weight:bold'>Subject:</span></b> [IronPython] from xml
import xpath</span></font><o:p></o:p></p>

</div>

</div>

<div><span id="q_10b438c1498d8662_3">

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

<p><font size=2 face=Arial><span style='font-size:10.0pt;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">http://pyxml.sourceforge.net/topics/howto/section-XPath.html</a>
doesn't work:</span></font><o:p></o:p></p>

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

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

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

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>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> <o:p></o:p></p>

</div>

</div>

</div>

</span>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.ironpython.com">users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com"
target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</blockquote>

</div>

</body>

</html>