Comments (6)
Can you check pkg-config --cflags ale
gives the right location?
If not can you try add the ale directory to INCLUDE_DIR
from elf.
When I call pkg-config --cflags ale
the result is:
Package ale was not found in the pkg-config search path.
Perhaps you should add the directory containing `ale.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ale' found
When I call PKG_CONFIG_PATH=~/Arcade-Learning-Environment/build/ pkg-config --cflags ale
, I get -I/usr/local/include
.
I've tried adding INCLUDE_DIR += ~/Arcade-Learning-Environment/
, INCLUDE_DIR += ~/Arcade-Learning-Environment/build/
, and INCLUDE_DIR += ~/Arcade-Learning-Environment/src/
to the Makefile, each to no avail. Am I missing something in the ALE build? I built according to the instructions on the website.
from elf.
Hi! I met the same problem as you.And I solved it by running make install
While building ALE.
Right after the official instruction:
cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF -DBUILD_EXAMPLES=ON .
make -j 4
But I encountered another problem. Here is the log:
$make
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
[dep] python_wrapper.cc ...
[dep] atari_game.cc ...
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
[cc] atari_game.cc ...
atari_game.cc: In member function 'void AtariGame::MainLoop(const std::atomic_bool&)':
atari_game.cc:108:27: error: 'using AIComm = using AIComm = class AICommT<ContextT<GameOptions, GameState, Reply> >' has no member named 'newest'
act = _ai_comm->newest().reply.action;
^
atari_game.cc: In member function 'int AtariGame::_prevent_stuck(std::default_random_engine&, int)':
atari_game.cc:158:17: error: 'using AIComm = using AIComm = class AICommT<ContextT<GameOptions, GameState, Reply> >' has no member named 'newest'
_ai_comm->newest().reply.action = act;
^
make: *** [obj/atari_game.o] Error 1
I am running on macOS Sierra and the default python version is 2.7. So I modified Makefile a single line:
PYTHON_CONFIG ?= python3-config
Before makefile I executed some commands:
$ export CC=/usr/local/bin/gcc-4.9
$ export CXX=/usr/local/bin/g++-4.9
Otherwise I get another error:
clang: error: unsupported option '-fopenmp'
I have tried to fix the error by referring to #23
Changed the code in atari_game.cc to _ai_comm->history().newest().reply;
But it even became worse...
Any idea how to fix this? Thank you so much!
from elf.
Thanks, @haoxu13. I'm running in Docker with Ubuntu 16.04, and I'm now getting the same error you are:
root@9d0d2101153a:~/ELF/atari# PYTHON_CONFIG=/opt/conda/bin/python3-config make
[cc] atari_game.cc ...
atari_game.cc: In member function 'void AtariGame::MainLoop(const atomic_bool&)':
atari_game.cc:108:27: error: 'using AIComm = using AIComm = class AICommT<ContextT<GameOptions, GameState, Reply> > {aka class AICommT<ContextT<GameOptions, GameState, Reply> >}' has no member named 'newest'
act = _ai_comm->newest().reply.action;
^
atari_game.cc: In member function 'int AtariGame::_prevent_stuck(std::default_random_engine&, int)':
atari_game.cc:158:17: error: 'using AIComm = using AIComm = class AICommT<ContextT<GameOptions, GameState, Reply> > {aka class AICommT<ContextT<GameOptions, GameState, Reply> >}' has no member named 'newest'
_ai_comm->newest().reply.action = act;
^
Makefile:65: recipe for target 'obj/atari_game.o' failed
make: *** [obj/atari_game.o] Error 1
from elf.
from elf.
Hi, I run into this issue too, and this is how it was resolved:
(1) make sure pkg-config --cflags ale finds the package.
(2) in my case, without root, my package is not properly installed. so the /usr/local/include is empty
(3) I provide the absolute path for header files to ale_interface.hpp in all relevant code (#include "path/to/Arcade-Learning-Environment/src/ale_interface.hpp")
(but i didn't have additional errors and make worked)
from elf.
Related Issues (20)
- Get a UserWarning: Implicit dimension choice for softmax when training mini-RTS following Install tutorial.
- RuntimeError: The expanded size of the tensor (1) must match the existing size (128) HOT 2
- TypeError: cuda() got an unexpected keyword argument 'device_id' HOT 1
- ModuleNotFoundError: No module named 'go_game'
- Can not run train_minirts.sh
- [Questions:] What is the pytorch version for atari?
- Cannot run with python 3.7 HOT 1
- train MiniRTS is slow - no information when will end HOT 1
- Is there any existing implement of training with different type RL models? HOT 1
- Modify Game
- KeyError: 'Batch(): specified key: res or last_res not found!' HOT 2
- Memory leak
- implement for pytorch 0.4.0? HOT 2
- Trouble fixing Travis CI build HOT 2
- Minimum working example for the RTS game with an RL lifecycle? HOT 1
- Problems when running selfplay_minirts
- Flipped tensor dimensions in reply when running train_minirts.sh HOT 3
- Are there plans to upgrade to Torch 1.5/1.6?
- Python 3.7: SyntaxError: invalid syntax due to the use of `async` which is a keyword
- game_TD not compilable
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 elf.