Comments (11)
pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5
should run.
from roboschool.
It works, that's why it's there.
Is there a way to work around brew completely?
Possibly, yes. Quick googling produces some references to boost-python in conda, for example. If you can go through installation with only conda packages, let's post your experience for others to follow.
from roboschool.
@olegklimov Hi Oleg, thanks for the reply. I've tried and I think I can install cmake with conda. However it seems there is no way to install tinyxml without brew for Mac OSX(i.e. with pip/conda/from source, etc.)
from roboschool.
This project doesn't need tinyxml. Only Bullet does, and it bundles tinyxml in its repository. You can try again.
from roboschool.
Im having trouble getting this to work on 10.10.5 . would love to see non brew instructions as well.
from roboschool.
I had problems with this as well following the instructions on the repo on OSX 10.12.6 using conda.
I was able to resolve the problems by adding my conda lib and include directories to the the environment variable $PKG_CONFIG_PATH. I set my PKG_CONFIG_FLAG as:
/usr/local/lib/pkgconfig:/usr/local/lib:$HOME/anaconda/lib/pkgconfig
.
(in bash you can do with with:
export PKG_CONFIG_FLAG=/usr/local/lib/pkgconfig:/usr/local/lib:$HOME/anaconda/lib/pkgconfig
I also downloaded the version of libboost available on meznom's channel (https://anaconda.org/meznom/boost-python) using the command:
conda install -c meznom boost-python
After following the homebrew instructions laid out in the README and doing that, I was able to setup locally no problem with pip install -e $ROBOSCHOOL_PATH
After this I was able to get it to run without incident.
from roboschool.
I am still having some issues and I am not sure if it is a result of brew + Conda. Hopefully I am not polluting the issue thread with too much here.
Any advice would be appreciated.
I am running macOS 10.12.6, I am using a conda environment. I followed the "Mac, Anaconda with Python 3" instructions.
All was well until running pip3:
Obtaining file:///Users/stephenhansen/Code/DeepRL/gym/roboschool Complete output from command python setup.py egg_info: found resource files: 185 running egg_info Mac, assumed python3, homebrew branch Link against python 3.5 Slow hardware or software render (no shadows) rm -f ../robot-test-tool ../robot-test-tool_d ../cpp_household.so ../cpp_household_d.so .build-release/physics-bullet.o .build-release/assets-mesh.o .build-release/random-world-tools.o .build-release/render-glwidget.o .build-release/render-hud.o .build-release/render-simple.o .build-release/render-simple-primitives.o .build-release/test-tool-qt4.o .build-release/python-binding.o .build-debug/physics-bullet.o .build-debug/assets-mesh.o .build-debug/random-world-tools.o .build-debug/render-glwidget.o .build-debug/render-hud.o .build-debug/render-simple.o .build-debug/render-simple-primitives.o .build-debug/test-tool-qt4.o .build-debug/python-binding.o .generated/*.moc *.ilk *.pdb .build-release/physics-bullet.o.dep .build-release/assets-mesh.o.dep .build-release/random-world-tools.o.dep .build-release/render-glwidget.o.dep .build-release/render-hud.o.dep .build-release/render-simple.o.dep .build-release/render-simple-primitives.o.dep .build-release/test-tool-qt4.o.dep .build-release/python-binding.o.dep .build-debug/physics-bullet.o.dep .build-debug/assets-mesh.o.dep .build-debug/random-world-tools.o.dep .build-debug/render-glwidget.o.dep .build-debug/render-hud.o.dep .build-debug/render-simple.o.dep .build-debug/render-simple-primitives.o.dep .build-debug/test-tool-qt4.o.dep .build-debug/python-binding.o.dep rm -rf .generated rm -rf .build-debug rm -rf .build-release Mac, assumed python3, homebrew branch Link against python 3.5 Slow hardware or software render (no shadows) mkdir -p .generated mkdir -p .build-release mkdir -p .build-debug gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function -Wno-deprecated-register -fPIC -DBT_USE_DOUBLE_PRECISION -g -O3 -march=native -I/System/Library/Frameworks/OpenGL.framework/Headers
pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5-Ibullet_local_install/include -Ibullet_local_install/include/bullet -I/usr/local/include/bullet -c physics-bullet.cpp -o.build-release/physics-bullet.o -MMD -MF .build-release/physics-bullet.o.dep /bin/sh: pkg-config: command not found gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function -Wno-deprecated-register -fPIC -DBT_USE_DOUBLE_PRECISION -g -O3 -march=native -I/System/Library/Frameworks/OpenGL.framework/Headers
pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5-Ibullet_local_install/include -Ibullet_local_install/include/bullet -I/usr/local/include/bullet -c assets-mesh.cpp -o.build-release/assets-mesh.o -MMD -MF .build-release/assets-mesh.o.dep /bin/sh: pkg-config: command not found gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function -Wno-deprecated-register -fPIC -DBT_USE_DOUBLE_PRECISION -g -O3 -march=native -I/System/Library/Frameworks/OpenGL.framework/Headers
pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5-Ibullet_local_install/include -Ibullet_local_install/include/bullet -I/usr/local/include/bullet -c random-world-tools.cpp -o.build-release/random-world-tools.o -MMD -MF .build-release/random-world-tools.o.dep /bin/sh: pkg-config: command not found gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function -Wno-deprecated-register -fPIC -DBT_USE_DOUBLE_PRECISION -g -O3 -march=native -I/System/Library/Frameworks/OpenGL.framework/Headers
pkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5` -Ibullet_local_install/include -Ibullet_local_install/include/bullet -I/usr/local/include/bullet -c render-glwidget.cpp -o.build-release/render-glwidget.o -MMD -MF .build-release/render-glwidget.o.dep
/bin/sh: pkg-config: command not found
In file included from physics-bullet.cpp:1:
In file included from ./render-glwidget.h:1:
./render-simple.h:6:10: fatal error: 'QtWidgets/QOpenGLWidget' file not found
#include <QtWidgets/QOpenGLWidget>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build-release/physics-bullet.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from assets-mesh.cpp:1:
./render-simple.h:6:10: fatal error: 'QtWidgets/QOpenGLWidget' file not found
#include <QtWidgets/QOpenGLWidget>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build-release/assets-mesh.o] Error 1
In file included from random-world-tools.cpp:3:
./render-simple.h:6:10: fatal error: 'QtWidgets/QOpenGLWidget' file not found
#include <QtWidgets/QOpenGLWidget>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build-release/random-world-tools.o] Error 1
In file included from render-glwidget.cpp:2:
In file included from ./render-glwidget.h:1:
./render-simple.h:6:10: fatal error: 'QtWidgets/QOpenGLWidget' file not found
#include <QtWidgets/QOpenGLWidget>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build-release/render-glwidget.o] Error 1
cd /Users/stephenhansen/Code/DeepRL/gym/roboschool/roboschool/cpp-household && make clean && make -j4 dirs ../cpp_household.soC++ dependencies for this project are: bullet tinyxml boost_python assimp Qt5 If you see compilation error FIRST THING TO CHECK if pkg-config call was successful. Install dependencies that pkg-config cannot find. ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /Users/stephenhansen/Code/DeepRL/gym/roboschool/
I have checked to make sure I have installed the C++ dependancies.
(deeprl2) stephenhansen@Stephens-MacBook-Pro:~/Code/DeepRL/gym$ conda list
packages in environment at /Users/stephenhansen/anaconda/envs/deeprl2:atari-py 0.1.1
bleach 1.5.0
boost-python 1.55.0 0 meznom
Box2D-kengz 2.3.3
bzip2 1.0.6 h92991f9_1
ca-certificates 2017.08.26 ha1e5d58_0
certifi 2017.7.27.1 py35h0fdde5e_0
chardet 3.0.4
cmake 3.9.1 hc2f9301_0
curl 7.55.1 h7601780_3
expat 2.2.4 h8f26bf8_1
freetype 2.8 h143eb01_0
html5lib 0.9999999
icu 58.2 hea21ae5_0
idna 2.6
imageio 2.2.0
intel-openmp 2018.0.0 hdd0ccc9_7
jpeg 9b haccd157_1
Keras 2.0.8
libcxx 4.0.1 h579ed51_0
libcxxabi 4.0.1 hebd6815_0
libedit 3.1 hb4e282d_0
libffi 3.2.1 hd939716_3
libgfortran 3.0.1 h93005f0_2
libpng 1.6.32 hce72d48_2
libssh2 1.8.0 h1218725_2
libuv 1.14.0 h740c2a5_0
lxml 4.0.0
Markdown 2.6.9
mkl 2018.0.0 hc285769_4
mujoco-py 0.5.7
ncurses 6.0 ha932d30_1
numpy 1.13.1
olefile 0.44
openssl 1.0.2l h57f3a61_2
pachi-py 0.0.21
Pillow 4.2.1
pip 9.0.1
pip 9.0.1 py35he52dd69_3
protobuf 3.4.0
pyglet 1.2.4
PyOpenGL 3.1.0
python 3.5.4 hf91e954_15
PyYAML 3.12
qt 5.6.2 h9975529_14
readline 7.0 h81b24a6_3
requests 2.18.4
rhash 1.3.5 h3aa0507_1
scipy 0.19.1
setuptools 36.5.0 py35h52cde6a_0
setuptools 36.5.0
six 1.11.0
sqlite 3.20.1 h900c3b0_1
tensorflow 1.3.0
tensorflow-tensorboard 0.1.7
Theano 0.9.0
tk 8.6.7 hcdce994_1
urllib3 1.22
Werkzeug 0.12.2
wheel 0.30.0
wheel 0.29.0 py35ha7aa5c4_1
xz 5.2.3 ha24016e_1
zlib 1.2.11 h60db283_1
(deeprl2) stephenhansen@Stephens-MacBook-Pro:~/Code/DeepRL/gym$ brew list
assimp cmake gcc isl mpfr pcre readline tinyxml xvid
boost ctags gdbm lame openssl python3 sqlite wget xz
boost-python ffmpeg gmp libmpc [email protected] qt swig > x264
from roboschool.
thank you @olegklimov. After running pkg-config and the following, I was able to run pip3 install -e $ROBOSCHOOL_PATH
without errors.
although trivial, In case someone else comes across this in a search here are the other things I did get it to install.
sudo chown -R $USER ~/anaconda/lib/python3.6
I also had to install a few packages I hadn't installed in that environment earlier
conda install numpy six
I am now having trouble accessing the environments that ship with roboschool.
When I try to execute the suggested test of the flagrun I get a key error:
python $ROBOSCHOOL_PATH/agent_zoo/RoboschoolHumanoidFlagrun_v0_2017may.py
[2017-10-01 23:32:02,421] Making new env: RoboschoolHumanoidFlagrun-v1
Traceback (most recent call last):
File "/Users/stephenhansen/Code/DeepRL/gym/gym/envs/registration.py", line 140, in spec
return self.env_specs[id]
KeyError: 'RoboschoolHumanoidFlagrun-v1'During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/stephenhansen/Code/DeepRL/gym/roboschool/agent_zoo/RoboschoolHumanoidFlagrun_v0_2017may.py", line 492, in
demo_run()
File "/Users/stephenhansen/Code/DeepRL/gym/roboschool/agent_zoo/RoboschoolHumanoidFlagrun_v0_2017may.py", line 23, in demo_run
env = gym.make("RoboschoolHumanoidFlagrun-v1")
File "/Users/stephenhansen/Code/DeepRL/gym/gym/envs/registration.py", line 164, in make
return registry.make(id)
File "/Users/stephenhansen/Code/DeepRL/gym/gym/envs/registration.py", line 121, in make
spec = self.spec(id)
File "/Users/stephenhansen/Code/DeepRL/gym/gym/envs/registration.py", line 150, in spec
raise error.UnregisteredEnv('No registered env with id: {}'.format(id))
gym.error.UnregisteredEnv: No registered env with id: RoboschoolHumanoidFlagrun-v1
I am not sure how related this comment is to the intent of this issue (Conda and Brew dependancies) I would be happy to make a new issue if you think it necessary.
from roboschool.
To clarify the problem I am still having as mentioned in the previous post.
- roboschool installs without errors
- I can run import roboschool without errors
- I cannot run any of the environments that ship with roboschool
e.g.env2 = gym.make('RoboschoolHumanoidFlagrun-v1')
returns
gym.error.UnregisteredEnv: No registered env with id: RoboschoolHumanoidFlagrun-v1
Here are the install steps I have completed so far:
- Mac, Anaconda with Python 3 instructions from README
- Compile and install bullet instructions from README
sudo chown -R $USER ~/anaconda/lib/python3.6
to prevent ownership issuespkg-config --cflags Qt5Widgets Qt5OpenGL assimp python-3.5
as suggested by @olegklimov
I am running on macOS 10.12.6
Any advice is appreciated. Let me know if I should create a new issue - sorry if I have polluted this thread with unrelated comments.
from roboschool.
Oh even if it is like you describe, should be easy to debug. Just with print
s is alright. Put one in roboschool init, put another in Gym.
from roboschool.
@stephenjhansen have you solved it? Same problem when installing it with ubuntu 16.04 and anaconda 3
from roboschool.
Related Issues (20)
- RoboschoolHumanoidFlagrun-v1 flies in an endless summersault?
- Searching bullet source files in wrong folder
- Frozen render window
- unknown option 'qt' when running make -j4 HOT 9
- Baselines for roboschool environments HOT 1
- The ATLAS robot COLLADA/DAE models have invalid texture references.
- Can provide the API for save & restore the state of the environment?
- I cannot install libgl1-mesa-dev on centos, so I always meet the error that ImportError: cannot import name 'cpp_household'. HOT 1
- Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/svu/biehz/zhimin/software/roboschool_lib/roboschool/__init__.py", line 112, in <module> from roboschool.gym_pendulums import RoboschoolInvertedPendulum File "/home/svu/biehz/zhimin/software/roboschool_lib/roboschool/gym_pendulums.py", line 1, in <module> from roboschool.scene_abstract import SingleRobotEmptyScene File "/home/svu/biehz/zhimin/software/roboschool_lib/roboschool/scene_abstract.py", line 12, in <module> from roboschool import cpp_household as cpp_household ImportError: cannot import name 'cpp_household' >>> HOT 1
- ld: library not found for -lPhysicsClientC_API
- Segmentation Fault when calling render()
- ImportError: cannot import name 'cpp_household' [Google Colab] HOT 5
- unexpected keyword argument 'tags' HOT 6
- Package 'libav-tools' has no installation candidate HOT 4
- import roboschool after pip install gives TypeError due to 'tags' HOT 3
- problem of using cpp_household.Joint..reset_current_position
- ImportError: libQt5OpenGL.so.5: cannot open shared object file: No such file or directory HOT 4
- PyBullet Links don't work
- AttributeError: 'EntryPoints' object has no attribute 'get' HOT 1
- [email protected]
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 roboschool.