Symbolic package error with sympy 1.6 or newer

Hey fellas,
Just installed ubuntu 20.04.1 LTS. Installed octave via software manager. Installed the symbolic package via cmd window. Although installation seems to pass OK, so as loading it, using it fails miserably, see cmd window history below. Also, I had python installed prior, with sympy, for vim snippets, maybe that messes it up.

Any help would be appreciated.

>> syms x
Symbolic pkg v2.9.0: /usr/local/lib/python3.8/dist-packages/sympy/__init__.py:672: SymPyDeprecationWarning:

importing sympy.core.compatibility with 'from sympy import *' has been
deprecated since SymPy 1.6. Use import sympy.core.compatibility
instead. See https://github.com/sympy/sympy/issues/18245 for more
info.

  self.Warn(
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 12, in octoutput_drv
  File "<stdin>", line 54, in octoutput
  File "<stdin>", line 55, in octoutput
  File "/usr/local/lib/python3.8/dist-packages/sympy/__init__.py", line 677, in__getattr__
    return getattr(self.mod, name)
AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types'
Waiting...............warning: readblock: timeout of 30 exceeded, breaking out
warning: called from
    readblock at line 101 column 7
    python_ipc_popen2 at line 99 column 16
    python_ipc_driver at line 62 column 15
    pycall_sympy__ at line 163 column 11
    valid_sym_assumptions at line 38 column 10
    assumptions at line 82 column 7
    syms at line 97 column 13
no output so far

error: ipc_popen2: something wrong? timed out starting python
error: called from
    python_ipc_popen2 at line 101 column 7
    python_ipc_driver at line 62 column 15
    pycall_sympy__ at line 163 column 11
    valid_sym_assumptions at line 38 column 10
    assumptions at line 82 column 7
    syms at line 97 column 13

Thanks for your report. The short answer is, you must downgrade your Python sympy to version 1.5.1

See https://savannah.gnu.org/bugs/?58491 and https://github.com/cbm755/octsympy/issues/1023.

1 Like