Jupyter notebook python crash on Windows 10

2020-05-27 08:09发布

I have spent a week searching and trying different solutions with no luck. I've seen several others having the same problems going back over a year.

The issue:

Windows 10 Pro build 15063.674

I'm using the latest Anaconda 5 build with Python 3.6.2 and all the packages are updated to most recent.

Running Jupyter Notebook, after some time, python will crash with a dialog "python has stopped working". This seems to happen after the notebook has been open for awhile, but I haven't been able to pinpoint an exact time. It's longer than 15 minutes but I've had it crash after a couple hours too.

The crash happens whether or not the notebook is in use, but most of the time, it's been while it's idle.

The console contains several lines like this:

Assertion failed: Connection reset by peer (bundled\zeromq\src\signaler.cpp:298)

I had been using everything with no issues, on a daily basis for months prior to this. I honestly have no idea what could have changed other than Windows Automatic updates.

What I've tried:

  • updating anaconda
  • updating all packages
  • updating python
  • full clean removal then reinstall of anaconda, python, and all packages
  • updating everything again
  • removing pyzmq and Jupyter then reinstalling
  • disabling Windows Defender
  • attempted to revert pyzmq on a long shot to 13.1.0 but the build failed
  • I've also tried using both conda and pip for installing/removing

Threads I've read:

Any suggestions on fixing this?

2条回答
贼婆χ
2楼-- · 2020-05-27 08:14

The solution was to uninstall a program called Networx.

I don't understand the error myself but the person I got the solution from linked this post: https://github.com/Microsoft/WSL/issues/1554#issuecomment-339743927

查看更多
闹够了就滚
3楼-- · 2020-05-27 08:38

From the first issue thread you linked, it looks like this issue is with ZeroMQ, with little hope for resolution. One poster (UniversalAE) in that thread seemed to have success with replacing ZeroMQ with RabbitMQ. Absent an update to ZeroMQ that resolves this, or any specific requirement for ZeroMQ, I would advise doing the same, i.e. swap out ZeroMQ for RabbitMQ.

查看更多
登录 后发表回答