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! :)

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.

From: users-boun...@lists.ironpython.com 
[mailto:users-boun...@lists.ironpython.com] On Behalf Of Bruce Bromberek
Sent: Sunday, January 30, 2011 12:22 PM
To: Discussion of IronPython
Subject: [IronPython] Issue Triage

I though I'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.
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.

C:\GITHUB\sympy>"c:\Program Files\IronPython 2.7\ipy.exe"
IronPython 2.7 Beta 1 (2.7.0.10) on .NET 4.0.30319.1
Type "help", "copyright", "credits" or "license" for more information.
>>> import sympy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\GITHUB\sympy\sympy\__init__.py", line 30, in <module>
  File "C:\GITHUB\sympy\sympy\core\__init__.py", line 8, in <module>
  File "C:\GITHUB\sympy\sympy\core\expr.py", line 1008, in <module>
  File "C:\GITHUB\sympy\sympy\core\mul.py", line 962, in <module>
  File "C:\GITHUB\sympy\sympy\core\power.py", line 806, in <module>
  File "C:\GITHUB\sympy\sympy\core\add.py", line 516, in <module>
  File "C:\GITHUB\sympy\sympy\core\symbol.py", line 6, in <module>
  File "C:\GITHUB\sympy\sympy\logic\__init__.py", line 1, in <module>
  File "C:\GITHUB\sympy\sympy\logic\boolalg.py", line 4, in <module>
  File "C:\GITHUB\sympy\sympy\core\function.py", line 1091, in <module>
ImportError: Cannot import name Integer


Line 1091 is :
from numbers import Rational, Integer

I though the issue was 'Integer' 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'm stuck.  Any thoughts on how to proceed
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to