[IronPython] sympy on IP 2.6B2

Michael Foord fuzzyman at voidspace.org.uk
Fri Jul 24 22:53:25 CEST 2009


Dino Viehland wrote:
> -X:FullFrames promotes all local variables into the heap.  So you can
> always crawl the stack and look/change them for all methods.
>
> -X:Frames only creates the frame objects and if something happens to
> make us promote local variables (e.g. a closure, or a call to locals(),
> exec, eval, dir(), vars()) then the local variables will be available
> for that specific method.
>
>   

Thanks Dino. :-)

Michael

>> -----Original Message-----
>> From: users-bounces at lists.ironpython.com [mailto:users-
>> bounces at lists.ironpython.com] On Behalf Of Michael Foord
>> Sent: Friday, July 24, 2009 1:47 PM
>> To: Discussion of IronPython
>> Subject: Re: [IronPython] sympy on IP 2.6B2
>>
>> Try running it with frames switched on:
>>
>>     ipy.exe -X:Frames
>>
>> or:
>>
>>     ipy.exe -X:FullFrames
>>
>> Perhaps Dino can explain what the difference is between these two
>> modes... :-)
>>
>> Michael
>>
>> Jeffrey Sax wrote:
>>     
>>> According to the archives, some version of sympy worked on IP 1.x at
>>>       
>> some
>>     
>>> point in the distant past. Now, with the latest version of both
>>>       
>> (sympy 0.6.5
>>     
>>> on IronPython 2.6.B2), I get this:
>>>
>>> PS C:\Program Files (x86)\IronPython 2.6> .\ipy.exe
>>> IronPython 2.6 Beta 2 (2.6.0.20) on .NET 2.0.50727.4918
>>> Type "help", "copyright", "credits" or "license" for more
>>>       
>> information.
>>     
>>>>>> import sys
>>>>>> sys.path.append(r"c:\Program Files (x86)\Python26\Lib\site-
>>>>>>             
>> packages")
>>     
>>>>>> from sympy import Symbol, cos
>>>>>>
>>>>>>             
>>> Traceback (most recent call last):
>>>   File "<stdin>", line 1, in <module>
>>>   File "c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\__init__.py", line 23, in
>>>       
>> c:\Program
>>     
>>> Files (x86)\Python26\Lib\site-packages\sympy\__init__.py
>>>   File "c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\core\__init__.py", line 4, in
>>> c:\Program Files (x86)\Python26\Lib\site-
>>>       
>> packages\sympy\core\__init__.py
>>     
>>>   File "c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\core\basic.py", line 2442, in
>>> c:\Program Files (x86)\Python26\Lib\site-packages\sympy\core\basic.py
>>>   File "c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\core\symbol.py", line 285, in
>>> c:\Program Files (x86)\Python26\Lib\site-
>>>       
>> packages\sympy\core\symbol.py
>>     
>>>   File "c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\core\sympify.py", line 200, in
>>> c:\Program Files (x86)\Python26\Lib\site-
>>>       
>> packages\sympy\core\sympify.py
>>     
>>>   File "c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\core\numbers.py", line 1600,
>>>       
>> in
>>     
>>> c:\Program Files (x86)\Python26\Lib\site-
>>>       
>> packages\sympy\core\numbers.py
>>     
>>>   File "c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\core\function.py", line 39, in
>>> c:\Program Files (x86)\Python26\Lib\site-
>>>       
>> packages\sympy\core\function.py
>>     
>>>   File "c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\utilities\__init__.py", line
>>>       
>> 14, in
>>     
>>> c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\utilities\__init__.py
>>>   File "c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\utilities\source.py", line 5,
>>>       
>> in
>>     
>>> c:\Program Files (x86)\Python26\Lib\site-
>>>       
>> packages\sympy\utilities\source.py
>>     
>>>   File "C:\Program Files (x86)\IronPython 2.6\Lib\inspect.py", line
>>>       
>> 950, in
>>     
>>> C:\Program Files (x86)\IronPython 2.6\Lib\inspect.py
>>> AttributeError: 'module' object has no attribute '_getframe'
>>>
>>>
>>> Note also that when I retry the import, I get a different error
>>>       
>> message:
>>     
>>>       
>>>>>> from sympy import Symbol, cos
>>>>>>
>>>>>>             
>>> Traceback (most recent call last):
>>>   File "<stdin>", line 1, in <module>
>>>   File "c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\__init__.py", line 23, in
>>>       
>> c:\Program
>>     
>>> Files (x86)\Python26\Lib\site-packages\sympy\__init__.py
>>>   File "c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\core\__init__.py", line 4, in
>>> c:\Program Files (x86)\Python26\Lib\site-
>>>       
>> packages\sympy\core\__init__.py
>>     
>>>   File "c:\Program Files
>>> (x86)\Python26\Lib\site-packages\sympy\core\basic.py", line 3, in
>>>       
>> c:\Program
>>     
>>> Files (x86)\Python26\Lib\site-packages\sympy\core\basic.py
>>> AttributeError: 'module' object has no attribute 'mpmath'
>>>
>>> Any idea what's going on here?
>>>
>>> Thanks,
>>>
>>> Jeffrey
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.ironpython.com
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>>>       
>> --
>> http://www.ironpythoninaction.com/
>> http://www.voidspace.org.uk/blog
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.ironpython.com
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>     
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>   


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog





More information about the Ironpython-users mailing list