-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
SystemError: dynamic module not initialized properly #45
Comments
I confirm that (OSX). We have not much experience on OSX, so I have no solution at the moment. C++ examples do work on OSX so this seems like a problem with the python wrapper... |
Since you're using brew-managed python you might check out the OSX/Compile section in the readme. The problem may be that CMake isn't using your brew python installation. You can see which libpython is linked with: If that doesn't work, make sure your brew-managed boost installation is also using your brew python. If it isn't, try reinstalling boost with the flag |
Stupid me! The error you are experiencing also shows up when you run the examples using python3 instead of python2. Check your defaults. |
Could someone elaborate on the wrong python linking? I am facing the same dynamic module problem and already build boost again from source. CMake:
Python:
otool:
|
It would seem that So I tried to make sure that it conseqently contains packages from anaconda installation (Numpy, Boost, cmake)
and then cmake found the proper boost and numpy libraries (see below) However, the problem persists.
|
I've got the same error message when trying to compile basic.py.
Within Pycharm it says the interpreter is 2.7.1 though. Is this the what is causing the issue? awentzonline says that i should just change 2.x.x to what ever it should be... But my question is, how?? Hope someone can help. Have spend days on this now :-) |
The steps here solved my issue #80 Basically I had to make completely sure that everything about the build was using the same Python version. When I tried to use the CMake GUI I couldn't make that work, so I scrapped the CMake GUI completely and simply followed the solution from issue 80, and it worked. |
I am trying to run ViZDoom on OSX, everything is built but running the python example file with vizdoom.so symlinked into the folder
Using homebrew package manager and pyenv for python management
cmake command
cmake output
python error output
The text was updated successfully, but these errors were encountered: