{"action":"opened","issue":{"url":"https://api.github.com/repos/common-workflow-language/cwltool/issues/499","repository_url":"https://api.github.com/repos/common-workflow-language/cwltool","labels_url":"https://api.github.com/repos/common-workflow-language/cwltool/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/common-workflow-language/cwltool/issues/499/comments","events_url":"https://api.github.com/repos/common-workflow-language/cwltool/issues/499/events","html_url":"https://github.com/common-workflow-language/cwltool/issues/499","id":245989863,"number":499,"title":"Windows cwltool crashes when /tmp does not exist","user":{"login":"bpmweel","id":16776108,"avatar_url":"https://avatars2.githubusercontent.com/u/16776108?v=4","gravatar_id":"","url":"https://api.github.com/users/bpmweel","html_url":"https://github.com/bpmweel","followers_url":"https://api.github.com/users/bpmweel/followers","following_url":"https://api.github.com/users/bpmweel/following{/other_user}","gists_url":"https://api.github.com/users/bpmweel/gists{/gist_id}","starred_url":"https://api.github.com/users/bpmweel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpmweel/subscriptions","organizations_url":"https://api.github.com/users/bpmweel/orgs","repos_url":"https://api.github.com/users/bpmweel/repos","events_url":"https://api.github.com/users/bpmweel/events{/privacy}","received_events_url":"https://api.github.com/users/bpmweel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-27T10:05:11Z","updated_at":"2017-07-27T10:05:11Z","closed_at":null,"body":"I just installed cwltool under windows using the cwltooldoc.md installation procedure. After installation I got the error trace below.\r\n\r\nAfter creating the /tmp directory the error went away.\r\n\r\nPerhaps this can be added to the installation documentation or the tmpdir can be created or set to a different directory based on environment variables.\r\n\r\n```\r\nPS C:\\> cwltool\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files (x86)\\Python\\Python3.6\\Scripts\\cwltool-script.py\", line 11, in <module>\r\n    load_entry_point('cwltool==1.0.20170723124118', 'console_scripts', 'cwltool')()\r\n  File \"c:\\program files (x86)\\python\\python3.6\\lib\\site-packages\\pkg_resources\\__init__.py\", line 565, in load_entry_point\r\n    return get_distribution(dist).load_entry_point(group, name)\r\n  File \"c:\\program files (x86)\\python\\python3.6\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2631, in load_entry_point\r\n    return ep.load()\r\n  File \"c:\\program files (x86)\\python\\python3.6\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2291, in load\r\n    return self.resolve()\r\n  File \"c:\\program files (x86)\\python\\python3.6\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2297, in resolve\r\n    module = __import__(self.module_name, fromlist=['__name__'], level=0)\r\n  File \"c:\\program files (x86)\\python\\python3.6\\lib\\site-packages\\cwltool\\main.py\", line 22, in <module>\r\n    import schema_salad.validate as validate\r\n  File \"<frozen importlib._bootstrap>\", line 961, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 950, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 646, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 616, in _load_backward_compatible\r\n  File \"c:\\program files (x86)\\python\\python3.6\\lib\\site-packages\\past\\translation\\__init__.py\", line 341, in load_module\r\n    mod = imp.load_module(fullname, *self.found)\r\n  File \"c:\\program files (x86)\\python\\python3.6\\lib\\imp.py\", line 234, in load_module\r\n    return load_source(name, filename, file)\r\n  File \"c:\\program files (x86)\\python\\python3.6\\lib\\imp.py\", line 172, in load_source\r\n    module = _load(spec)\r\n  File \"c:\\program files (x86)\\python\\python3.6\\lib\\site-packages\\schema_salad\\validate.py\", line 3, in <module>\r\n    import avro.schema\r\n  File \"<frozen importlib._bootstrap>\", line 961, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 950, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 646, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 616, in _load_backward_compatible\r\n  File \"c:\\program files (x86)\\python\\python3.6\\lib\\site-packages\\past\\translation\\__init__.py\", line 396, in load_module\r\n    if detect_python2(source, self.pathname):\r\n  File \"c:\\program files (x86)\\python\\python3.6\\lib\\site-packages\\past\\translation\\__init__.py\", line 222, in detect_python2\r\n    with open('/tmp/original_code.py', 'w') as f:\r\nFileNotFoundError: [Errno 2] No such file or directory: '/tmp/original_code.py'\r\n```"}}
{"actor":{"display_login":"bpmweel"}}