Getting IdleX AttributeError

Running Python 2.7.3 on Ubuntu 12.04 with the latest versions of IPython. I installed IdleX, but as soon as I started it, I get an error message:

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/idlexlib/extensionManager.py", line 131, in load_extension mod = importlib.import_module('.' + fullname, package=__package__) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/local/lib/python2.7/dist-packages/idlexlib/extensions/IPyIDLE.py", line 253, in <module> class IdleXSubSocketChannel(SimpleChannel, channels.IOPubChannel): AttributeError: 'module' object has no attribute 'IOPubChannel' could not load IPyIDLE 

At first I thought I could ignore it, because everything seemed to work fine, but then I tried several scripts that caused errors in IdleX, but not in normal idle time. In particular, from selenium import webdriver worked fine in normal mode, but not in IdleX. I can’t understand what I’m doing wrong and what to do with it ...

+5
source share
2 answers

After a soft search, I found out that the problem was caused by the latest version of IPython, which removed the required "channels" package.

You need to uninstall your IPython version first. This is easy to do by running the command:

 $ pip uninstall ipython 

After you accept and delete, you will need to install an older, specific version of IPython. I used 2.4 and it worked like a charm.

 $ pip install -Iv ipython==2.4.0 

There are probably ways to get around uninstalling and reinstalling, but this did it for me. No problem with IdleX.

+1
source

I had the same issue with Python 3.4.3 on Mac OS X and 10.10.5. I also tried iPython3.0 and iPython3.1, but only with 2.4 everything worked. Small correction: you need to enter (2x ==) $ pip install -Iv ipython==2.4.0

Thank you for this decision.

0
source

Source: https://habr.com/ru/post/1213143/


All Articles