You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just installed octave and oct2py on a new Mac with the m1 chip and MacOS Monterey Version 12.4.
I am getting the error:
Traceback (most recent call last):
File "/Users/prowe/git-repos/mpl-processing/tests/test_oct2py/test_oct2py.py", line 17, in
oc.addpath(os.getcwd() + '/tests/test_oct2py/')
File "/opt/homebrew/lib/python3.9/site-packages/oct2py/core.py", line 758, in getattr
exist = self._exist(name)
File "/opt/homebrew/lib/python3.9/site-packages/oct2py/core.py", line 709, in _exist
exist = int(resp.split()[-1])
ValueError: invalid literal for int() with base 10: '\x1b[?2004h'
This seems to be due to "\x1b[?2004h" being appended to the beginning and ending of the result of self._engine.eval(cmd, silent=True).strip().
Thus when exist = int(resp.split()[-1]) is run, the final character is '\x1b[?2004h' instead of, e.g. 5 for addpath.
Is there a fix or work-around?
Thank you!
The text was updated successfully, but these errors were encountered:
I just installed octave and oct2py on a new Mac with the m1 chip and MacOS Monterey Version 12.4.
I am getting the error:
Traceback (most recent call last):
File "/Users/prowe/git-repos/mpl-processing/tests/test_oct2py/test_oct2py.py", line 17, in
oc.addpath(os.getcwd() + '/tests/test_oct2py/')
File "/opt/homebrew/lib/python3.9/site-packages/oct2py/core.py", line 758, in getattr
exist = self._exist(name)
File "/opt/homebrew/lib/python3.9/site-packages/oct2py/core.py", line 709, in _exist
exist = int(resp.split()[-1])
ValueError: invalid literal for int() with base 10: '\x1b[?2004h'
This seems to be due to "\x1b[?2004h" being appended to the beginning and ending of the result of self._engine.eval(cmd, silent=True).strip().
Thus when exist = int(resp.split()[-1]) is run, the final character is '\x1b[?2004h' instead of, e.g. 5 for addpath.
Is there a fix or work-around?
Thank you!
The text was updated successfully, but these errors were encountered: