On Thu, Jan 20, 2022 at 5:01 AM Patrick Dupre pdupre@gmx.com wrote:
Hello,
When I run octave with
pkg load symbolic and syms x I get Symbolic pkg v2.9.0: Traceback (most recent call last): File "<stdin>", line 28, in <module> AttributeError: '_PrintFunction' object has no attribute '__globals__' 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' Closing the Python communications link.
error: Python exception: AttributeError: '_PrintFunction' object has no attribute '__globals__' occurred in python_header import block. 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
It seems that it is an identified bug, due to sympy
How is sympy installed on your computer ?
Which versions of Python are installed on your computer ? Which version is invoked when you are running Octave ?
Kudos to you for using Octave instead of Mathlab.