Note that this test project setup doesn't actually use any QT functionality, whereas the main one does. Additionally, I can import problem modules in projects separate from the project I'm working on, implying it's a setup problem. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work. Sonar helps you commit clean code every time. However, modules like lxml which use C source files import just fine. Top 23 Python Pyqt Projects (Jun 2023) Python Pyqt Write Clean Python Code. It appears to be a problem with Python's C API being found when reading C extension shared libraries. Original error was: /home/brentnallt/miniconda3/envs/car_class_nogpu/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-x86_64-linux-gnu.so: undefined symbol: PyMemoryView_FromObjectĪ similar error occurs when importing tensorflow through Pybind11: ImportError: /home/brentnallt/miniconda3/envs/car_class_nogpu/lib/python3.7/lib-dynload/_ctypes.cpython-37m-x86_64-linux-gnu.so: undefined symbol: PyUnicode_FromFormat I've gotten a basic embedding working using Pybind11 where basic interfacing works, however, most external modules cannot be imported.įor example, when importing Numpy through Pybind11, the following error is thrown (reduced for brevity): Importing the numpy c-extensions failed. The project is handled using Qt Creator, and Python 3.7.5 and its packages are installed via Miniconda. I'm working on a project that requires C++ to call a program written in Python that relies on Python exclusive modules.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |