These are chat archives for ipython/ipython

Nov 2015
Nov 16 2015 13:49
Hi, I’m having a dead kernel when I switch to python3 in my docker image (which is based on conda) this is the log I have in the shell:
have you any clue on what is missing ?
seems a python thing .. but not sure
or zmq
/home/main/anaconda/envs/python3/lib/python3.4/site-packages/zmq/backend/cython/ undefined symbol: zmq_msg_gets); 'IPython.kernel' is a package and cannot be directly executed
it works with python2
Kevyn-Alexandre Paré
Nov 16 2015 15:47
@minrk thx have seen your update on the bug: ipython/ipython#8987
Nov 16 2015 19:48
guys, do you have any clue about thios error:
Jonathan Frederic
Nov 16 2015 19:55
@epifanio I don't, but you may want to see if @minrk's a2km tool can help debug it:
Nov 16 2015 19:55
seems there are multiple zmq installed .. but i can’t find them, looking into a2km
main@5e190ccb4447:~$ ls anaconda/envs/python3/lib/python3.4/site-packages/ | grep mq                                               
then if I remove the files and reinstall .. i got:
main@5e190ccb4447:~$ rm -rf anaconda/envs/python3/lib/python3.4/site-packages/pyzmq-14.7.0-py3.4.egg-info anaconda/envs/python3/lib
main@5e190ccb4447:~$ which pip                                                                                                     
main@5e190ccb4447:~$ /home/main/anaconda/                                                                                          
bin/        envs/       Examples/   include/    lib/        pkgs/       share/      tests/                                         
conda-meta/ etc/        imports/    .index/     mkspecs/    plugins/    ssl/        var/                                           
main@5e190ccb4447:~$ /home/main/anaconda/envs/python3/bin/pip install pyzmq                                                        
Collecting pyzmq                                                                                                                   
  Using cached pyzmq-15.0.0.tar.gz                                                                                                 
Building wheels for collected packages: pyzmq                                                                                      
  Running bdist_wheel for pyzmq                                                                                           
  Stored in directory: /home/main/.cache/pip/wheels/3a/7a/27/93f017cb86670a08e6114a95c05885bb4dda1f81830ff4306c                    
Successfully built pyzmq                                                                                                           
Installing collected packages: pyzmq                                                                                               
Successfully installed pyzmq-15.0.0
Nov 16 2015 20:03
which is a different version … and now it just try to restart and fail:
[W 20:03:05.754 NotebookApp] Notebook notebooks/Access to Geospatial data/GDAL-OGR Quickstart.ipynb is not trusted
[I 20:03:09.510 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel 0ab26e29-cc9d-4791-8831-ac6cc432ab4d restarted
[I 20:03:12.521 NotebookApp] KernelRestarter: restarting kernel (2/5)
WARNING:root:kernel 0ab26e29-cc9d-4791-8831-ac6cc432ab4d restarted
Nov 16 2015 21:31
is it possible o have a “specific start-up import” for a specific kernel ?
I need to modify the os environment only for a particular kernel (system python2) with an import like:
import os
.. my system python is not happy if the anaconda libs are in the path ...
so i need to remove them, but just for this kernel
this seems to be the source of my problems