These are chat archives for ipython/ipython

16th
Nov 2015
epifanio
@epifanio
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:
https://gist.github.com/ae3232d199c2fd63f6bf
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/message.cpython-34m.so: undefined symbol: zmq_msg_gets); 'IPython.kernel' is a package and cannot be directly executed
it works with python2
Kevyn-Alexandre Paré
@kapare
Nov 16 2015 15:47
@minrk thx have seen your update on the bug: ipython/ipython#8987
epifanio
@epifanio
Nov 16 2015 19:48
guys, do you have any clue about thios error: https://gist.github.com/91ad9c51595db18045b2
Jonathan Frederic
@jdfreder
Nov 16 2015 19:55
@epifanio I don't, but you may want to see if @minrk's a2km tool can help debug it: https://github.com/minrk/a2km
epifanio
@epifanio
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                                               
pyzmq-14.7.0-py3.4.egg-info                                                                                                        
zmq
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
/python3.4/site-packages/zmq/                                                                                                      
main@5e190ccb4447:~$ which pip                                                                                                     
/home/main/anaconda/bin/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 setup.py 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
epifanio
@epifanio
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
epifanio
@epifanio
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
os.environ[‘PATH’]=’new:path’
.. 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