Comments (4)
Ok, I found two things that had to be done in order to get my venv to work.
First I had to change the ./build_tools/easy_install_deps_ubuntu.sh
file to account for my setup :
I have to add the following line to activate the environment within the bash file : source venv/bin/activate
And change every sudo -u $(id -nu "$SUDO_UID") python3 -m pip...
to sudo -u $(id -nu "$SUDO_UID") env "PATH=$PATH" python3 -m pip...
in order to keep the right PATH for the sudo user.
Finally, I had to export a new field in PYTHONPATH
. Namely : export PYTHONPATH=/opt/openrobots/lib/python3.8/site-packages:$PYTHONPATH
With those changes, I can effectively use jiminy_py from the python of my venv !!!
from jiminy.
Actually the easy-install is not very well suited for virtual env, since it is used to install system-wide dependencies, which are supposed to work with the native environment of the system. In this particular setupi would rather recommend to build dependencies from source to avoid any mistake, unless we can really find a way to support both native and virtual env in easy-install script out-of-the-box.
from jiminy.
activate the environment within the bash file
Is this really necessary ? Outside is not enough ?
from jiminy.
PR #383 fixing support of venv completely ongoing.
from jiminy.
Related Issues (20)
- [core] Add smooth random ground profile generation HOT 1
- [core] Get rid of confusing `system` hierarchy HOT 1
- Failures in engine while trying to run Environment HOT 10
- [misc] Bad docstring formatting for Boost::Python bindings. HOT 3
- [python] Get rid of `use_theoretical_model` HOT 2
- [python/robot] Add option to specify a list of extension modules where to look for motors and sensors.
- [core] Improve performance of hpp-fcl collision detection using functors
- [jiminy/log] More effective way to restore model. HOT 4
- [core] Speed-up simulation by avoid unecessary computations HOT 1
- Feature Request: migrate from gym to gymnasium HOT 5
- [core] Add support of state aggregation and transmission constraints
- [core] Remove all `...All()` methods from sensors and motors
- [core] Add notion of algebra to sensor.
- [viewer] Add Open3d backend HOT 2
- [core] Add hybrid contact model
- [core] Add multi-frames constraint
- [core] Only update acceleration-level quantities when dynamics has changed HOT 1
- [python] Stop bundling pinocchio, hppfcl, eigenpy in wheels. HOT 1
- [core] The inertia should always be positive HOT 1
- [core] Monitor number of successive failure and return an exception if too large. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jiminy.