alex-petrenko / megaverse

High-throughput simulation platform for Artificial Intelligence reseach
https://www.megaverse.info
MIT License
219 stars 20 forks source link

ImportError: libMagnumBulletIntegration.so.2 #18

Open DrJimFan opened 3 years ago

DrJimFan commented 3 years ago

I'm able to install the library successfully, but I get this error when I try to run the example command:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/user/.local/lib/python3.8/site-packages/megaverse_rl/train.py", line 11, in <module>
    from megaverse_rl.megaverse_utils import register_env
  File "/home/user/.local/lib/python3.8/site-packages/megaverse_rl/megaverse_utils.py", line 4, in <module>
    from megaverse.megaverse_env import MegaverseEnv, make_env_multitask
  File "/home/user/.local/lib/python3.8/site-packages/megaverse/megaverse_env.py", line 8, in <module>
    from megaverse.extension.megaverse import MegaverseGym, set_megaverse_log_level
ImportError: libMagnumBulletIntegration.so.2: cannot open shared object file: No such file or directory

I appreciate any help!

alex-petrenko commented 3 years ago

Hi @LinxiFan! Thank you for reporting this! Did you install from a python package or built the code yourself?

We're looking into this!

@BoyuanLong FYI

alex-petrenko commented 3 years ago

I found one machine where I have the exact same problem, after installing from a prebuilt package. It helped to just install from sources, or build a package myself. Can you please try the installation instruction from readme to see if it works for now?

If you want to build your own .whl file, in the last step of the instruction just run python setup.py bdist_wheel instead of pip install -e .

DrJimFan commented 3 years ago

Thank you so much for your timely reply! I got the above libMagnum error when I installed from prebuilt package. Following your advice, I'm trying to build from source, but got another error:

CMake Error at /usr/lib/cmake/glm/glmConfig-version.cmake:4 (if):
  if given arguments:

    "0.9.9" "VERSION_LESS"

  Unknown arguments specified
Call Stack (most recent call first):
  3rdparty/v4r/CMakeLists.txt:52 (find_package)

CMake Warning at 3rdparty/v4r/CMakeLists.txt:52 (find_package):
  Could not find a configuration file for package "glm" that is compatible
  with requested version "0.9.9".

  The following configuration files were considered but not accepted:

    /usr/lib/cmake/glm/glmConfig.cmake, version: 0.9.9
    /lib/cmake/glm/glmConfig.cmake, version: unknown
alex-petrenko commented 3 years ago

@LinxiFan can you please send your version of OS (i.e. Ubunbu release) and version of GLM? (dpkg -l | grep glm on Ubuntu for GLM version).

Also, can you just try to remove the version string on line 52 in megaverse/src/3rdparty/v4r/CMakeLists.txt? Such as: find_package(glm CONFIG)

@shacklettbp FYI Is there a reason v4r requires a specific version of GLM? Also, you said a newer version of v4r bundles with libs such as GLM, am I right?

xbz-24 commented 5 months ago

is there any fix for thsi, I am getting same bullshit