Comments (9)
I get the following error when trying to install in OSX:
ld: library not found for -lrt
clang: error: linker command failed with exit code 1
from vizdoom.
This is near to impossible. Are you sure you have the most recent version from the master? Pull it once again. Then execute cmake_clean.sh. Then try again cmake . && make and let me know.
from vizdoom.
@SimsGautam Also make sure you've opened Xcode before and accepted the ToS. Without doing so many random things will break.
EDIT: I believe you can also use sudo xcodebuild -license
.
from vizdoom.
Thanks for this, I'm having trouble running the the example:
File "/usr/local/bin/../Cellar/python/2.7.11/bin/../Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 548, in <module>
main()
File "/usr/local/bin/../Cellar/python/2.7.11/bin/../Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 530, in main
known_paths = addusersitepackages(known_paths)
File "/usr/local/bin/../Cellar/python/2.7.11/bin/../Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 266, in addusersitepackages
user_site = getusersitepackages()
File "/usr/local/bin/../Cellar/python/2.7.11/bin/../Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 241, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/local/bin/../Cellar/python/2.7.11/bin/../Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 231, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 520, in get_config_var
return get_config_vars().get(name)
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 453, in get_config_vars
import re
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 108, in <module>
import _locale
Any ideas?
from vizdoom.
Well, I assume that you get SystemError: dynamic module not initialized properly
at the end of the output you have shown, right? Then, it is related to #45 and it means that something is wrong with your python. I can see that you are using brew'ed python. I use macports so I cannot check myself but for many people using brew the instruction in #46 did the trick. Could you try it and let me know?
from vizdoom.
Thanks, cmake
definitely found my brew'd Python but then I get this on running make
[ 1%] Built target vizdoomstatic
[ 1%] Building CXX object CMakeFiles/vizdoompython.dir/vizdoom_api_bindings/python/ViZDoomPythonBinding.o
In file included from /Users/allen.tran/personal/ViZDoom/vizdoom_api_bindings/python/ViZDoomPythonBinding.cpp:23:
/Users/allen.tran/personal/ViZDoom/vizdoom_api_bindings/python/ViZDoomGamePython.h:32:10: fatal error: 'Python.h' file not found
#include <Python.h>
^
1 error generated.
make[2]: *** [CMakeFiles/vizdoompython.dir/vizdoom_api_bindings/python/ViZDoomPythonBinding.o] Error 1
make[1]: *** [CMakeFiles/vizdoompython.dir/all] Error 2
make: *** [all] Error 2
from vizdoom.
It seems that your PYTHON_INCLUDE_DIR was set incorrectly. To verify this:
Find PYTHON_INCLUDE_DIR=
in CMakeCache.txt (e.g., PYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7
) and check whether it contains Python.h
:
ls -l /usr/include/python2.7/ | grep Python.h
It probably does not, so you need to set it correctly according to your system as it reads in the "compiling" section: https://github.com/Marqt/ViZDoom/blob/b0dbb4f74d936bd6ad304515395d887fb58d4ad4/README.md#compiling-2
Let me know whether this helped
from vizdoom.
Got it working. The relevant include folder for brew Python is /include/python/2.7
so this line in the readme should be DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.x.x/Frameworks/Python.framework/Versions/2.7/include/python2.7
instead of DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.x.x/Frameworks/Python.framework/Versions/2.7/include
(note the additional directory at the end).
Thanks for the help, super excited now.
from vizdoom.
Thx for letting us know!
from vizdoom.
Related Issues (20)
- Create documentation in farama.org style
- Update to the newest Gymnasium API
- Create a git pre-commit hook with black, flake8 and isort for gym_wrapper HOT 3
- Create a GitHub workflow with black, flake8 and isort checks HOT 1
- Add docstrings to pybind11 module
- Fix SetuptoolsDeprecationWarning in setup.py
- python setup.py build failed in ARM64 machine HOT 9
- Cannot pickle vizdoom.vizdoom.GameState in python HOT 1
- Curious why can't I install vizdoom with conda deps?
- from vizdoom import gymnasium_wrapper doesn't work HOT 2
- Reset error in deadly corridor: screen buffer HOT 7
- Occasional start-up crash when using DirectDraw on Windows 11 HOT 4
- ViZDoom's Development Roadmap
- Checklist for Maturity
- Cannot install via pip HOT 6
- Can I use VizDoom in other FPS games? HOT 3
- First Time User Encountering Pip Install Error M1 HOT 6
- Bug for VizdoomEnv HOT 3
- ATTACK command not working properly, The SELECTED_WEAPON_AMMO variable does not change when pressed HOT 9
- ViZDoom for behavioral modelling; stabilizing time-diff between states HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vizdoom.