Skip to content

scipy.stats installs FORTRAN Control-C handler #905

Open
@mabl

Description

@mabl

Assume you do a simple code like this\

import time
import scipy.stats

while True:
    time.sleep(0.1)

At least under Windows, you will be greated by

forrtl: error (200): program aborting due to control-C event
Image              PC                Routine            Line        Source             
libifcoremd.dll    000007FEE0864314  Unknown               Unknown  Unknown
kernel32.dll       0000000077424C53  Unknown               Unknown  Unknown
kernel32.dll       00000000773E59BD  Unknown               Unknown  Unknown
ntdll.dll          000000007761A2E1  Unknown               Unknown  Unknown

I have had this bug since quite some time, both with Python 2&3. This is critical for me, since this exception is uncachable and hence will not shut down my experiment into a save state.

This bug has been reported multiple times already on other bug trackers:

  1. Ctrl-C crashes Python after importing scipy.stats (Trac #1867) scipy/scipy#2386
  2. http://stackoverflow.com/questions/15457786/ctrl-c-crashes-python-after-importing-scipy-stats
  3. BUG: Importing scipy.linalg causes Ctrl+C to kill CPython 3.3.3 scipy/scipy#3246
  4. https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/518251
  5. Fix KeyboardInterrupt Behavior on Windows scipy/scipy#3880

I do think it is a packaging issue, since it is specific to the intel library.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions