PermissionError for readGlobalFile()
See original GitHub issueWe are having this issue as of toil 5.2.0:
Traceback (most recent call last):
File "/home/shahr2/tools/system/miniconda/versions/4.6.14/envs/nucleo_test/lib/python3.6/site-packages/toil/cwl/cwltoil.py", line 615, in visit
deref = self.get_file(path) if self.get_file else ab
File "/home/shahr2/tools/system/miniconda/versions/4.6.14/envs/nucleo_test/lib/python3.6/site-packages/toil/cwl/cwltoil.py", line 756, in toil_get_file
src_path = file_store.readGlobalFile(FileID.unpack(file_store_id[7:]))
File "/home/shahr2/tools/system/miniconda/versions/4.6.14/envs/nucleo_test/lib/python3.6/site-packages/toil/fileStores/nonCachingFileStore.py", line 99, in readGlobalFile
os.chmod(localFilePath, os.stat(localFilePath).st_mode | stat.S_IXUSR)
PermissionError: [Errno 1] Operation not permitted: '/home/shahr2/bergerlab/test/nucleo_test/test_29Jan2020/toil_1/node-5bbdc7f7-e26f-4958-aff8-2986c4b0b199-2919ee05-ad3b-4b1c-a90e-1d35c9ebd4ab/tmpt5zanbkb/4f6b5fd2-537c-4aed-ac07-87cbb60d665a/tmpwwfjv6k7.tmp'
I believe it’s related to this change:
Would it be possible to get some info regarding whether this is an intended error, and perhaps we’re trying to import a file (using toil-cwl-runner) incorrectly? Or whether there is an issue with how execute permissions are set on imported files?
Let us know if I can provide any additional information, thank you kindly!
┆Issue is synchronized with this Jira Task ┆Issue Number: TOIL-786
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
PermissionError: [Errno 13] Permission denied - Stack Overflow
This happens if you are trying to open a file, but your path is a folder. This can happen easily by mistake. To...
Read more >Python PermissionError: [errno 13] permission denied Solution
If you try to open, read from, or write to a file over which Python has no permissions, you'll encounter the PermissionError: [errno...
Read more >PermissionError: [Errno 13] Permission denied error solved
The "PermissionError: [Errno 13] Permission denied error" occurs for multiple reasons: Trying to open a file, but the specified path is a folder....
Read more >PermissionError: [Errno 13] Permission denied: 'C:\\my\\path ...
Hello! I'd like some help resolving an error I get when running pyinstaller to package my project. I'm running pyinstaller in a miniconda3...
Read more >PermissionError: [Errno 13] Permission denied. How to make
Hi, so Im having an issue with some extension for a software I have in my Program files directory (Windows is keeping it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks so much for the quick response, I’m away at the moment but can take a look when I get back.
@ionox0 This looks like a straight forward fix, I’ll go ahead and make the changes.