i need to keep python objects inside my c++ class and call some methods from my .py file. everything is okay when i try to run .py script directly, but when i call this script from my cpp class, there is error:
Traceback (most recent call last): File "./drone_controller.py", line 4, in <module> import random File "/usr/local/lib/python3.9/random.py", line 49, in <module> from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil ImportError: /usr/local/lib/python3.9/lib-dynload/math.cpython-39-x86_64-linux-gnu.so: undefined symbol: PyFloat_Type
Using on Ubuntu 22.04
immariav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.