问题
I am finding problems with the installation of the symbolic package octsympy of Octave.
I have GNU Octave Version 5.2.0 under Windows 10. I have python3 installed with Anaconda.
I have followed the following steps:
- Download the file
symbolic-2.9.0.tar.gz
. - Install with
pkg install symbolic-2.9.0.tar.gz
. pkg load symbolic
.setenv PYTHON C:\Users\...\Anaconda3\python
.sympref diagnose
.
After the last command, I receive the message: Your kit looks good for running the Symbolic package.
However, when I try any symbolic command such as sym('1/2')
, I receive error messages:
AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types'
error: Python exception: AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types' occurred while copying variables to Python.
error: called from pycall_sympy__ at line 191 column 5; sym at line 484 column 11
Can anyone help to solve this problem? Thank you.
回答1:
This issue has been reported as a bug: https://github.com/cbm755/octsympy/issues/1023. The developer indicated that it will be fixed in a new release.
If this issue is urgent, the solution is to downgrade the version of SymPy.
If this issue is not urgent, an option is to wait for a new release of octsympy.
来源:https://stackoverflow.com/questions/64614076/installation-of-octsympy-of-octave-error-even-after-ok-sympref-diagnose