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
cwltool should run when more than one person on a host have used it.
Actual Behavior
Instead of running it crashes with
[jmichael(BASH)@c-head001]: cwltool
Traceback (most recent call last):
File "/hpcf/apps/python/install/3.5.2a/bin/cwltool", line 7, in <module>
from cwltool.main import main
File "/hpcf/apps/python/install/3.5.2a/lib/python3.5/site-packages/cwltool/main.py", line 18, in <module>
import schema_salad.validate as validate
File "/hpcf/apps/python/install/3.5.2a/lib/python3.5/site-packages/schema_salad/__init__.py", line 38, in <module>
import avro
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
File "/hpcf/apps/python/install/3.5.2a/lib/python3.5/site-packages/past/translation/__init__.py", line 396, in load_module
if detect_python2(source, self.pathname):
File "/hpcf/apps/python/install/3.5.2a/lib/python3.5/site-packages/past/translation/__init__.py", line 222, in detect_python2
with open('/tmp/original_code.py', 'w') as f:
PermissionError: [Errno 13] Permission denied: '/tmp/original_code.py'
[jmichael(BASH)@c-head001]:
Workflow Code
N/A. Not even a help message shows.
Full Traceback
[jmichael(BASH)@c-head001]: cwltool
Traceback (most recent call last):
File "/hpcf/apps/python/install/3.5.2a/bin/cwltool", line 7, in <module>
from cwltool.main import main
File "/hpcf/apps/python/install/3.5.2a/lib/python3.5/site-packages/cwltool/main.py", line 18, in <module>
import schema_salad.validate as validate
File "/hpcf/apps/python/install/3.5.2a/lib/python3.5/site-packages/schema_salad/__init__.py", line 38, in <module>
import avro
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
File "/hpcf/apps/python/install/3.5.2a/lib/python3.5/site-packages/past/translation/__init__.py", line 396, in load_module
if detect_python2(source, self.pathname):
File "/hpcf/apps/python/install/3.5.2a/lib/python3.5/site-packages/past/translation/__init__.py", line 222, in detect_python2
with open('/tmp/original_code.py', 'w') as f:
PermissionError: [Errno 13] Permission denied: '/tmp/original_code.py'
[jmichael(BASH)@c-head001]:
Expected Behavior
cwltool should run when more than one person on a host have used it.
Actual Behavior
Instead of running it crashes with
Workflow Code
N/A. Not even a help message shows.
Full Traceback
Your Environment
version is unable to print.
Notes:
This is related to #499. The issue is in https://github.com/PythonCharmers/python-future/blob/master/src/past/translation/__init__.py where hardcoding of
/tmp/original_code.py
forces multiple users to attempt to overwrite the same file on multi-tenant servers.The text was updated successfully, but these errors were encountered: