Coder Social home page Coder Social logo

Comments (4)

o-Oscar avatar o-Oscar commented on September 23, 2024

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.

duburcqa avatar duburcqa commented on September 23, 2024

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.

duburcqa avatar duburcqa commented on September 23, 2024

activate the environment within the bash file

Is this really necessary ? Outside is not enough ?

from jiminy.

duburcqa avatar duburcqa commented on September 23, 2024

PR #383 fixing support of venv completely ongoing.

from jiminy.

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.