简体   繁体   English

pythonw.exe中发生未处理的Win32异常[11744]

[英]An unhandled win32 exception occurred in pythonw.exe [11744]

I am having a curious crash. 我有一个奇怪的崩溃。 I am using spyder 3.3.1 on Windows 7. When running the following line: 我在Windows 7上使用spyder 3.3.1。运行以下行时:

df[cols]=df[cols].fillna(df.median())

Python crashes. Python崩溃。 I can choose to close the program or debug it. 我可以选择关闭程序或对其进行调试。 Choosing debug, the following appears: 选择调试,将显示以下内容:

崩溃

Spyder doesn't shut down but the kernel restarts (multiple times): Spyder不会关闭,但内核会重新启动(多次):

死了

Problem details: 问题详细信息:

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: pythonw.exe
  Application Version:  3.7.150.1013
  Application Timestamp:    5b34dd6b
  Fault Module Name:    python37.dll
  Fault Module Version: 3.7.150.1013
  Fault Module Timestamp:   5b34dd15
  Exception Code:   c0000005
  Exception Offset: 000000000002a0c1
  OS Version:   6.1.7601.2.1.0.256.4
  Locale ID:    1030
  Additional Information 1: 923d
  Additional Information 2: 923de469bf7c9269a2f86708f66ec13b
  Additional Information 3: 823b
  Additional Information 4: 823b0533d10c72b7b59580188cafa7c2

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\WINDOWS\system32\en-US\erofflps.txt

Any idea what could the cause be? 知道原因可能是什么? How should I proceed to debug the problem? 我应该如何继续调试问题?

I solved it. 我解决了

Modifying the line: 修改行:

df[cols]=df[cols].fillna(df.median())

to: 至:

df[cols]=df[cols].fillna(df[cols].median())

Fixed the crash. 修复了崩溃。

I then also managed to force an update to the latest available version of anaconda and tested that after the update the original code was working again. 然后,我还设法将其更新为最新版本的anaconda,并测试了更新后原始代码是否又能正常工作。 So whatever bug was causing the crash it has probably been already fixed. 因此,无论导致崩溃的错误是什么,它都可能已经得到修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM