Skip to content
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

Python 3.6 support #52

Closed
jonasschneider opened this issue Jun 29, 2017 · 11 comments
Closed

Python 3.6 support #52

jonasschneider opened this issue Jun 29, 2017 · 11 comments

Comments

@jonasschneider
Copy link
Contributor

As reported in #43, #47, #49, we currently don't support Python 3.6. We should fix these bugs and add 3.6 to the Travis build matrix.

@abhigenie92
Copy link

Any ETA?

@geyang
Copy link

geyang commented Sep 5, 2017

Would be great if could use 3.6! I am trying to use the class attribute annotation feature of 3.6 for parameter prototypes.

Now I'm out of luck 😂 @jonasschneider

@jonasschneider
Copy link
Contributor Author

Hey @abhigenie92 @episodeyang -- likely nobody at OpenAI is currently working on this, since we use 3.5 exclusively internally. I don't expect this to change for at least a few months. However I'd be very happy to merge a patch adding support for 3.6.

@ViktorM
Copy link

ViktorM commented Oct 8, 2017

Are there any updates on 3.6 support? I suspect it shouldn't be too hard to add 3.6 support if 3.5 is already there.

@machinaut
Copy link
Contributor

Update: after recent changes we support Python 3.6 now. I'm closing this and suggest other issues be opened separately.

@liorshk
Copy link

liorshk commented Oct 25, 2017

From which version?
Please update the readme

@bjnortier
Copy link

@liorshk Since 1.50.1.1 was tagged 4 months ago, I suspect only in the master branch

Caveat Emptor

@abhigenie92
Copy link

abhigenie92 commented Nov 7, 2017

Please update Readme @machinaut

@kirk86
Copy link

kirk86 commented Mar 14, 2018

This support for 3.6.x is either broken or is not working properly. The gym environment works fine for 3.6.x with very minor warnings but mujoco-py doesn't work at all for python 3.6.x and latest gym. Basically I have installed mjpro150, mujoco-py=1.50.x, gym=0.10.x on ubuntu 16.04. mujoco-py fails during installation cannot find some header files:

/tmp/pip-build-7uw627tn/mujoco-py/mujoco_py/gl/eglshim.c:4:21: fatal error: GL/glew.h: No such file or directory
  compilation terminated.
  error: command '/usr/bin/gcc-5' failed with exit status 1

  ----------------------------------------
  Failed building wheel for mujoco-py
  Running setup.py clean for mujoco-py
Failed to build mujoco-py
Installing collected packages: mujoco-py
  Running setup.py install for mujoco-py ... error
    Complete output from command /home/user/miniconda3/envs/tf/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7uw627tn/mujoco-py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-n5yr5kcp-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'mujoco_py.cymj' extension
    /tmp/pip-build-7uw627tn/mujoco-py/mujoco_py/generated/_pyxbld_LinuxExtensionBuilder/temp.linux-x86_64-3.6/tmp/pip-build-7uw627tn/mujoco-py/mujoco_py/cymj.o up to date, skipping.
    /usr/bin/gcc-5 -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Imujoco_py -I/tmp/pip-build-7uw627tn/mujoco-py/mujoco_py -I/home/user/.mujoco/mjpro150/include -I/home/user/miniconda3/envs/tf/lib/python3.6/site-packages/numpy/core/include -I/tmp/pip-build-7uw627tn/mujoco-py/mujoco_py/vendor/egl -I/home/user/miniconda3/envs/tf/include/python3.6m -c /tmp/pip-build-7uw627tn/mujoco-py/mujoco_py/gl/eglshim.c -o /tmp/pip-build-7uw627tn/mujoco-py/mujoco_py/generated/_pyxbld_LinuxExtensionBuilder/temp.linux-x86_64-3.6/tmp/pip-build-7uw627tn/mujoco-py/mujoco_py/gl/eglshim.o -fopenmp -w
    /tmp/pip-build-7uw627tn/mujoco-py/mujoco_py/gl/eglshim.c:4:21: fatal error: GL/glew.h: No such file or directory
    compilation terminated.
    error: command '/usr/bin/gcc-5' failed with exit status 1

    ----------------------------------------
Command "/home/user/miniconda3/envs/tf/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7uw627tn/mujoco-py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-n5yr5kcp-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-7uw627tn/mujoco-py/

@cdsjatin
Copy link

with latest python=3.6.x and latest mjpro1.50.x it is exiting as
command 'gcc' failed with exit status 1,
the error is as:
fatal error: mjmodel.h: No such file or directory #include "mjmodel.h"

@pshvechikov
Copy link

For me the problem was that the mjmodel.h was in the .mujoco/mjpro150/mjpro150/include/, but not on the .mujoco/mjpro150/include/.
Copying the contents of the .mujoco/mjpro150/mjpro150/ to one level up solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants