Comments (12)
Mea culpa, again. Thanks. fsp.py works! I'll check other things when on Xs.
On 25 January 2016 at 17:47, Marek Wydmuch [email protected] wrote:
The problem probably lies in wrong link to doom executable (missing 'z'
between 'vizia' and 'doom') - it should be viziazdoom.—
Reply to this email directly or view it on GitHub
#16 (comment).
from vizdoom.
was ../../bin/python/vizia.so correctly in bin directory?
from vizdoom.
You are right. I forgot to run the compiler :)
So now I get when I run it over ssh (no X server):
➜ python git:(master) ✗ ./essentials.py
Traceback (most recent call last):
File "./essentials.py", line 67, in <module>
game.init()
vizia.doom_unexpected_exit_exception: Controlled ViziaZDoom instance exited
unexpectedly.
This is expected to some extent, but error message is probably not clear.
Is there any example showing how to run it without X server?
Btw., for some examples I obviously needed:
sudo apt-get install python-opencv
On 25 January 2016 at 13:47, Michał Kempka [email protected] wrote:
was ../../bin/python/vizia.so correctly in bin directory?
—
Reply to this email directly or view it on GitHub
#16 (comment).
from vizdoom.
Sorry, didn't thing that anyone would like to try something without Xserver for starters.
fps.py will work without graphics.
Or just add "game.set_window_visible(False)" to any example before init.
We'll add some build and first run instructions soon.
from vizdoom.
It does not:
➜ python git:(master) ✗ grep set_window_visible -B 1 -A 1 fps.py
game.set_screen_resolution(res.RES_320X240)
game.set_window_visible(False)
game.init()
➜ python git:(master) ✗ ./fps.py
Traceback (most recent call last):
File "./fps.py", line 21, in <module>
game.init()
vizia.doom_unexpected_exit_exception: Controlled ViziaZDoom instance exited unexpectedly.
from vizdoom.
For now we have no idea what's wrong but you could try:
- checking if viziazdoom links properly to REPO_DIRECTORY/bin/viziazdoom
- checking if viziazdoom and viziazdoom.pk3 are present in REPO_DIRECTORY/bin
- sudo apt-get install build-essential zlib1g-dev libsdl2-dev libjpeg-dev nasm tar libbz2-dev libgtk2.0-dev cmake git libfluidsynth-dev libgme-dev libopenal-dev timidity
from vizdoom.
The problem probably lies in wrong link to doom executable (missing 'z' between 'vizia' and 'doom') - it should be viziazdoom.
from vizdoom.
Hey,
I also have had some troubles installing the software, specifically:
sudo apt-get install libsdl2-dev
fails on my machine, had to build from sources.
Then, after running cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON=ON -DBUILD_JAVA=OFF
I get the following error:
...
-- Found PythonInterp: /home/marcin/anaconda/bin/python2.7 (found suitable version "2.7.11", minimum required is "2.7")
-- Found PythonInterp: /home/marcin/anaconda/bin/python2.7 (found version "2.7.11")
-- Found components for NumPy
-- NUMPY_ROOT_DIR = /usr/local
-- NUMPY_INCLUDES = /home/marcin/anaconda/lib/python2.7/site-packages/numpy/core/include
-- NUMPY_LIBRARIES =
-- NUMPY_API_VERSION = 1.10.4
-- Boost version: 1.60.0
-- Found the following Boost libraries:
-- python
-- Configuring done
CMake Warning at /usr/local/share/cmake-3.3/Modules/FindPythonLibs.cmake:232 (add_library):
Cannot generate a safe runtime search path for target vizdoompython because
files in some directories may conflict with libraries in implicit
directories:
runtime library [libpython2.7.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/marcin/anaconda/lib
Some of these libraries may not be found correctly.
Call Stack (most recent call first):
CMakeLists.txt:131 (python_add_module)
CMake Warning at vizdoom_src/src/CMakeLists.txt:840 (add_executable):
Cannot generate a safe runtime search path for target vizdoom because files
in some directories may conflict with libraries in implicit directories:
runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/marcin/anaconda/lib
Some of these libraries may not be found correctly.
I'll try to fix this during weekend, but any tips would be appreciated.
Edit: using Ubuntu 14.04, python & numpy from anaconda distribution.
from vizdoom.
Hi, elanmart
- Thanks for Your interest in ViZDoom :)
- What is exactly Your problem with
apt-get install libsdl2-dev
? Have You triedapt-get update
andapt-get install -f
? - Your default Python installation are conflicting with anaconda. Its only a warning, so Makefile should be generated. Python paths look fine, it should compile and work despite warnings.
You can always tell CMake where to look for Python libs using -DPYTHON_INCLUDE_DIR
i -DPYTHON_LIBRARY
.
from vizdoom.
What is exactly Your problem with apt-get install libsdl2-dev? Have You tried apt-get update and apt-get install -f?
For the record, the error was E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages
, but it wasn't caused by the held packages. Anyway, this seems specific to my machine and I think can be ignored.
Your default Python installation are conflicting with anaconda. Its only a warning, so Makefile should be generated. Python paths look fine, it should compile and work despite warnings.
This was indeed unusual, after reinstalling python and downloading ViZDoom again, everything seems to work fine.
from vizdoom.
What is the g++ command to compile the cpp files?
from vizdoom.
You could use e.g.:
g++ Basic.cpp -lboost_system -lvizdoom -L../../bin -../../vizdoom_api_src -Wl,-rpath=../../bin -o Basic
You could also use cmake with CMakeLists.txt from examples/c++ as a base .
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.