Skip to content

Commit cb56429

Browse files
committed
adding solution for fatal error due to systemroot env variable missing
1 parent 7185d42 commit cb56429

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

windowsdoc.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ on your local machine, you should be able to write to that folder inside Docker
118118
Container also (provided same user initiated Docker). In all it is a file
119119
permission issue.
120120

121-
### Workflows with Javascript Expressions occasionally give Timeout errors
121+
### Workflows with Javascript Expressions occasionally give Timeout errors
122+
122123
To evaluate Javascript Expressions, cwltool looks for Nodejs on your system.
123124
In case Nodejs isn't installed, JS expressions are executed in a Docker Container.
124125
In order to avoid waiting forever in case error occurs, cwltool times out js
@@ -127,6 +128,15 @@ provide a custom timeout period using `--eval-timeout` argument. So if you face
127128
this error, the best option is to install Nodejs on your local system. If you
128129
can't then use the `--eval-timeout` argument and set a higher timeout value.
129130

131+
### Fatal error occurs when executing a python command Line instruction as a job on python version 3.
132+
133+
If your workflow creates a python command line instruction (like we do in this
134+
[unit test](https://github.com/common-workflow-language/cwltool/blob/master/tests/test_examples.py#L117) ) and you get a error `Fatal Python error: Failed to initialize Windows
135+
random API (CryptoGen)` then try setting `SYSTEMROOT` environment variable to
136+
windows directory location (usually at `C:\\WINDOWS`). The reason behind this error
137+
is that when a python instance is created from current instance, it needs `SYSTEMROOT`
138+
env variable to starts its random generator on Windows OS.
139+
130140
*If you still have problems with setting up and using Docker on Windows, please
131141
consult the online Docker Community. If the problem is specific to cwltool,
132142
create an [issue on cwltool](https://github.com/common-workflow-language/cwltool/issues).*

0 commit comments

Comments
 (0)