{"action":"created","issue":{"url":"https://api.github.com/repos/openai/gym/issues/100","repository_url":"https://api.github.com/repos/openai/gym","labels_url":"https://api.github.com/repos/openai/gym/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/openai/gym/issues/100/comments","events_url":"https://api.github.com/repos/openai/gym/issues/100/events","html_url":"https://github.com/openai/gym/issues/100","id":154949426,"number":100,"title":"Box2d won't find some RAND_LIMIT_swigconstant","user":{"login":"justheuristic","id":3491902,"avatar_url":"https://avatars.githubusercontent.com/u/3491902?v=3","gravatar_id":"","url":"https://api.github.com/users/justheuristic","html_url":"https://github.com/justheuristic","followers_url":"https://api.github.com/users/justheuristic/followers","following_url":"https://api.github.com/users/justheuristic/following{/other_user}","gists_url":"https://api.github.com/users/justheuristic/gists{/gist_id}","starred_url":"https://api.github.com/users/justheuristic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justheuristic/subscriptions","organizations_url":"https://api.github.com/users/justheuristic/orgs","repos_url":"https://api.github.com/users/justheuristic/repos","events_url":"https://api.github.com/users/justheuristic/events{/privacy}","received_events_url":"https://api.github.com/users/justheuristic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jonasschneider","id":8098,"avatar_url":"https://avatars.githubusercontent.com/u/8098?v=3","gravatar_id":"","url":"https://api.github.com/users/jonasschneider","html_url":"https://github.com/jonasschneider","followers_url":"https://api.github.com/users/jonasschneider/followers","following_url":"https://api.github.com/users/jonasschneider/following{/other_user}","gists_url":"https://api.github.com/users/jonasschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/jonasschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonasschneider/subscriptions","organizations_url":"https://api.github.com/users/jonasschneider/orgs","repos_url":"https://api.github.com/users/jonasschneider/repos","events_url":"https://api.github.com/users/jonasschneider/events{/privacy}","received_events_url":"https://api.github.com/users/jonasschneider/received_events","type":"User","site_admin":false},"milestone":null,"comments":20,"created_at":"2016-05-16T02:25:50Z","updated_at":"2016-06-13T18:20:07Z","closed_at":null,"body":"Hello!\r\n\r\nIt's probably some silly mistake on my side, but i wasn't able to fix by random lever pulling, as usual.\r\n\r\nInstalling Box2d as in instuctions (using `pip install -e .[all]`) will throw error when trying to use some of Box2D examples.\r\n\r\nCode that reproduces the issue:\r\n```\r\nimport gym\r\natari = gym.make('LunarLander-v0')\r\natari.reset()\r\n```\r\n```\r\n[2016-05-16 02:14:25,430] Making new env: LunarLander-v0\r\n\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-1-f89e78f4410b> in <module>()\r\n      1 import gym\r\n----> 2 atari = gym.make('LunarLander-v0')\r\n      3 atari.reset()\r\n      4 #plt.imshow(atari.render('rgb_array'))\r\n\r\n/home/jheuristic/yozhik/gym/gym/envs/registration.pyc in make(self, id)\r\n     77         logger.info('Making new env: %s', id)\r\n     78         spec = self.spec(id)\r\n---> 79         return spec.make()\r\n     80 \r\n     81     def all(self):\r\n\r\n/home/jheuristic/yozhik/gym/gym/envs/registration.pyc in make(self)\r\n     52             raise error.Error('Attempting to make deprecated env {}. (HINT: is there a newer registered version of this env?)'.format(self.id))\r\n     53 \r\n---> 54         cls = load(self._entry_point)\r\n     55         env = cls(**self._kwargs)\r\n     56 \r\n\r\n/home/jheuristic/yozhik/gym/gym/envs/registration.pyc in load(name)\r\n     11 def load(name):\r\n     12     entry_point = pkg_resources.EntryPoint.parse('x={}'.format(name))\r\n---> 13     result = entry_point.load(False)\r\n     14     return result\r\n     15 \r\n\r\n/home/jheuristic/thenv/local/lib/python2.7/site-packages/pkg_resources/__init__.pyc in load(self, require, *args, **kwargs)\r\n   2378         if require:\r\n   2379             self.require(*args, **kwargs)\r\n-> 2380         return self.resolve()\r\n   2381 \r\n   2382     def resolve(self):\r\n\r\n/home/jheuristic/thenv/local/lib/python2.7/site-packages/pkg_resources/__init__.pyc in resolve(self)\r\n   2384         Resolve the entry point from its module and attrs.\r\n   2385         \"\"\"\r\n-> 2386         module = __import__(self.module_name, fromlist=['__name__'], level=0)\r\n   2387         try:\r\n   2388             return functools.reduce(getattr, self.attrs, module)\r\n\r\n/home/jheuristic/yozhik/gym/gym/envs/box2d/__init__.py in <module>()\r\n----> 1 from gym.envs.box2d.lunar_lander import LunarLander\r\n      2 from gym.envs.box2d.bipedal_walker import BipedalWalker, BipedalWalkerHardcore\r\n\r\n/home/jheuristic/yozhik/gym/gym/envs/box2d/lunar_lander.py in <module>()\r\n      3 from six.moves import xrange\r\n      4 \r\n----> 5 import Box2D\r\n      6 from Box2D.b2 import (edgeShape, circleShape, fixtureDef, polygonShape, revoluteJointDef, contactListener)\r\n      7 \r\n\r\n/home/jheuristic/thenv/local/lib/python2.7/site-packages/Box2D/__init__.py in <module>()\r\n     18 # 3. This notice may not be removed or altered from any source distribution.\r\n     19 #\r\n---> 20 from .Box2D import *\r\n     21 __author__ = '$Date$'\r\n     22 __version__ = '2.3.1'\r\n\r\n/home/jheuristic/thenv/local/lib/python2.7/site-packages/Box2D/Box2D.py in <module>()\r\n    433     return _Box2D.b2CheckPolygon(shape, additional_checks)\r\n    434 \r\n--> 435 _Box2D.RAND_LIMIT_swigconstant(_Box2D)\r\n    436 RAND_LIMIT = _Box2D.RAND_LIMIT\r\n    437 \r\n\r\nAttributeError: 'module' object has no attribute 'RAND_LIMIT_swigconstant'\r\n\r\n```\r\n\r\nWhat didn't help:\r\n```\r\npip uninstall gym\r\napt-get install -y python-numpy python-dev cmake zlib1g-dev libjpeg-dev xvfb libav-tools xorg-dev python-opengl\r\ngit clone https://github.com/openai/gym\r\ncd gym\r\npip install -e .[all] --upgrade\r\n```\r\n\r\nThe OS is Ubuntu 14.04 Server x64\r\nIt may be a clue that i am running the thing from inside python2 virtualenv (with all numpys, etc. installed)\r\n"},"comment":{"url":"https://api.github.com/repos/openai/gym/issues/comments/225665078","html_url":"https://github.com/openai/gym/issues/100#issuecomment-225665078","issue_url":"https://api.github.com/repos/openai/gym/issues/100","id":225665078,"user":{"login":"jietang","id":114302,"avatar_url":"https://avatars.githubusercontent.com/u/114302?v=3","gravatar_id":"","url":"https://api.github.com/users/jietang","html_url":"https://github.com/jietang","followers_url":"https://api.github.com/users/jietang/followers","following_url":"https://api.github.com/users/jietang/following{/other_user}","gists_url":"https://api.github.com/users/jietang/gists{/gist_id}","starred_url":"https://api.github.com/users/jietang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jietang/subscriptions","organizations_url":"https://api.github.com/users/jietang/orgs","repos_url":"https://api.github.com/users/jietang/repos","events_url":"https://api.github.com/users/jietang/events{/privacy}","received_events_url":"https://api.github.com/users/jietang/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T18:20:07Z","updated_at":"2016-06-13T18:20:07Z","body":"@TheBlueFrog any updates here? Are you stuck at the same point with Box2D?"}}
{"actor":{"display_login":"jietang"}}