New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"run code in-line" button is failing with a python error #810

Closed
DavidHowlett opened this Issue Nov 5, 2015 · 6 comments

Comments

Projects
None yet
3 participants
@DavidHowlett

DavidHowlett commented Nov 5, 2015

I am using:
komodo 9.3
windows 7
python 3.4 (anaconda package)

My program is:
print("hello world")

When I run it in the debugger it works fine (see screenshot). When I select all the text and press the lightning button I get the below error message:
Fatal Python error: Failed to initialize Windows random API (CryptoGen)

FAIL: 3

Screenshot of error message:
https://www.dropbox.com/s/xujb3dwrlsd6irp/Screenshot%202015-11-05%2015.50.25.png?dl=0

@Naatan

This comment has been minimized.

Member

Naatan commented Nov 5, 2015

Hmm this working fine for me on Linux. Possibly this is Windows or Anacona specific. Most likely you need to be exposing an ENV var.

The real error of importance here is "Fatal Python error: Failed to initialize Windows random API (CryptoGen)".

This seems relevant: https://bugs.python.org/issue20614

Try setting SYSTEMROOT in Prefs > Environment. to find out what the value is supposed to be open a command prompt and execute echo %SYSTEMROOT%, the output is the value of SYSTEMROOT. Most likely this is C:\WINDOWS\.

@DavidHowlett

This comment has been minimized.

DavidHowlett commented Nov 5, 2015

when I type: echo %SYSTEMROOT%
I get: C:\Windows

When I look at the Environment variables
I get: C:\Windows

see screenshot:
https://www.dropbox.com/s/3k4g9orggmd64ii/Screenshot%202015-11-05%2016.12.13.png?dl=0

@Naatan

This comment has been minimized.

Member

Naatan commented Nov 5, 2015

Ok .. so did it work?

@DavidHowlett

This comment has been minimized.

DavidHowlett commented Nov 5, 2015

Ahh, I did not communicate well. I did not change %SYSTEMROOT% or the Environment variables. They started out the same. They are still the same.

I tried upgrading from from python 3.4 to 3.5
The error now looks like:

FAIL: 3221225781

The screenshot:
https://www.dropbox.com/s/a3shast2so9fslo/Screenshot%202015-11-05%2017.21.38.png?dl=0

If you want I will try switching away from anaconda python to the standard distribution and see if that fixes the issue.

@cgchoffman

This comment has been minimized.

Member

cgchoffman commented Nov 6, 2015

I'm able to reproduce this using ActivePython 3.4. I can have a look tomorrow.

@cgchoffman cgchoffman added this to the 9.3.1 milestone Nov 6, 2015

@Naatan

This comment has been minimized.

Member

Naatan commented Nov 6, 2015

Fixed on IDE branch. Should be in the next nightly.

@Naatan Naatan closed this Nov 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment