-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python pangolin install #916
Comments
this is how the build outputs:
|
It looks like you are using Windows. Note the information in the README about the Python bindings:
So you may just be out of luck on Windows. Nevertheless, I am checking now that Can you provide details on what is not working? |
So sad TvT I wish I could see this issue earlier(and read README more carefully!!!), or I won't spend a whole day wondering why Windows+MinGW+pypangolin would fail. I managed to solve all the compiling problems and got executable dlls, with perfect running example exes, but the >>> import pypangolin
>>> import pypangolin
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed while importing pypangolin: The specified module could not be found. Moreover, I tried to analysis the dependencies a/o symbols with MinGW commands $ ldd pypangolin.cp312-win_amd64.pyd
ldd: pypangolin.cp312-win_amd64.pyd: Exec format error
$ nm pypangolin.cp312-win_amd64.pyd
E:\OPEN\GCC\mingw-w64-x86_64-8.1.0\bin\nm.exe: pypangolin.cp312-win_amd64.pyd: no symbols
$ strings pypangolin.cp312-win_amd64.pyd | grep dll
python312.dll
glew32.dll
libgcc_s_seh-1.dll
KERNEL32.dll
msvcrt.dll
OPENGL32.dll
libwinpthread-1.dll
libstdc++-6.dll
libpango_core.dll
libpango_display.dll
libpango_image.dll
libpango_opengl.dll
libpango_plot.dll
libpango_vars.dll
libpango_video.dll Hope no one else would repeat my tragedy [Facepalm] |
Actually, it should work now. I haven't tried this myself on an actual Windows installation, but since #960, we install and run the Python wheel in the CI. See https://github.com/stevenlovegrove/Pangolin/actions/runs/11627142146/job/32379980092.
If you link dynamically, you may have to tell the Python interpreter where to find the libraries. The CI only tests the Windows wheel file only for static linking (´-D BUILD_SHARED_LIBS=OFF´), to avoid this. |
Thanks! After that I changed to a "regular" dev set of ubuntu 20.04 and everything just goes well. I 'll check the windows solution later ^_^ |
i'm having trouble installing the python pangolin component. When I run:
cmake --build build -t pypangolin_pip_install
It goes through most of the steps and then says this at the end:
I can't run any of the python examples so I don't think it installed correctly. Any thoughts?
The text was updated successfully, but these errors were encountered: