-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate spyderlib/__init__.py to qtpy
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,8 +62,9 @@ def get_versions(reporev=True): | |
"""Get version information for components used by Spyder""" | ||
import sys | ||
import platform | ||
import spyderlib.qt | ||
import spyderlib.qt.QtCore | ||
|
||
import qtpy | ||
import qtpy.QtCore | ||
|
||
revision = None | ||
if reporev: | ||
|
@@ -74,14 +75,14 @@ def get_versions(reporev=True): | |
system = platform.system() | ||
else: | ||
system = 'Darwin' | ||
|
||
return { | ||
'spyder': __version__, | ||
'python': platform.python_version(), # "2.7.3" | ||
'bitness': 64 if sys.maxsize > 2**32 else 32, | ||
'qt': spyderlib.qt.QtCore.__version__, | ||
'qt_api': spyderlib.qt.API_NAME, # PyQt5 or PyQt4 | ||
'qt_api_ver': spyderlib.qt.__version__, | ||
'qt': qtpy.QtCore.__version__, | ||
'qt_api': qtpy.API_NAME, # PyQt5 or PyQt4 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jitseniesen
Member
|
||
'qt_api_ver': qtpy.__version__, | ||
'system': system, # Linux, Windows, ... | ||
'revision': revision, # '9fdf926eccce' | ||
} |
1 comment
on commit 9fdd69c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.1.3
I reinstall it, problem solved. Thank you!
I get an error in this line
$ python bootstrap.py
Executing Spyder from source checkout
Revision 28794ef, Branch: master
Traceback (most recent call last):
File "bootstrap.py", line 140, in
versions = get_versions(reporev=False)
File "D:\Documents\PythonS\trygit\spyder\spyderlib__init__.py", line 85, in get_versions
'qt_api': qtpy.API_NAME, # PyQt5 or PyQt4
AttributeError: 'module' object has no attribute 'API_NAME'