sharedstructures icon indicating copy to clipboard operation
sharedstructures copied to clipboard

Building Python Module

Open iljastas opened this issue 2 years ago • 1 comments

Hi Guys,

I'm using Ubuntu 20.04, but python cannot find the module (ModuleNotFoundError: No module named 'sharedstructures') and neither can I on my OS.

I get the messages from cmake: -- Building Python module -- FIND_PACKAGE_MESSAGE_DETAILS_Python3=[/usr/bin/python3.9][/usr/lib/x86_64-linux-gnu/libpython3.9.so][/usr/include/python3.9][cfound components: Interpreter Development ][v3.9.5()]

Thanks for a hint!

iljastas avatar Feb 16 '23 08:02 iljastas

When you run cmake + make, is a file called sharedstructures.abi3.so created? If so, put this file in a directory that's on PYTHONPATH (or somewhere in your Python project directory) and you should be able to import sharedstructures in your Python code. If the file is not created when you run make, then cmake must not be finding your Python installation correctly - please share the cmake output if this is the issue.

fuzziqersoftware avatar Feb 16 '23 17:02 fuzziqersoftware