[Ironpython-users] SymPy and IronPython 2.7.4

Andrew Ayre andy at britishideas.com
Tue Apr 8 10:08:59 CEST 2014


On 4/7/2014 11:32 PM, Jeff Hardy wrote:
> On Mon, Apr 7, 2014 at 10:16 PM, Andrew Ayre <andy at britishideas.com> wrote:
>> Thanks. Unfortunately I still get the error:
>>
>> =============================================
>>>>> import sympy
>>
>> Traceback (most recent call last):
>>   File "<string>", line 1, in <module>
>>   File "C:\Users\Andy\Documents\ADScript\PythonLib\sympy\__init__.py",
>> line 32, in <module>
>>   File
>> "C:\Users\Andy\Documents\ADScript\PythonLib\sympy\core\__init__.py",
>> line 8, in <module>
>>   File "C:\Users\Andy\Documents\ADScript\PythonLib\sympy\core\expr.py",
>> line 7, in <module>
>>   File "C:\Users\Andy\Documents\ADScript\PythonLib\sympy\core\evalf.py",
>> line 9, in <module>
>> AttributeError: 'module' object has no attribute 'mpmath'
>> =============================================
> 
> You need to make sure the mpmath library is in sys.path as well; I
> don't know if SymPy includes it.

Thanks. Making progress... Now it can't find sympy.sets.fancysets. I've
added the folder where the module is defined to sys.path:

=============================================
>>>sys.path.append('../../PythonLib/sympy/sets')

>>>sys.path

['.', 'C:\\Users\\Andy\\Documents\\ADScript\\bin\\Debug\\Lib',
'C:\\Users\\Andy\\Documents\\ADScript\\bin\\Debug\\DLLs',
'C:\\Users\\Andy\\Documents\\ADScript\\bin\\Debug\\PythonLib',
'../../PythonLib', '../../PythonLib', '../../PythonLib/sympy/mpmath',
'../../PythonLib/sympy/sets']

>>>from sympy.sets.fancysets import Naturals0

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\Andy\Documents\ADScript\PythonLib\sympy\__init__.py",
line 34, in <module>
  File
"C:\Users\Andy\Documents\ADScript\PythonLib\sympy\assumptions\__init__.py",
line 2, in <module>
  File
"C:\Users\Andy\Documents\ADScript\PythonLib\sympy\assumptions\ask.py",
line 323, in <module>
  File "C:\Users\Andy\Documents\ADScript\PythonLib\sympy\core\cache.py",
line 93, in wrapper
  File
"C:\Users\Andy\Documents\ADScript\PythonLib\sympy\core\function.py",
line 185, in __new__
ImportError: No module named fancysets
=============================================

Here is what the folder structure looks like:

https://github.com/sympy/sympy/tree/master/sympy/sets

Andy


More information about the Ironpython-users mailing list