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

"About spyder" and "Report issue ..." output errors #2064

Closed
spyder-bot opened this issue Feb 17, 2015 · 4 comments
Closed

"About spyder" and "Report issue ..." output errors #2064

spyder-bot opened this issue Feb 17, 2015 · 4 comments

Comments

@spyder-bot
Copy link
Collaborator

From Jer.Bu...@gmail.com on 2014-11-25T02:40:51Z

When trying to open the "About spyder" or "Report issue ..." windows the following error appears in the internal console instead:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/spyderlib/spyder.py", line 1720, in about
versions = get_versions()
File "/usr/local/lib/python2.7/dist-packages/spyderlib/init.py", line 66, in get_versions
from IPython.external import qt
File "/usr/lib/python2.7/dist-packages/IPython/external/qt.py", line 46, in
prepare_pyqt4()
File "/usr/lib/python2.7/dist-packages/IPython/external/qt.py", line 20, in prepare_pyqt4
sip.setapi('QString', 2)
ValueError: API 'QString' has already been set to version 1

What steps will reproduce the problem?

  1. Selecting "Help" > "About spyder ..." or "Help" > "Report issue"

What is the expected output? What do you see instead?

In both cases a window should pop up, but instead only an error is outputted What version of the product are you using? On what operating system? Spyderlib is version 2.3.1 (installed via pip). OS is Ubuntu 12.04 LTS.

Please provide any additional information below

. Only just upgraded from 2.1.x which didn't have these issues

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2064

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2014-11-25T08:39:25Z

Thanks for reporting. What's your IPython version?

Labels: MS-v2.3.3

@spyder-bot
Copy link
Collaborator Author

From Jer.Bu...@gmail.com on 2014-11-25T23:13:02Z

IPython is version 2.3.1

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2014-12-16T15:23:09Z

What if you add a ValueError exception in line 67 of spyderlib/init.py? Like this

65 try:
66 from IPython.external import qt
67 except (ImportError, ValueError):
68 pass

That should fix the error (I hope :-)

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-01-10T11:19:59Z

This issue was closed by revision d1fb96b4676b .

Status: Fixed

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

1 participant