[IPython-dev] ipython 1.0.0a1: ImportError: No module named IPython.kernel.zmq.kernelapp
Stephen Chan
sychan at lbl.gov
Thu Jul 25 13:39:53 EDT 2013
I came across a similar problem the other day when loading the 1.0dev
IPython and trying to run IPython.test().
If you clone the repo, cd into it and bring up python and then import
IPython, it will pickup the new IPython modules from your cwd (
IPython.__file__ pointed where I expected). But at least when I tried to
run IPython.test(), it no longer used my cwd as part of the module load
path and it defaulted to the IPython I had installed systemwide. If I
explicitly set an absolute path in PYTHONPATH, things would work.
This sounds like what is happening to Francis.
Steve
On Thu, Jul 25, 2013 at 10:26 AM, MinRK <benjaminrk at gmail.com> wrote:
> If that file doesn‘t exist, then you aren’t using IPython 1.0. You may
> have multiple IPython installs, and an old one showing up ahead on sys.path.
>
> For instance, where did the latest IPython install say it went? And if you
> just do:
>
> python -c "import IPython; print IPython"
>
> Does it point to the same place?
>
> -MinRK
>
>
> On Thu, Jul 25, 2013 at 7:43 AM, Francis Reyes <fereyes at lbl.gov> wrote:
>
>> Using (tag) 1.0.0a1, I cannot seem to get ipython to work correctly.
>> Granted I might have a special case (Python is from a ContinuumIO
>> installation in my home directory).
>>
>> The kernel crashes immediately when I enter text into any code cell.
>>
>> appending the ipython directory to $PYTHONPATH remedies the situation as
>> now the modules are all accessible to python.
>>
>>
>> ------ log ----
>>
>>
>> 07:37:55-francisreyes at kenya:$ which python
>> /Users/francisreyes/anaconda/bin/python
>> 07:38:13-francisreyes at kenya:$ python -m IPython notebook --profile=foo
>> 2013-07-25 07:38:19.695 [NotebookApp] Using existing profile dir:
>> u'/Users/francisreyes/.ipython/profile_foo'
>> 2013-07-25 07:38:19.794 [NotebookApp] Using MathJax from CDN:
>> http://cdn.mathjax.org/mathjax/latest/MathJax.js
>> 2013-07-25 07:38:19.809 [NotebookApp] Serving notebooks from local
>> directory: /Users/francisreyes/notebooks
>> 2013-07-25 07:38:19.809 [NotebookApp] The IPython Notebook is running at:
>> http://127.0.0.1:8888/
>> 2013-07-25 <http://127.0.0.1:8888/2013-07-25> 07:38:19.809 [NotebookApp]
>> Use Control-C to stop this server and shut down all kernels (twice to skip
>> confirmation).
>> dyld: DYLD_ environment variables being ignored because main executable
>> (/usr/bin/osascript) is code signed with entitlements
>> 2013-07-25 07:38:24.945 [NotebookApp] Connecting to: tcp://
>> 127.0.0.1:54245
>> 2013-07-25 07:38:24.947 [NotebookApp] Kernel started:
>> d39fb48f-03e2-47d0-892c-ffbbc2a43ab9
>> 2013-07-25 07:38:24.958 [NotebookApp] Connecting to: tcp://
>> 127.0.0.1:54242
>> 2013-07-25 07:38:24.958 [NotebookApp] Connecting to: tcp://
>> 127.0.0.1:54244
>> 2013-07-25 07:38:24.959 [NotebookApp] Connecting to: tcp://
>> 127.0.0.1:54243
>> Traceback (most recent call last):
>> File "<string>", line 1, in <module>
>> ImportError: No module named IPython.kernel.zmq.kernelapp
>> 2013-07-25 07:38:27.945 [NotebookApp] KernelRestarter: restarting kernel
>> (1/5)
>> WARNING:root:kernel d39fb48f-03e2-47d0-892c-ffbbc2a43ab9 restarted
>> Traceback (most recent call last):
>> File "<string>", line 1, in <module>
>> ImportError: No module named IPython.kernel.zmq.kernelapp
>>
>>
>> Francis Reyes
>> Advanced Light Source
>> 1 Cyclotron Road
>> Berkeley, CA 94720
>>
>>
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130725/15397ed4/attachment.html>
More information about the IPython-dev
mailing list