Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "protocol wrongtype for socket" in jupyter notebook

I have installed anaconda3 with python 3.x in windows 7 professional 64 bit processor. While opening new jupyter notebook in python 3 kernel. It shows error message as

"Assertion failed :protocol wrong type for socket [10041 ] c:\ci\zeromq_1549025594292\work\src\ip.cpp:417"

and python stopped running. Kindly help to fix the issue.

Regards, Geetha S

expect the new notebook to be opened for coding

like image 664
Geetha SJ Avatar asked Dec 29 '25 18:12

Geetha SJ


1 Answers

finally solved this one using 2 alternative methods:

  1. go torepo archive and download anaconda3 5.3.1 from Nov 2018 (This is the earliest version with python 3.7). This helped my issues, by matching up versions of python and jupyter etc. [as an aside, if you are using the archive to download older versions, the below link tells you the version of python running with that particular version of anaconda link]

  2. A work around is to download the latest version you can and create a new environment with either python 3.5 or 3.6 as explained above. To do this:

-in anaconda prompt type either:

"conda create -n py35 python=3.5 anaconda" or

"conda create -n py36 python=3.6 anaconda".

This takes a while but at the end you will be asked to type something like:

"conda activate py36" to activate the new environment.

to make sure it is activated type:

"conda info --envs".

In the environments list that displays, the active environment is highlighted with an asterisk (*). That should work, but just to be safe, go to anaconda navigator and then environments on the left hand side. left click on the "play button" and "open with jupyter notebook"

like image 191
Ruairi Avatar answered Jan 03 '26 01:01

Ruairi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!