&gt; <span style="font-size:11pt;color:rgb(31, 73, 125)"> I usually start import bugs by trying to re-create a simple repro of the issue
 and then work from there.<br><br></span>I&#39;ve managed to get as far as this point. I&#39;ve tried to boild down the problem to a simple test case which I&#39;ve added to the <a href="http://ironpython.codeplex.com/workitem/26426">issue</a>. What seems to be happening is this:<br>

<ul><li>import sympy is called</li><li>sympy import gets to simpify.py, imports decimal (stdlib) which then imports numbers.py (stdlib)</li><li>sympy import gets to function.py, which attempts to import Integer from numbers (sympy)</li>

<ul><li>It fails here because it tries to import Integer from numbers.py (stdlib)<br></li></ul></ul><br>The test case works in 2.6.2 but fails in 2.7b1 which seems to indicate a regression. I tried importing the sympy library in 2.6.2 but it fails with: ImportError: No module named signal<br>

<br>Richard<span style="font-size:11pt;color:rgb(31, 73, 125)"><br><br></span><br><div class="gmail_quote">On Sun, Jan 30, 2011 at 9:16 PM, Dino Viehland <span dir="ltr">&lt;<a href="mailto:dinov@microsoft.com" target="_blank">dinov@microsoft.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)">There’s probably an Integer.py somewhere in sympy and this is probably an import bug.  If someone was particularly ambitious they could re-write import by porting
 CPython’s import to IronPython – viola, no more import bugs! </span><span style="font-size:11pt;font-family:Wingdings;color:rgb(31, 73, 125)">J</span><span style="font-size:11pt;color:rgb(31, 73, 125)"> 
</span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)">Otherwise it’s all about figuring out how we’re differing in import semantics – I usually start import bugs by trying to re-create a simple repro of the issue
 and then work from there.  I always thought import bugs but if you look at the CPython source code it might be much easier.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>
<div style="border-width:medium medium medium 1.5pt;border-style:none none none solid;border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color blue;padding:0in 0in 0in 4pt">
<div>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10pt">From:</span></b><span style="font-size:10pt"> <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>On Behalf Of </b>Bruce Bromberek<br>
<b>Sent:</b> Sunday, January 30, 2011 12:22 PM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> [IronPython] Issue Triage</span></p>
</div>
</div><div><div></div><div>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom:12pt">I though I&#39;d help by going through any issues tagged with High importance, unassigned, starting with ones from previous releases and seeing is they are still relevant.</p>


<div>
<p class="MsoNormal">Issue 26426,  which involves sympy (algebraic manipulation) under ironpython.  With the most recent git version of sympy and IronPython 2.7B1, I get a better error message.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<div>
<p class="MsoNormal">C:\GITHUB\sympy&gt;&quot;c:\Program Files\IronPython 2.7\ipy.exe&quot;</p>
</div>
<div>
<p class="MsoNormal">IronPython 2.7 Beta 1 (2.7.0.10) on .NET 4.0.30319.1</p>
</div>
<div>
<p class="MsoNormal">Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.</p>
</div>
<div>
<p class="MsoNormal">&gt;&gt;&gt; import sympy</p>
</div>
<div>
<p class="MsoNormal">Traceback (most recent call last):</p>
</div>
<div>
<p class="MsoNormal">  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;</p>
</div>
<div>
<p class="MsoNormal">  File &quot;C:\GITHUB\sympy\sympy\__init__.py&quot;, line 30, in &lt;module&gt;</p>
</div>
<div>
<p class="MsoNormal">  File &quot;C:\GITHUB\sympy\sympy\core\__init__.py&quot;, line 8, in &lt;module&gt;</p>
</div>
<div>
<p class="MsoNormal">  File &quot;C:\GITHUB\sympy\sympy\core\expr.py&quot;, line 1008, in &lt;module&gt;</p>
</div>
<div>
<p class="MsoNormal">  File &quot;C:\GITHUB\sympy\sympy\core\mul.py&quot;, line 962, in &lt;module&gt;</p>
</div>
<div>
<p class="MsoNormal">  File &quot;C:\GITHUB\sympy\sympy\core\power.py&quot;, line 806, in &lt;module&gt;</p>
</div>
<div>
<p class="MsoNormal">  File &quot;C:\GITHUB\sympy\sympy\core\add.py&quot;, line 516, in &lt;module&gt;</p>
</div>
<div>
<p class="MsoNormal">  File &quot;C:\GITHUB\sympy\sympy\core\symbol.py&quot;, line 6, in &lt;module&gt;</p>
</div>
<div>
<p class="MsoNormal">  File &quot;C:\GITHUB\sympy\sympy\logic\__init__.py&quot;, line 1, in &lt;module&gt;</p>
</div>
<div>
<p class="MsoNormal">  File &quot;C:\GITHUB\sympy\sympy\logic\boolalg.py&quot;, line 4, in &lt;module&gt;</p>
</div>
<div>
<p class="MsoNormal">  File &quot;C:\GITHUB\sympy\sympy\core\function.py&quot;, line 1091, in &lt;module&gt;</p>
</div>
<div>
<p class="MsoNormal">ImportError: Cannot import name Integer</p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Line 1091 is :</p>
</div>
<div>
<p class="MsoNormal">from numbers import Rational, Integer</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I though the issue was &#39;Integer&#39; as a reserved word in Ironpython.  However, I can create a function or a class named Integer in the interpreter without a problem.  Now I&#39;m stuck.  Any thoughts on how to proceed  </p>


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

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">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><br>
<br></blockquote></div><br>