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

Spyder won't start after upgrade to 3.1.0 due to an error with QRegularExpression #3989

Closed
BeateBier opened this issue Jan 18, 2017 · 8 comments

Comments

@BeateBier
Copy link

Description of your problem

What steps will reproduce the problem?

  1. Start spyder from terminal

What is the expected output? What do you see instead?
I expect spyder to start, instead I get an error:

spyder
QML debugging is enabled. Only use this in a safe environment.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 2979, in main
mainwindow = run_spyder(app, options, args)
File "/usr/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 2883, in run_spyder
main.setup()
File "/usr/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 780, in setup
message=_("Spyder Internal Console\n\n"
File "/usr/lib/python2.7/site-packages/spyder/plugins/console.py", line 79, in init
self.find_widget.set_editor(self.shell)
File "/usr/lib/python2.7/site-packages/spyder/widgets/findreplace.py", line 280, in set_editor
self.refresh()
File "/usr/lib/python2.7/site-packages/spyder/widgets/findreplace.py", line 259, in refresh
self.find()
File "/usr/lib/python2.7/site-packages/spyder/widgets/findreplace.py", line 326, in find
self.editor.find_text('')
File "/usr/lib/python2.7/site-packages/spyder/widgets/mixins.py", line 513, in find_text
found_cursor = self.document().find(pattern, cursor, findflag)
TypeError: arguments did not match any overloaded call:
QTextDocument.find(str, int position=0, QTextDocument.FindFlags options=0): argument 1 has unexpected type 'QRegularExpression'
QTextDocument.find(QRegExp, int position=0, QTextDocument.FindFlags options=0): argument 1 has unexpected type 'QRegularExpression'
QTextDocument.find(str, QTextCursor, QTextDocument.FindFlags options=0): argument 1 has unexpected type 'QRegularExpression'
QTextDocument.find(QRegExp, QTextCursor, QTextDocument.FindFlags options=0): argument 1 has unexpected type 'QRegularExpression'

Please provide any additional information below

Versions and main components

  • Spyder Version: 3.1.0
  • Python Version: 2.7.12
  • Operating system: OpenSuse 13.2

Dependencies

Please go to the menu entry Help > Optional Dependencies (or
Help > Dependencies), press the button Copy to clipboard
and paste the contents below:
I can't get spyder to start, so ...

@goanpeca
Copy link
Member

@rlaverde

@ccordoba12
Copy link
Member

What are your qt and pyqt versions?

@BeateBier
Copy link
Author

PyQt5: 5.3.1
PyQt4: 4.11.1
How do I get the Qt-version?
Yast is showing me a bunch of libs (for instance "libqt5-qtbase-devel"), from there:
Qt5: 5.4.2
Qt4: 4.8.6

@rlaverde
Copy link
Member

I think this is a bug of Qt5, you should upgrade to PyQt>=5.5

QRegularExpression was introduced in Qt 5.0 but QTextDocument.find supporting QRegularExpression was introduced in Qt 5.5

@ccordoba12 Since we are supporting PyQt5 5.2+, Should we implement a workaround for this?

@ccordoba12
Copy link
Member

@rlaverde, yes. Please add a check for qt 5.5+ where you introduced this feature.

This is a priority for 3.1.1, so I want a PR as soon as possible :-)

@BeateBier
Copy link
Author

you should upgrade to PyQt>=5.5

I can't. Pip can't and opensuse does not offer an update.

Pip:

pip2 install PyQt5
Downloading/unpacking PyQt5
Could not find any downloads that satisfy the requirement PyQt5
Cleaning up...
No distributions at all found for PyQt5
Storing debug log for failure in /root/.pip/pip.log

1 similar comment
@BeateBier
Copy link
Author

you should upgrade to PyQt>=5.5

I can't. Pip can't and opensuse does not offer an update.

Pip:

pip2 install PyQt5
Downloading/unpacking PyQt5
Could not find any downloads that satisfy the requirement PyQt5
Cleaning up...
No distributions at all found for PyQt5
Storing debug log for failure in /root/.pip/pip.log

@rlaverde rlaverde changed the title Spyder won't start after upgrade to 3.1.0 Spyder won't start after upgrade to 3.1.0 due an error with QRegularExpression Jan 18, 2017
@rlaverde rlaverde self-assigned this Jan 18, 2017
@ccordoba12 ccordoba12 changed the title Spyder won't start after upgrade to 3.1.0 due an error with QRegularExpression Spyder won't start after upgrade to 3.1.0 due to an error with QRegularExpression Jan 18, 2017
@ccordoba12
Copy link
Member

@BeateBier, this error will be fixed in Spyder 3.1.1. Sorry for hassle.

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