Open Model Error

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Beatriz Hörmanseder
Posts: 2
Joined: Fri Jun 05, 2020 9:17 am

Open Model Error

Post by Beatriz Hörmanseder » Tue Jul 05, 2022 7:21 am

Hello,
I'm having the following error when trying to open any model:

It may not exist or you do not have permission to read it.
Thrown at Object.cpp:105 in Object().

I've already tried to reinstall the program and I've tested it on version 4.2, but the error remains.

Thanks in advance for the support.
:)

Tags:

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: Open Model Error

Post by Ayman Habib » Tue Jul 05, 2022 8:10 am

Hello,

The error line you reported refers to file opening while trying to read a model file. The likely problem is that the file path for the model has non US ascii characters. If you copy the folder "${USER}\Documents\OpenSim\4.2\Models" to a different folder (e.g. "C:/OpenSimFiles/Models") and retry that should take care of the problem. That should hold for all versions of OpenSim.

Instead of copying the folder by hand you can type "installResources()" at the scripting shell and select a folder that has only US ascii characters "e.g. C:/OpenSimFiles/" to place the code and models and proceed from there.

Please let us know how that goes,
-Ayman

User avatar
Beatriz Hörmanseder
Posts: 2
Joined: Fri Jun 05, 2020 9:17 am

Re: Open Model Error

Post by Beatriz Hörmanseder » Tue Jul 05, 2022 1:56 pm

Thank you very much for the support, as soon as I changed the directory folder I was able to open the model.

Best Regards,
:D

POST REPLY