Page 1 of 1

file not exist/not have permission problem

Posted: Thu May 23, 2024 6:36 pm
by paul2401
Hello everyone.

I have a problem when I run the file "example_kinetics.py", either on spyder or anaconda prompt. Each time, the following error message appears "Cannot open file [document path "LaiUhlrich2022.osim"]. It may not exist or you do not have permission to read it". I'm sure it's silly, but I haven't been able to work out what's causing the problem for a while, even searching the internet.

Thanks in advance for your help!

Re: file not exist/not have permission problem

Posted: Fri May 24, 2024 8:44 am
by antoinefalisse
Hi, are you working with your own data? Or someone else's data? If the latter, they should make the session public first.
Antoine

Re: file not exist/not have permission problem

Posted: Fri May 24, 2024 10:05 am
by paul2401
Thank you for your reply. It was with my own data. I moved my files and that solved the problem.

However, I have a new error message saying that the "foo.py" file does not exist in the bin folder, which is the case (I do have the bin folder, but no "foo.py" file inside). I downloaded the "windows.zip" file on my side and I can't find it in the bin folder either. Where can I find this file ("foo.py") so that I can put it in the bin folder?

Re: file not exist/not have permission problem

Posted: Fri May 24, 2024 1:49 pm
by antoinefalisse
can you please share the full error message?

Re: file not exist/not have permission problem

Posted: Fri May 24, 2024 2:50 pm
by paul2401
Of course.


File ~\anaconda3\envs\opencap-processing\lib\shutil.py:434 in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)

File ~\anaconda3\envs\opencap-processing\lib\shutil.py:254 in copyfile
with open(src, 'rb') as fsrc:

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\pauld\\OneDrive\\Documents\\opencap-processing\\UtilsDynamicSimulations\\OpenSimAD\\opensimAD-install\\windows\\bin\\foo.py'


-- Building for: NMake Makefiles
-- Configuring incomplete, errors occurred!

Re: file not exist/not have permission problem

Posted: Tue May 28, 2024 9:56 am
by antoinefalisse
yes, this is a bug. Please implement the manual fixes here: https://github.com/stanfordnmbl/opencap ... issues/113
best, antoine