file not exist/not have permission problem

New project for OpenCap, which is a new software package to estimate 3D human movement dynamics from smartphone videos. OpenCap strongly relies on OpenSim.
POST REPLY
User avatar
Paul Delthil
Posts: 3
Joined: Thu May 23, 2024 5:43 pm

file not exist/not have permission problem

Post by Paul Delthil » Thu May 23, 2024 6:36 pm

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!

User avatar
Antoine Falisse
Posts: 421
Joined: Wed Jan 07, 2015 2:21 am

Re: file not exist/not have permission problem

Post by Antoine Falisse » Fri May 24, 2024 8:44 am

Hi, are you working with your own data? Or someone else's data? If the latter, they should make the session public first.
Antoine

User avatar
Paul Delthil
Posts: 3
Joined: Thu May 23, 2024 5:43 pm

Re: file not exist/not have permission problem

Post by Paul Delthil » Fri May 24, 2024 10:05 am

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?

User avatar
Antoine Falisse
Posts: 421
Joined: Wed Jan 07, 2015 2:21 am

Re: file not exist/not have permission problem

Post by Antoine Falisse » Fri May 24, 2024 1:49 pm

can you please share the full error message?

User avatar
Paul Delthil
Posts: 3
Joined: Thu May 23, 2024 5:43 pm

Re: file not exist/not have permission problem

Post by Paul Delthil » Fri May 24, 2024 2:50 pm

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!

User avatar
Antoine Falisse
Posts: 421
Joined: Wed Jan 07, 2015 2:21 am

Re: file not exist/not have permission problem

Post by Antoine Falisse » Tue May 28, 2024 9:56 am

yes, this is a bug. Please implement the manual fixes here: https://github.com/stanfordnmbl/opencap ... issues/113
best, antoine

POST REPLY