Code Monkey home page Code Monkey logo

Comments (2)

Zackory avatar Zackory commented on May 30, 2024

This may be an anaconda problem.
You might consider using pyenv.
"No registered env with id: ScratchItchJaco-v1" means that you have not installed Assistive Gym correctly, i.e. Python cannot find Assistive Gym.

from assistive-gym.

decdox avatar decdox commented on May 30, 2024

This may be an anaconda problem. You might consider using pyenv. "No registered env with id: ScratchItchJaco-v1" means that you have not installed Assistive Gym correctly, i.e. Python cannot find Assistive Gym.

Thank you Zackory! But then i turn to a pyenv way, and I got a error report which may imply a version problem of the libraries. I can't check if this is caused by my OS.(my OS is Ubuntu 20.04)

/home/zing/.pyenv/shims/python3.6 /home/zing/assistive-gym/assistive_gym/env_viewer.py
/home/zing/env/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/zing/env/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/zing/env/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/zing/env/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/zing/env/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/zing/env/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/home/zing/env/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/zing/env/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/zing/env/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/zing/env/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/zing/env/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/zing/env/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
pybullet build time: May 3 2022 15:07:44
Using TensorFlow backend.
Traceback (most recent call last):
File "/home/zing/env/lib/python3.6/site-packages/ray/cloudpickle/init.py", line 39, in dumps_debug
return dumps(obj, *args, **kwargs)
File "/home/zing/env/lib/python3.6/site-packages/ray/cloudpickle/cloudpickle_fast.py", line 73, in dumps
cp.dump(obj)
File "/home/zing/env/lib/python3.6/site-packages/ray/cloudpickle/cloudpickle_fast.py", line 620, in dump
return Pickler.dump(self, obj)
File "/home/zing/env/lib/python3.6/site-packages/ray/pickle5_files/pickle5/pickle.py", line 485, in dump
self.save(obj)
File "/home/zing/env/lib/python3.6/site-packages/ray/pickle5_files/pickle5/pickle.py", line 601, in save
self.save_reduce(obj=obj, *rv)
File "/home/zing/env/lib/python3.6/site-packages/ray/pickle5_files/pickle5/pickle.py", line 689, in save_reduce
save(func)
File "/home/zing/env/lib/python3.6/site-packages/ray/pickle5_files/pickle5/pickle.py", line 601, in save
self.save_reduce(obj=obj, *rv)
File "/home/zing/env/lib/python3.6/site-packages/ray/pickle5_files/pickle5/pickle.py", line 689, in save_reduce
save(func)
File "/home/zing/env/lib/python3.6/site-packages/ray/pickle5_files/pickle5/pickle.py", line 576, in save
rv = reduce(self.proto)
TypeError: can't pickle function objects

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/zing/assistive-gym/assistive_gym/env_viewer.py", line 40, in
viewer(args.env)
File "/home/zing/assistive-gym/assistive_gym/env_viewer.py", line 17, in viewer
env = make_env(env_name, coop=True) if coop else gym.make(env_name)
File "/home/zing/env/lib/python3.6/site-packages/gym/envs/registration.py", line 235, in make
return registry.make(id, **kwargs)
File "/home/zing/env/lib/python3.6/site-packages/gym/envs/registration.py", line 129, in make
env = spec.make(**kwargs)
File "/home/zing/env/lib/python3.6/site-packages/gym/envs/registration.py", line 89, in make
cls = load(self.entry_point)
File "/home/zing/env/lib/python3.6/site-packages/gym/envs/registration.py", line 27, in load
mod = importlib.import_module(mod_name)
File "/home/zing/.pyenv/versions/3.6.5/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/zing/assistive-gym/assistive_gym/envs/init.py", line 1, in
from assistive_gym.envs.scratch_itch_envs import ScratchItchPR2Env, ScratchItchBaxterEnv, ScratchItchSawyerEnv, ScratchItchJacoEnv, ScratchItchStretchEnv, ScratchItchPandaEnv, ScratchItchPR2HumanEnv, ScratchItchBaxterHumanEnv, ScratchItchSawyerHumanEnv, ScratchItchJacoHumanEnv, ScratchItchStretchHumanEnv, ScratchItchPandaHumanEnv
File "/home/zing/assistive-gym/assistive_gym/envs/scratch_itch_envs.py", line 44, in
register_env('assistive_gym:ScratchItchPR2Human-v1', lambda config: ScratchItchPR2HumanEnv())
File "/home/zing/env/lib/python3.6/site-packages/ray/tune/registry.py", line 100, in register_env
_global_registry.register(ENV_CREATOR, name, env_creator)
File "/home/zing/env/lib/python3.6/site-packages/ray/tune/registry.py", line 166, in register
self._to_flush[(category, key)] = pickle.dumps_debug(value)
File "/home/zing/env/lib/python3.6/site-packages/ray/cloudpickle/init.py", line 47, in dumps_debug
raise type(exc)(msg)
TypeError: ray.cloudpickle.dumps(<function at 0x7f74e665f268>) failed.
To check which non-serializable variables are captured in scope, re-run the ray script with 'RAY_PICKLE_VERBOSE_DEBUG=1'.

Process finished with exit code 1

from assistive-gym.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.