Search found 10 matches

by Mazen Al Borno
Thu Nov 09, 2023 12:32 pm
Forum: OpenSim
Topic: OpenSim Mac M1
Replies: 1
Views: 195

Re: OpenSim Mac M1

I just tried this again on Mac. Just in case it helps someone else: It worked for me when I made sure that the python version that I used (3.11) was the same as the one that downloaded the files with conda.
by Mazen Al Borno
Sat Sep 16, 2023 7:56 am
Forum: OpenSim
Topic: OpenSim Mac M1
Replies: 1
Views: 195

OpenSim Mac M1

Hi all, Tried installing OpenSim on my M1 mac using the conda environment, Here are the exact steps I took: -Opened a terminal on x86_64. -sudo conda create -n opensimEnv python=3.9 -conda activate opensimEnv -sudo conda install -c opensim-org opensim After opening python and importing opensim, I ge...
by Mazen Al Borno
Wed Apr 12, 2023 3:29 pm
Forum: OpenSim
Topic: DLL load failed while importing _simbody: The specified module could not be found
Replies: 2
Views: 302

Re: DLL load failed while importing _simbody: The specified module could not be found

Just debugged this issue on a student's computer. Adding these lines worked in his case:

import os
os.add_dll_directory("C:/OpenSim 4.4/bin")
by Mazen Al Borno
Wed Apr 12, 2023 1:01 pm
Forum: OpenSim
Topic: OpenSim Python Scripting
Replies: 14
Views: 1628

Re: OpenSim Python Scripting

Thanks Mohammadreza and Jia. Just a question for the community: I have two students (one on Mac M1 and one on Windows) where they have successfully installed Opensim on their computers, but the Simbody GUI does not show up when running their code (after "model.setUseVisualizer(True)"). I remember se...
by Mazen Al Borno
Mon Mar 13, 2023 8:18 pm
Forum: OpenSim
Topic: OpenSim Python Scripting
Replies: 14
Views: 1628

Re: OpenSim Python Scripting

Thanks Carmichael. These exact lines you posted did not work with me ("No module name opensim" error). However, it is with osx 12.3. I was able to fix the problem with the student's computer by adding these lines: import sys osim_path = 'D:/Dokumente/Programme/OpenSim/opensim-core/sdk/Python' sys.pa...
by Mazen Al Borno
Sun Mar 12, 2023 10:41 pm
Forum: OpenSim
Topic: OpenSim Python Scripting
Replies: 14
Views: 1628

Re: OpenSim Python Scripting

Thanks a lot Ayman. I tried installing OpenSim on Mac (with Rosetta on an M1) with conda (conda install -c opensim-org opensim) on a student computer, however, when importing opensim in python, I got the error: "no module named opensim". If you have an idea on what could have caused this, please let...
by Mazen Al Borno
Thu Feb 16, 2023 9:32 pm
Forum: OpenSim
Topic: OpenSim Python Scripting
Replies: 14
Views: 1628

Re: OpenSim Python Scripting

Thanks so much Ayman, installing opensim worked. When trying to install opensim-moco (conda install -c opensim-org opensim-moco), I constantly get the same error, even when trying different python versions (3.7, 3.8, 3.10): UnsatisfiableError: The following specifications were found to be incompatib...
by Mazen Al Borno
Thu Feb 16, 2023 2:22 pm
Forum: OpenSim
Topic: OpenSim Python Scripting
Replies: 14
Views: 1628

Re: OpenSim Python Scripting

Thanks Ayman and Nathan. I had previously attempted to install with the instructions: https://simtk-confluence.stanford.edu:8443/display/OpenSim/Scripting+in+Python#ScriptinginPython-Mac I had tried on arm, but will try again with x86_64. I just saw these new instructions here: https://simtk-conflue...
by Mazen Al Borno
Tue Feb 14, 2023 11:22 am
Forum: OpenSim
Topic: OpenSim Python Scripting
Replies: 14
Views: 1628

Re: OpenSim Python Scripting

Thanks Ayman. If I just use conda/Anaconda instead of the libraries from the Application, I get the following error message: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mazen/opt/anaconda3/envs/opensim_scripting/lib/python3.8/site-packages/opensim/__init__.py"...
by Mazen Al Borno
Tue Feb 14, 2023 10:47 am
Forum: OpenSim
Topic: OpenSim Python Scripting
Replies: 14
Views: 1628

OpenSim Python Scripting

Hi Everyone, I'm trying to install OpenSim 4.4 with Python scripting with anaconda (instructions here: https://simtk-confluence.stanford.edu:8443/display/OpenSim/Scripting+in+Python). My python version is 3.8.16. When I do import opensim in python,. I get the following error: import opensim as osim ...