ipython2 does not work anymore

Cecil Westerhof Cecil at decebal.nl
Thu Jan 19 16:12:43 EST 2017


On Thursday 19 Jan 2017 21:08 CET, MRAB wrote:

> On 2017-01-19 15:06, Cecil Westerhof wrote:
>> I did not work with ipython2 for a long time. Most of my work is
>> done with python3. I just tried to start ipython2 and got:
>> Traceback (most recent call last): File "/usr/bin/ipython2", line
>> 7, in <module> from IPython import start_ipython File
>> "/usr/lib/python2.7/site-packages/IPython/__init__.py", line 49, in
>> <module> from .terminal.embed import embed File
>> "/usr/lib/python2.7/site-packages/IPython/terminal/embed.py", line
>> 16, in <module> from IPython.core.interactiveshell import DummyMod,
>> InteractiveShell File
>> "/usr/lib/python2.7/site-packages/IPython/core/interactiveshell.py",
>> line 31, in <module> from pickleshare import PickleShareDB File
>> "/usr/lib/python2.7/site-packages/pickleshare.py", line 40, in
>> <module> from path import path as Path ImportError: No module named
>> path
>>
>>
>> What could be the problem here?
>>
>>
>> Python2 does work: Python 2.7.12 (default, Jul 01 2016, 15:36:53)
>> [GCC] on linux2 Type "help", "copyright", "credits" or "license"
>> for more information.
>>>>>
>>
>> Otherwise I would have a problem. Some scripts still use it.
>>
>> I am working with openSUSE 13.2
>>
> There's no module called 'path' in Python 3. Do you mean 'pathlib'?

I copied this from the output I got.


> If you do mean 'pathlib', it was introduced in Python 3.4.

It is about python2.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof



More information about the Python-list mailing list