Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPyConsole 1.2 doesnt open on Ubuntu 14.04 #5

Open
spaceof7 opened this issue Aug 21, 2015 · 3 comments
Open

IPyConsole 1.2 doesnt open on Ubuntu 14.04 #5

spaceof7 opened this issue Aug 21, 2015 · 3 comments

Comments

@spaceof7
Copy link

I have QGIS 2.8.3 installed from the LTR-nightly repository. IPyConsole used to work correctly but now I get an error message telling me the that the Ipython version needs to be 3.1 or greater. If I downgrade to the 1.1 plugin version then the console launches properly. I am using ipython/ipython-qtconsole installed from apt, which is version 1.2.1-2. If I try to install ipython via pip(ipython 4.0.1) then IPyConsole give me the error "cannot import name IPythonWidget".

@femtomatic
Copy link

Hi,
I have QGIS 2.10 installed from the AUR on Archlinux and have the same error. The error is actually on line 211 in IPyConsole.py, the import statement is wrong, there is no module named IPythonWidget in IPython.qt.console.rich_ipython_widget. The error message is misleading because the try statement is too long.
I changed line 211 in IPyConsole.py to:

from IPython.qt.console.rich_ipython_widget import RichIPythonWidget

and line 256 to:

class myWidget(RichIPythonWidget):

now everything works.

edit: I forgot to mention I have IPython v4.0.0 installed

Cheers!

@elpaso
Copy link
Owner

elpaso commented Oct 13, 2015

I've just released a new version which fixes another problem, can you please test it and if it doesn't work you can maybe add a conditional instruction to check for IPython version and apply your patches in a PR?

Thanks.

@jesswren
Copy link

I am still having this problem in QGIS 2.18.19, on Debian Sid. My ipython version is 5.5.0 and my python version is 2.7.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants