Coder Social home page Coder Social logo

Comments (1)

Behavior-Cloning avatar Behavior-Cloning commented on September 22, 2024

Hi, first of all, thanks for sharing the code of your paper.

I encountered many problems during the installation, since viskit has incompatible dependencies to the one you specified in your library (e.g., the NumPy version, and so on). I solved it by removing some of the version specification in the installer of your library and the viskit's.

For this reason, I share with you in the end of this messages, all the libraries with relative version of the mopo conda environment.

When I lunch mopo run_local examples.development --config=examples.config.d4rl.halfcheetah_mixed --gpus=1 --trial-gpus=1 from the main folder i get the following error stack,

Traceback (most recent call last):
  File "/home/samuele/miniconda3/envs/mopo/bin/mopo", line 33, in <module>
    sys.exit(load_entry_point('mopo', 'console_scripts', 'mopo')())
  File "/home/samuele/miniconda3/envs/mopo/bin/mopo", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/home/samuele/miniconda3/envs/mopo/lib/python3.6/site-packages/importlib_metadata/__init__.py", line 100, in load
    module = import_module(match.group('module'))
  File "/home/samuele/miniconda3/envs/mopo/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/samuele/Projects/mopo/softlearning/scripts/console_scripts.py", line 26, in <module>
    from examples.instrument import (
ModuleNotFoundError: No module named 'examples.instrument'

I launched the command from different folders, e.g, the main folder, the mopo folder, etc. I always experience the same error.

The detail about my environment

aiohttp-cors              0.7.0                    pypi_0    pypi
aioredis                  1.3.1                    pypi_0    pypi
asn1crypto                1.4.0                      py_0  
astor                     0.8.1                    pypi_0    pypi
astunparse                1.6.3                    pypi_0    pypi
async-timeout             3.0.1                    pypi_0    pypi
atari-py                  0.2.6                    pypi_0    pypi
atomicwrites              1.4.0                    pypi_0    pypi
attrs                     20.3.0                   pypi_0    pypi
blessings                 1.7                      pypi_0    pypi
boto3                     1.17.14                  pypi_0    pypi
botocore                  1.20.14                  pypi_0    pypi
brotlipy                  0.7.0           py36h27cfd23_1003  
ca-certificates           2021.1.19            h06a4308_0  
cachetools                4.2.1                    pypi_0    pypi
certifi                   2020.12.5        py36h06a4308_0  
cffi                      1.14.5                   pypi_0    pypi
chardet                   3.0.4                    pypi_0    pypi
click                     7.1.2                    pypi_0    pypi
cloudpickle               1.6.0                    pypi_0    pypi
colorama                  0.4.4                    pypi_0    pypi
colorful                  0.5.4                    pypi_0    pypi
conda                     4.9.2            py36h06a4308_0  
conda-package-handling    1.7.2            py36h03888b9_0  
contextvars               2.4                      pypi_0    pypi
cryptography              3.4.6                    pypi_0    pypi
cython                    0.29.22                  pypi_0    pypi
d4rl                      1.1                      pypi_0    pypi
dask                      2021.2.0                 pypi_0    pypi
dataclasses               0.8                      pypi_0    pypi
decorator                 4.4.2                    pypi_0    pypi
deepdiff                  5.2.3                    pypi_0    pypi
dm-control                0.0.355168290            pypi_0    pypi
dm-env                    1.4                      pypi_0    pypi
dm-tree                   0.1.5                    pypi_0    pypi
dotmap                    1.3.23                   pypi_0    pypi
filelock                  3.0.12                   pypi_0    pypi
flask                     1.0.2                    pypi_0    pypi
flatbuffers               1.12                     pypi_0    pypi
funcsigs                  1.0.2                    pypi_0    pypi
gast                      0.3.3                    pypi_0    pypi
gitdb                     4.0.5                    pypi_0    pypi
gitdb2                    4.0.2                    pypi_0    pypi
gitpython                 3.1.13                   pypi_0    pypi
glfw                      2.0.0                    pypi_0    pypi
google-api-core           1.26.0                   pypi_0    pypi
google-api-python-client  1.12.8                   pypi_0    pypi
google-auth               1.27.0                   pypi_0    pypi
google-auth-httplib2      0.0.4                    pypi_0    pypi
google-auth-oauthlib      0.4.2                    pypi_0    pypi
google-pasta              0.2.0                    pypi_0    pypi
googleapis-common-protos  1.52.0                   pypi_0    pypi
gpflow                    2.1.4                    pypi_0    pypi
gpustat                   0.6.0                    pypi_0    pypi
grpcio                    1.32.0                   pypi_0    pypi
gtimer                    1.0.0b5                  pypi_0    pypi
gym                       0.18.0                   pypi_0    pypi
h5py                      2.10.0                   pypi_0    pypi
hiredis                   1.1.0                    pypi_0    pypi
httplib2                  0.19.0                   pypi_0    pypi
idna                      2.10               pyhd3eb1b0_0  
idna-ssl                  1.1.0                    pypi_0    pypi
immutables                0.15                     pypi_0    pypi
importlib-metadata        3.6.0                    pypi_0    pypi
iniconfig                 1.1.1                    pypi_0    pypi
itsdangerous              1.1.0                    pypi_0    pypi
jmespath                  0.10.0                   pypi_0    pypi
joblib                    1.0.1                    pypi_0    pypi
jsonschema                3.2.0                    pypi_0    pypi
keras-applications        1.0.8                    pypi_0    pypi
keras-preprocessing       1.1.2                    pypi_0    pypi
kiwisolver                1.3.1                    pypi_0    pypi
labmaze                   1.0.3                    pypi_0    pypi
libedit                   3.1.20191231         h14c3975_1  
libffi                    3.2.1             hf484d3e_1007  
libgcc-ng                 9.1.0                hdf63c60_0  
libstdcxx-ng              9.1.0                hdf63c60_0  
lockfile                  0.12.2                   pypi_0    pypi
lxml                      4.6.2                    pypi_0    pypi
lz4                       3.1.3                    pypi_0    pypi
markdown                  3.3.3                    pypi_0    pypi
matplotlib                2.0.2                    pypi_0    pypi
mjrl                      1.0.0                    pypi_0    pypi
mopo                      0.0.1                     dev_0    <develop>
more-itertools            8.7.0                    pypi_0    pypi
msgpack                   1.0.2                    pypi_0    pypi
multidict                 5.1.0                    pypi_0    pypi
multipledispatch          0.6.0                    pypi_0    pypi
multiworld                0.0.0                    pypi_0    pypi
ncurses                   6.2                  he6710b0_1  
networkx                  2.5                      pypi_0    pypi
numpy                     1.16.0                   pypi_0    pypi
nvidia-ml-py3             7.352.0                  pypi_0    pypi
oauthlib                  3.1.0                    pypi_0    pypi
opencensus                0.7.12                   pypi_0    pypi
opencensus-context        0.1.2                    pypi_0    pypi
opencv-python-headless    4.3.0.36                 pypi_0    pypi
openssl                   1.0.2u               h7b6447c_0  
opt-einsum                3.3.0                    pypi_0    pypi
ordered-set               4.0.2                    pypi_0    pypi
packaging                 20.9                     pypi_0    pypi
pandas                    1.1.5                    pypi_0    pypi
patchelf                  0.9                  he6710b0_3  
pip                       21.0.1           py36h06a4308_0  
plotly                    4.0.0                    pypi_0    pypi
pluggy                    0.13.1                   pypi_0    pypi
prometheus-client         0.9.0                    pypi_0    pypi
protobuf                  3.15.2                   pypi_0    pypi
psutil                    5.8.0                    pypi_0    pypi
py                        1.10.0                   pypi_0    pypi
py-spy                    0.3.4                    pypi_0    pypi
pyasn1                    0.4.8                    pypi_0    pypi
pyasn1-modules            0.2.8                    pypi_0    pypi
pybullet                  3.0.8                    pypi_0    pypi
pycosat                   0.6.3            py36h27cfd23_0  
pycparser                 2.20                       py_2  
pygame                    2.0.1                    pypi_0    pypi
pyglet                    1.5.0                    pypi_0    pypi
pyopengl                  3.1.5                    pypi_0    pypi
pyopenssl                 20.0.1                   pypi_0    pypi
pyrsistent                0.17.3                   pypi_0    pypi
pysocks                   1.7.1            py36h06a4308_0  
pytest                    6.2.2                    pypi_0    pypi
python                    3.6.5                hc3d631a_2  
pytz                      2021.1                   pypi_0    pypi
pywavelets                1.1.1                    pypi_0    pypi
pyyaml                    5.4.1                    pypi_0    pypi
ray                       1.2.0                    pypi_0    pypi
readline                  7.0                  h7b6447c_5  
redis                     3.5.3                    pypi_0    pypi
requests                  2.25.1             pyhd3eb1b0_0  
requests-oauthlib         1.3.0                    pypi_0    pypi
retrying                  1.3.3                    pypi_0    pypi
rsa                       4.7.2                    pypi_0    pypi
ruamel_yaml               0.15.87          py36h7b6447c_1  
s3transfer                0.3.4                    pypi_0    pypi
scikit-image              0.17.2                   pypi_0    pypi
scikit-learn              0.24.1                   pypi_0    pypi
scipy                     1.5.4                    pypi_0    pypi
serializable              0.1.0                    pypi_0    pypi
setproctitle              1.2.2                    pypi_0    pypi
setuptools                52.0.0           py36h06a4308_0  
six                       1.15.0           py36h06a4308_0  
smmap                     3.0.5                    pypi_0    pypi
smmap2                    3.0.1                    pypi_0    pypi
sqlite                    3.33.0               h62c20be_0  
tabulate                  0.8.9                    pypi_0    pypi
tensorboard               2.4.1                    pypi_0    pypi
tensorboard-plugin-wit    1.8.0                    pypi_0    pypi
tensorboardx              2.1                      pypi_0    pypi
tensorflow                2.4.1                    pypi_0    pypi
tensorflow-estimator      2.4.0                    pypi_0    pypi
tensorflow-gpu            2.4.1                    pypi_0    pypi
tensorflow-probability    0.12.1                   pypi_0    pypi
termcolor                 1.1.0                    pypi_0    pypi
threadpoolctl             2.1.0                    pypi_0    pypi
tifffile                  2020.9.3                 pypi_0    pypi
tk                        8.6.10               hbc83047_0  
toml                      0.10.2                   pypi_0    pypi
toolz                     0.11.1                   pypi_0    pypi
tqdm                      4.57.0                   pypi_0    pypi
typing-extensions         3.7.4.3                  pypi_0    pypi
uritemplate               3.0.1                    pypi_0    pypi
urllib3                   1.26.3             pyhd3eb1b0_0  
viskit                    0.1                       dev_0    <develop>
werkzeug                  1.0.1                    pypi_0    pypi
wheel                     0.36.2             pyhd3eb1b0_0  
wrapt                     1.12.1                   pypi_0    pypi
xz                        5.2.5                h7b6447c_0  
yaml                      0.2.5                h7b6447c_0  
yarl                      1.6.3                    pypi_0    pypi
zipp                      3.4.0                    pypi_0    pypi
zlib                      1.2.11               h7b6447c_3

Thanks in advance! Best regards, Samuele.

I have a same problem with you.
It seems the module with the same name caused this. I have a rllab in my python v-env, and it has a module called examples too!
we can retrieve the path of examples by:

import examples
print('place: '+examples.__file__+'\n') 

we can fix it by adding dir /mopo to the first place of the os.path list:

path0=__file__ 
for ii in range(3):
    path0=os.path.dirname(path0)
sys.path.insert(0, path0) 

Hope this can help.

from mopo.

Related Issues (12)

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.