You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am submitting an issue first referenced here. When trying to import one of the .slp prediction output files using sio.load_file, I'm getting a "permission denied" error.
I believe this is because the cluster I'm running SLEAP on is using a fakeroot container which mounts my home directory with all the necessary files under a directory within /root, which is inaccessible as a regular user outside of the container (i.e. on my own PC). It errors out here:
with a PermissionError. However, sleap-io should be able to load a labels file without being able to directly access its video or the video's parent directories. Below is the full output, which is lengthy, so I put it in a collapsible block:
Thanks for cross posting this @davorvr! This should now be fixed in v0.1.9. I tried my best to simulate the conditions indicated by your error, but let me know if you're still not getting it to work on your end.
By default, sleap-io will still try to load the files, but it now should gracefully fail on PermissionErrors and other ways that videos might not be accessible.
If that still doesn't work in your case, you can also now explicitly control this by doing something like:
Hello, I am submitting an issue first referenced here. When trying to import one of the
.slp
prediction output files usingsio.load_file
, I'm getting a "permission denied" error.I believe this is because the cluster I'm running SLEAP on is using a fakeroot container which mounts my home directory with all the necessary files under a directory within
/root
, which is inaccessible as a regular user outside of the container (i.e. on my own PC). It errors out here:sleap-io/sleap_io/io/video.py
Line 87 in 096eefd
with a
PermissionError
. However, sleap-io should be able to load a labels file without being able to directly access its video or the video's parent directories. Below is the full output, which is lengthy, so I put it in a collapsible block:Commands
Output (error)
The text was updated successfully, but these errors were encountered: