-
Notifications
You must be signed in to change notification settings - Fork 26
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
ImportError: libGymFactory.so: cannot open shared object file: No such file or directory #118
Comments
Hi @PierreExeter,
Long explanation: On the other hand, Anaconda is a complete environment that ships its own version of several packages that apt-get install as well, including its own version of the Python interpreter. Mixing system packages and anaconda packages is not a good idea in general, as you do not know if they are compatible with one another (as you could have the same library in both the system and anaconda, but at two different versions). For more on this, see https://www.anaconda.com/using-pip-in-a-conda-environment/ . If anyone wants to use To streamline this process and have a |
Hi @traversaro, Thanks for your answer and for helping maintaining this code.
Anyway, I will look for another solution to create my custom Gym environment with the Gazebo engine. Thanks again for your help. |
Why are you running |
I need to run I also tried to set the Cmake project in a directory with full permission
But I get the following error: Yes I believe that
|
The CMake configuration does not copy anything in Inspecting your log, it seems that the CMake failure in that case is due to this:
This could be a regression in some of the system dependencies, the CI apparently does not have periodic tests running (cc @diegoferigo), so it is possible that we missed that, I opened #119 to see if we can reproduce the error. |
I can't reproduce the error, and my urdfdom is installed from the system, see:
What is the output of |
This is my output of
The only difference is |
Can you share the |
I also did a fresh install (i.e. deleted the virtualenv, deleted the cloned github directory and followed the steps on the README from the beginning). The same error occurs when running
|
I tried on another machine and I was able to build without error so the problem comes from my laptop. |
Thanks @traversaro for taking care of this issue. I am currently AFK, will be back next week and I will have a deeper look to the problem. In the meantime I want to point out that downstream users like @PierreExeter are not required to install the project in developer mode to create environments. From the point of view of this project, developer means someone that wants to improve gym-ignition. Users of this project, instead, are all those that want to create environments with it. Probably we should make this even more clear in the documentation. |
Beside what @diegoferigo correctly pointed out on the possibility of creating enviroments also with the pip-installed version of
I guess that you have some sort of |
@traversaro you were right, I had this line in my
Once removed, I was able to create a new build. Sorry for all the hassle.
Ok I didn't realise this was possible in "User mode". Is there a documentation or some instructions available to create custom Gym environments? From what I understand, Gym environments are registered in:
Is there any documentation on the |
We are in the process of releasing the first stable release, you can expect it in the next weeks (see #87). We will provide also tutorial on how to create environments in an external project that imports gym-ignition, adding your own environments inside this repository is discouraged. For creating custom and standalone environments, you can refer to the official documentation. The only difference is you have to structure your files in a similar way as the provided cartpole environment (defining a task and a robot object). For more details refer to:
Then, if you want to understand under the hood what's happening, you can also check the following classes (you don't need to edit them): Finally, if you still didn't read the project's paper, you can find it on ArXiv. |
Closing since the original problem has been solved. |
Hello,
I installed gym-ignition in developer mode, following the instructions on the README. There wasn't any error during the compilation. However when I try to run the example given with :
the libGymFactory.so seems to be missing.
This is the error I get:
How can I solve this?
My system:
Ubuntu 18.04 bionic
Python 3.6
cmake version 3.16.2
Note: I used Anaconda instead of virtualenv to create the virtual environment as indicated in the instructions but I don't think this is what's causing the issue.
Thanks
The text was updated successfully, but these errors were encountered: