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

运行出现SIP版本号错误 #5

Open
cdhigh opened this issue Nov 21, 2019 · 3 comments
Open

运行出现SIP版本号错误 #5

cdhigh opened this issue Nov 21, 2019 · 3 comments
Labels
fixed bug has been fixed

Comments

@cdhigh
Copy link

cdhigh commented Nov 21, 2019

下载 QssStylesheetEditor_v1.5.zip 后运行pyw文件出错:
RuntimeError: the sip module implements API v12.0 to v12.6 but the PyQt5.Qsci module requires API v12.7

我的环境:
OS: Windows7 64bit
Python: 3.7.3 32bit
PyQt5: 5.12.1

Traceback (most recent call last):
File "E:\Working\Coding\Python\QssStylesheetEditor\installer..\src\app.py", line 13, in
File "E:\Working\Coding\Python\QssStylesheetEditor\installer..\src\ui_init_.py", line 7, in
File "E:\Working\Coding\Python\QssStylesheetEditor\installer..\src\ui\mainwinbase.py", line 12, in
File "E:\Working\Coding\Python\QssStylesheetEditor\installer..\src\ui\editor_init_.py", line 7, in
File "E:\Working\Coding\Python\QssStylesheetEditor\installer..\src\ui\editor\editor.py", line 12, in
RuntimeError: the sip module implements API v12.0 to v12.6 but the PyQt5.Qsci module requires API v12.7

@hustlei
Copy link
Owner

hustlei commented Nov 24, 2019

我还没有测试过32bit python,64bit python 都测试过,我这几天试一下32bit看看。

看你这个提示的错误,应该是Qsic的版本比PyQt5的版本高了,pip install -U PyQt5升级一下PyQt5应该可以。

64bit的系统,可以先下载一个绿色版(portable)或者安装版(installer)用一下试试

@cdhigh
Copy link
Author

cdhigh commented Nov 24, 2019

只是32bit的python兼容性更好,所以我一直都是安装的32bit的。

因为我也是开发者,所以发现此问题就直接提交给你,由你决定是否需要解决。
我知道我升级sip或PyQt5能在本地解决,但是只是奇怪:也可能是PyQt5安装程序的问题。

根据提示,是说我的PyQt5版本太高了,sip版本低了,但是我安装PyQt5已经有很长一段时间了,在安装PyQt5之后,重来没有升级过其他部件,所以理论上如果PyQt5需要更高版本的sip,则应该在安装PyQt5时一并提醒需要更新sip或干脆就直接更新了。

@hustlei
Copy link
Owner

hustlei commented Nov 24, 2019

好的,非常感谢提交的问题,32bit python3 的问题肯定是要完善的

有什么问题或建议都欢迎提交^_^

@hustlei hustlei added developing feature is being developed. implemented New feature added. fixed bug has been fixed good first issue and removed developing feature is being developed. implemented New feature added. labels Nov 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed bug has been fixed
Projects
None yet
Development

No branches or pull requests

2 participants