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

Error when running bin/examine.py without the pre-trained model #19

Open
TalfrynK opened this issue Mar 5, 2020 · 5 comments
Open

Error when running bin/examine.py without the pre-trained model #19

TalfrynK opened this issue Mar 5, 2020 · 5 comments

Comments

@TalfrynK
Copy link

TalfrynK commented Mar 5, 2020

Whenever I try to run the environments such as base or hide_and_seek through the
bin/examine.py hide_and_seek or base commands
I receive this error:

Inferred:
	names: hide_and_seek.py
	arguments: {}


Traceback (most recent call last):
  File "bin/examine.py", line 91, in <module>
    main()
  File "/home/avi/anaconda3/envs/python3.6/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/avi/anaconda3/envs/python3.6/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/avi/anaconda3/envs/python3.6/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/avi/anaconda3/envs/python3.6/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "bin/examine.py", line 47, in main
    env_viewer=EnvViewer)
  File "/home/avi/Desktop/hideandseek/mujoco-worldgen/mujoco_worldgen/util/envs/examine_env.py", line 26, in examine_env
    return_args_remaining=True, **env_kwargs)
  File "/home/avi/Desktop/hideandseek/mujoco-worldgen/mujoco_worldgen/util/envs/flexible_load.py", line 88, in load_env
    matching = (glob(join(core_dir, envs_dir, "**", "*.py"), recursive=True) +
  File "/home/avi/anaconda3/envs/python3.6/lib/python3.6/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/home/avi/anaconda3/envs/python3.6/lib/python3.6/genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'tuple'

I'm not sure how to fix it and running the environments with the pre-trained models works perfectly fine.

@AmitMandliya
Copy link

I am facing the same issue. Were you able to fix it?

@shangdongyang
Copy link

Mee too, how to solve this problem?

@vonHartz
Copy link

vonHartz commented May 5, 2020

I had the same problem and fixed it with pull request #22 .

@HACLANG
Copy link

HACLANG commented Jul 5, 2020

Mee too, But I have solved it in the following way:

pip3 install jsonnet
pip install jsonnet

then run:

git clone https://github.com/openai/mujoco-py.git
cd mujoco-py/
sudo apt-get update
sudo apt-get install patchelf
sudo apt-get install python3 python-dev python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev libglew1.5 libglew-dev python-pip
sudo apt-get install libgl1-mesa-dev libgl1-mesa-glx libosmesa6-dev python3-pip python3-numpy python3-scipy
sudo pip3 install -r requirements.txt
sudo pip3 install -r requirements.dev.txt
sudo python3 setup.py install
sudo pip3 install gym
sudo pip install requirements.txt -e .
sudo pip install requirements.dev.txt -e .
pip install -e .

@pavlosSkev
Copy link

pavlosSkev commented Sep 22, 2020

I had the same error. I fixed it by running it like this:

python bin/examine.py examples/blueprint.jsonnet examples/blueprint.npz

It has something to do with the imports I think. So just be outside the "bin" folder, and run this command.

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

6 participants