GazzolaLab / Elastica-RL-control

Code for the cases presented in the paper "Elastica: A compliant mechanics environment for soft robotic control"
MIT License
26 stars 9 forks source link

Case 2 Running problem for a python begginer #10

Open Elektron97 opened 2 years ago

Elektron97 commented 2 years ago

Hi PyElastica, thank you in advance for the time that you spent for the issues. I’m a Python beginner, so probabily I'm missing something. I download PyElastica with pip install pyelastica and this repository with git clone. Then, I type in my terminal:

~/Elastica-RL-control/Case2$ python3 set_environment.py

and I obtain this error message:

File "set_environment.py", line 15, in <module>
    from MuscleTorquesWithBspline.BsplineMuscleTorques import (
  File "/home/daniele/elastica_ws/Elastica-RL-control/Case2/MuscleTorquesWithBspline/BsplineMuscleTorques/__init__.py", line 3, in <module>
    from MuscleTorquesWithBspline.BsplineMuscleTorques.muscle_torques_with_bspline import (
ModuleNotFoundError: No module named 'MuscleTorquesWithBspline.BsplineMuscleTorques.muscle_torques_with_bspline'

Honestly, I don’t understand why import doesn’t work, so probably I’m missing something about building this project. Could you help me? Thank you in advance

armantekinalp commented 2 years ago

Hello @Elektron97

Could you try doing the following

  1. First create a virtual environment (you can use conda).
  2. Git clone this repo.
  3. Go inside the cloned folder and to pip install -r requirements.txt