Skip to content
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

Successfully compiled sofa with SofaPython3, but cannot import existing plugins when run on python #466

Open
thundermms opened this issue Oct 15, 2024 · 0 comments

Comments

@thundermms
Copy link

I am facing a similar issue, I do not understand what is the answer here. Can someone please explain. I am using an ubuntu 22.04 with Sofa v23.06 and sofapython3 in-tree installation. my bashrc has these lines

export PATH="/usr/local/bin:$PATH"
export PATH=/home/sun/sofa/build/bin:/home/sun/.local/bin:/usr/bin/python3:$PATH
export PYTHONPATH=/home/sun/sofa/build/applications/plugins/SofaPython3:$PYTHONPATH
export SOFA_ROOT=/home/sun/sofa/build:$SOFA_ROOT

When I run a python on terminal I get this error
Screenshot from 2024-10-15 12-06-17

but when I just run
./sofa/build/bin/runSofa ../../Documents/Tumor_under_skin_research/Simulation/Vein_dVRK_SOFA_simulation-Lab_Training/Simulation_scene_development/Simulation_v6_RSSFF_DAL.py

I am able to run it properly, but my issue is I need to run by python3.

I tried sourcing manually in the terminal export SOFA_ROOT=~/sofa/build and then running again but I get this error now
Screenshot from 2024-10-15 12-08-03

Please Kindly Help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant