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
Traceback (most recent call last):
File "/home/nvidia/.local/lib/python3.6/site-packages/casadi/casadi.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: /home/nvidia/.local/lib/python3.6/site-packages/casadi/libcasadi.so.3.7: undefined symbol: _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 7, in <module>
from MPC import MPC
File "/home/nvidia/Quanser/competition/qcar-uwu/MPC.py", line 1, in <module>
import do_mpc
File "/home/nvidia/.local/lib/python3.6/site-packages/do_mpc/init.py", line 91, in <module>
from . import tools
File "/home/nvidia/.local/lib/python3.6/site-packages/do_mpc/tools/init.py", line 32, in <module>
from ._casstructure import *
File "/home/nvidia/.local/lib/python3.6/site-packages/do_mpc/tools/_casstructure.py", line 1, in <module>
import casadi as cas
File "/home/nvidia/.local/lib/python3.6/site-packages/casadi/init.py", line 36, in <module>
from casadi.casadi import *
File "/home/nvidia/.local/lib/python3.6/site-packages/casadi/casadi.py", line 21, in <module>
_casadi = swig_import_helper()
File "/home/nvidia/.local/lib/python3.6/site-packages/casadi/casadi.py", line 20, in swig_import_helper
return importlib.import_module('_casadi')
File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_casadi'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, everyone I am trying to get Casadi for Python on a Jetson TX2 but am getting module not found _casadi.
Python Version: 3.6.9
PIP Version: pip 21.3.1 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)
OS:
Installed using:
sudo pip install casadi
But when I run code using the casadi library
I am getting an error:
How can I resolve this issue?
Thank you,
Wesley Luu
Beta Was this translation helpful? Give feedback.
All reactions