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

ipython with qtconsole crashes #655

Closed
andylei opened this issue Aug 1, 2011 · 8 comments
Closed

ipython with qtconsole crashes #655

andylei opened this issue Aug 1, 2011 · 8 comments

Comments

@andylei
Copy link

andylei commented Aug 1, 2011

Windows XP, Python 2.6, ipython 0.11

I just ran "ipython qtconsole". It immediately crashed. This is the post-mortem:

(Moved to gist: https://gist.github.com/1118274 )

@epatters
Copy link
Contributor

epatters commented Aug 1, 2011

I've seen this before, but I can't recall the exact circumstances. What version of PySide or PyQt are you using?

@andylei
Copy link
Author

andylei commented Aug 1, 2011

PyQt4.QtCore.PYQT_VERSION
[20] => 264196
PyQt4.QtCore.PYQT_VERSION_STR
[21] => 4.8.4

@andylei
Copy link
Author

andylei commented Aug 1, 2011

i also have get this exact same error message on Linux, running Ubuntu 10.10, ipython 0.11, Python 2.6.6

PyQt4 version:
In [3]: QtCore.PYQT_VERSION
Out[3]: 263940
In [4]: QtCore.PYQT_VERSION_STR
Out[4]: '4.7.4'

@epatters
Copy link
Contributor

epatters commented Aug 1, 2011

You don't have PySide installed, right? That is, if you run 'QT_API=pyqt ipython qtconsole', then you get the same result?

Also, what version of Qt do you have? I'm rather surprised that you're seeing this on both platforms (each of which is known to support the qtconsole), so I'm trying to understand what the commonalities are here.

@andylei
Copy link
Author

andylei commented Aug 1, 2011

I do have PySide installed on both platforms, and

QT_API=pyqt ipython qtconsole

solved my problems on Linux. haven't gotten a chance to check on Windows.

@epatters
Copy link
Contributor

epatters commented Aug 2, 2011

I was afraid of that. The early versions of PySide have critical bugs that prevent the qtconsole from running. If I recall correctly, PySide version 1.0.3 or greater is required.

We should probably document this somewhere. Sorry for the confusion.

@epatters
Copy link
Contributor

epatters commented Aug 2, 2011

@fperez Where is the proper place to put a note about PySide version requirements?

Come to think of it, it might be better to just raise an error in the Qt importer if a bad version of PySide is being used.

@fperez
Copy link
Member

fperez commented Aug 2, 2011

On Mon, Aug 1, 2011 at 8:46 PM, epatters
reply@reply.github.com
wrote:

@fperez Where is the proper place to put a note about PySide version requirements?

The easiest way to have quick updates is the wiki at wiki.ipython.org,
which is a good solution for this kind of fast-changing information.
If you can write something up there, I can also edit the front page of
the main site with a link so it's more easily seen by users.

Come to think of it, it might be better to just raise an error in the Qt importer if a bad version of PySide is being used.

Certainly a good idea for 0.12, though the info on the wiki will help
users of 011.

Cheers,

f

@minrk minrk closed this as completed in 6cf495c Sep 9, 2011
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
don't assume cursor.selectedText() is a string

closes ipythongh-724
closes ipythongh-655
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants