-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
ModuleNotFoundError: No module named 'vizdoom' on conda/venv env #311
Comments
I was able to compile it and install it manually like this:
I would leave the issue open though, I'd try to figure out why nor the PyPI method or the setup from sources is working. |
Are you sure that the pip you used is the one for python you use? |
I never considered checking because that's what
I asked a friend with a different ubuntu version to |
Problem persists. I set up a fresh 'virtualenv', installed all dependencies via pip3 and
|
@biggzlar Could you give us the exact commands to create the virtualenv? |
Thanks for your reply. It’s really just this:
No errors or anything. |
Fascinating, I am getting the following when I first tried to replicate the error. However when I "uninstall" vizdoom and try to install it again (in the environment), it throws no errors and claims vizdoom is installed correctly. @mihahauke
|
That is weird. Also just tried to run the pip installation with |
What happens if you try to install vizdoom without the environment? Maybe there are some dependencies missing and something suppresses the errors somewhere? |
Just tried, the import still fails even when installing without a virtual environment. :/ $: python3 -m pip install vizdoom
Collecting vizdoom
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from vizdoom)
Installing collected packages: vizdoom
Successfully installed vizdoom-1.1.4
$: python3 -m pip freeze
(...)
numpy==1.14.5
(...)
vizdoom==1.1.4
Werkzeug==0.14.1
wrapt==1.10.11
$: python3 -c 'import vizdoom'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'vizdoom' |
Hmm that Python path looks peculiar, could be throwing off ViZDoom. What do the following commands show for you (with and without virtualenv). I think the most perplexing part here is the fact
|
Here are the outputs: Without an active environment$: python3 -m site
sys.path = [
'/Users/biggzlar',
'/Users/biggzlar/Library/Python/2.7/bin',
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip',
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload',
'/Users/biggzlar/Library/Python/3.6/lib/python/site-packages',
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages',
]
USER_BASE: '/Users/biggzlar/Library/Python/3.6' (exists)
USER_SITE: '/Users/biggzlar/Library/Python/3.6/lib/python/site-packages' (exists)
ENABLE_USER_SITE: True $: python3 -m site --user-site
/Users/biggzlar/Library/Python/3.6/lib/python/site-packages $: python -c "import numpy; print(numpy.__file__)"
/usr/local/lib/python2.7/site-packages/numpy/__init__.pyc
$: python3 -c "import numpy; print(numpy.__file__)"
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/__init__.py I see what you mean when you say peculiar... Active Python 3.6 environment$: python3 -m site
sys.path = [
'/Users/biggzlar',
'/Users/biggzlar/Library/Python/2.7/bin',
'/Users/biggzlar/env3/lib/python36.zip',
'/Users/biggzlar/env3/lib/python3.6',
'/Users/biggzlar/env3/lib/python3.6/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
'/Users/biggzlar/env3/lib/python3.6/site-packages',
]
USER_BASE: '/Users/biggzlar/.local' (exists)
USER_SITE: '/Users/biggzlar/.local/lib/python3.6/site-packages' (exists)
ENABLE_USER_SITE: False $: python3 -m site --user-site
/Users/biggzlar/.local/lib/python3.6/site-packages $: python -c "import numpy; print(numpy.__file__)"
/Users/biggzlar/env3/lib/python3.6/site-packages/numpy/__init__.py |
Check if you have any vizdoom directories in |
After uninstalling with pip there are no vizdoom related folders left in both environments. As for the compilation, I am actually now encountering this issue #236 Thank you for your help so far! |
I have no experience with Mac stuff, but could this be the issue? https://stackoverflow.com/questions/16454129/python-h-header-file-missing-on-mac-os-x-10-6 |
It very well could be, but the solutions don't seem to work. Added the relevant parameter flags to the CMakeLists.txt and ran the build process again as described above - still missing the file. I then updated the include paths in my current environment, pointing to the headers folder as such: export C_INCLUDE_PATH=/System/Library/Frameworks/Python.framework/Headers
export CPLUS_INCLUDE_PATH=/System/Library/Frameworks/Python.framework/Headers No luck. |
Things go beyond me at this point :(. From what I gathered around internet the problem seems to the wrong include statement. I would love to debug this myself but closest Mac computer is likely few dozen kilometers away from me currently. |
Thanks for your help either way! I'll need to switch machines for now but keep looking into the issue. |
The problem persists (Arch Linux, Python 3.7).
I've made a quick'n dirty fix by creating a link Once the package was installed, I encountered #333 (Cython version-check breaks on |
Both
pip install vizdoom
andpip install .
from sources terminate without error, however the module is somehow not registered:Any suggestions?
The text was updated successfully, but these errors were encountered: