help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AttributeError: module 'sympy' has no attribute 'compatibility'


From: sebademasi10
Subject: AttributeError: module 'sympy' has no attribute 'compatibility'
Date: Fri, 3 Apr 2020 12:32:43 -0500 (CDT)

Hi everyone! 

I'm trying to use the control and symbolic libraries but the following
happens:



>> syms a
Symbolic pkg v2.9.0: 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
AttributeError: module 'sympy' has no attribute 'compatibility'
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
>> sympref
ans =

  scalar structure containing the fields:

    ipc = default
    display = ascii
    digits = 32
    quiet = 0

>> sympref diagnose

Symbolic package diagnostics
============================

Python and SymPy are needed for most features of the Symbolic package.

The Python interpreter is currently: "python".

Computers may have more than one Python interpreter installed.  If you
need to, you can select a different one using the PYTHON environment
variable (see "help sympref").  For example, to use Python 2, try
    setenv PYTHON python2
    sympref reset

Attempting to run python -c "print(\"Python says hello\")"

status = 0
output = Python says hello

Good, Python ran correctly.


Python version
--------------

Let's check what version of Python we are calling...

Attempting to run python -c "import sys; print(sys.version)"

status = 0
output = 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916
64 bit (AMD64)]


SymPy Python Library
--------------------

SymPy is a Python library used by Symbolic for almost all features.

Attempting to run python -c "import sympy; print(sympy.__version__)"

status = 0
output = 1.6.dev

SymPy must be at least version 1.2; you have version 1.6.dev.

Good, a working version of SymPy is installed.


Python XML Parsing and DOM Support
----------------------------------

The XML DOM library is used by Symbolic for passing values to and from
Python.
Some older versions of Python formatted XML output differently.  As long as
you
have any reasonably recent version of Python, this should pass.

Attempting to run python -c "import xml.dom.minidom as minidom; doc =
minidom.parseString(\"<item
>value</item>\"); print(doc.toprettyxml(indent=\"\"))"

status = 0
output = <?xml version="1.0" ?>
<item>value</item>



Your kit looks good for running the Symbolic package.  Happy hacking!

>> syms x y
Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
  File "<stdin>", line 12, in octoutput_drv
  File "<stdin>", line 55, in octoutput
AttributeError: module 'sympy' has no attribute 'compatibility'
error: Python exception: AttributeError: module 'sympy' has no attribute
'compatibility'
    occurred while copying variables to Python.
    Try "sympref reset" and repeat your command?
    (consider filing an issue at https://github.com/cbm755/octsympy/issues)
error: called from
    pycall_sympy__ at line 191 column 5
    valid_sym_assumptions at line 38 column 10
    assumptions at line 82 column 7
    syms at line 97 column 13




I hope the above code is enought information to solve the problem. Thanks!



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]