Page 1 of 1

Open Model Error

Posted: Tue Jul 05, 2022 7:21 am
by boringsuchus
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.
:)

Re: Open Model Error

Posted: Tue Jul 05, 2022 8:10 am
by aymanh
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

Re: Open Model Error

Posted: Tue Jul 05, 2022 1:56 pm
by boringsuchus
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