IJulia symbolitc数学不使用SymPy和PyCall,如http://mth229.github.io/symbolic.html中所述。
示例:
using SymPy
x = Sym("x")
生成以下错误消息:
PyError (PyImport_ImportModule) <type 'exceptions.TypeError'>
TypeError("unsupported operand type(s) for +: 'NoneType' and 'NoneType'",)
File "C:\PYTHON27\lib\site-packages\sympy\__init__.py", line 35, in <module>
from .polys import *
File "C:\PYTHON27\lib\site-packages\sympy\polys\__init__.py", line 5, in <module>
from . import polytools
File "C:\PYTHON27\lib\site-packages\sympy\polys\polytools.py", line 52, in <module>
from sympy.polys.domains import FF, QQ
File "C:\PYTHON27\lib\site-packages\sympy\polys\domains\__init__.py", line 9, in <module>
from . import finitefield
File "C:\PYTHON27\lib\site-packages\sympy\polys\domains\finitefield.py", line 7, in <module>
from sympy.polys.domains.groundtypes import SymPyInteger
File "C:\PYTHON27\lib\site-packages\sympy\polys\domains\groundtypes.py", line 13, in <module>
from .pythonrational import PythonRational
File "C:\PYTHON27\lib\site-packages\sympy\polys\domains\pythonrational.py", line 12, in <module>
from sympy.printing.defaults import DefaultPrinting
File "C:\PYTHON27\lib\site-packages\sympy\printing\__init__.py", line 3, in <module>
from .pretty import pager_print, pretty, pretty_print, pprint, \
File "C:\PYTHON27\lib\site-packages\sympy\printing\pretty\__init__.py", line 3, in <module>
from .pretty import (pretty, pretty_print, pprint, pprint_use_unicode,
File "C:\PYTHON27\lib\site-packages\sympy\printing\pretty\pretty.py", line 14, in <module>
from .stringpict import prettyForm, stringPict
File "C:\PYTHON27\lib\site-packages\sympy\printing\pretty\stringpict.py", line 17, in <module>
from .pretty_symbology import hobj, vobj, xsym, xobj, pretty_use_unicode
File "C:\PYTHON27\lib\site-packages\sympy\printing\pretty\pretty_symbology.py", line 426, in <module>
'-->': ('-->', U('EM DASH') + U('EM DASH') +
while loading C:\Users\eugenio\.julia\v0.3\SymPy\src\SymPy.jl, in expression starting on line 761
while loading In[2], in expression starting on line 1
in pyerr_check at C:\Users\eugenio\.julia\v0.3\PyCall\src\exception.jl:58
in pyimport at C:\Users\eugenio\.julia\v0.3\PyCall\src\PyCall.jl:85
in include at boot.jl:245
in include_from_node1 at loading.jl:128
in reload_path at loading.jl:152
in _require at loading.jl:67
in require at loading.jl:51
设置:
- Windwos 8.1,64位
- 安装了Anaconda Python(......它如何与PythonXY或C:\ Python27上的Python 2.7一起使用?)
- 朱莉娅。 0.3.1
- PyCall vers。 0.4.9
- SymPy vers。 0.2.19
答案 0 :(得分:2)
这看起来像是我在https://github.com/sympy/sympy/issues/8163打开的SymPy(Python库,而不是Julia库)中的错误。
如果您无法在Python中导入unicodedata
,则可能会出现问题。你能直接在Python中运行import unicodedata
还是使用PyCall?