Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
-
Avery Moe
- Posts: 3
- Joined: Fri Jun 30, 2023 6:15 am
Post
by Avery Moe » Fri Jun 30, 2023 10:51 am
Hello all,
I am brand new to OpenSim Moco and unfamiliar with pip. I am trying to setup Anaconda using the "Scripting in Python" page of the OpenSim Documentation. At the moment, I'm stuck on the following step:
10. Install OpenSim by running
Code: Select all
(opensim_scripting) $ python -m pip install .
This is what the terminal gives me:
Code: Select all
Building wheels for collected packages: opensim
Building wheel for opensim (setup.py) ... error
error: subprocess-exited with error
python setup.py bdist_wheel did not run successfully.
exit code: 1
[5 lines of output]
running bdist_wheel
running build
running build_py
running egg_info
error: [Errno 13] Permission denied
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for opensim
Running setup.py clean for opensim
Failed to build opensim
Error: Could not build wheels for opensim, which is required to install pyproject.toml-based projects
So far, I've given the terminal permissions and tried a few other commands, but nothing seems to be working. Does anyone have any input on how to get around this specific problem?
Thank you for your time and the help.
Best,
Avery
Tags:
-
Avery Moe
- Posts: 3
- Joined: Fri Jun 30, 2023 6:15 am
Post
by Avery Moe » Wed Jul 05, 2023 8:52 am
Hello Ayman,
Thank you for your help! I was able to downgrade my Python version and use the one line command successfully. Is there anything else I should do?
Avery
-
Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Post
by Ayman Habib » Wed Jul 05, 2023 9:18 am
Hi Avery,
You should be all set, just keep in mind that we have two different conda packages opensim and opensim-moco, just make sure you pick the one that meets you need (since you mentioned you're new to Moco).
Best regards,
-Ayman
-
Avery Moe
- Posts: 3
- Joined: Fri Jun 30, 2023 6:15 am
Post
by Avery Moe » Tue Jul 11, 2023 7:33 am
Hello Ayman,
I have one more question. I used Homebrew to successfully downgrade the python version to 3.7.0, and when I type python -V, it works. The one-line installer worked for opensim, but not for opensim-moco. The error looks like this:
Code: Select all
Specifications:
- opensim-moco -> python[version='>=2.7,<2.8.0a0|>=3.8,<3.9.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0']
- opensim-moco -> python[version='>=3.7,<3.8.0a0']
Your python: python=3.10
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
Any tips on how to fix this?
Thank you so much.
Avery