我很难运行TortoiseHg (用于mercurial的GUI)。PPA已经严重过时了,并且没有自我包含的AppImage或SnapCraft映像。
我以前在错误的地方问过这个问题(https://bugs.kde.org/show_bug.cgi?id=388980)
出于某些原因,需要重新编译Qsci以运行某些Qt应用程序。
我已经成功地重新编译了Qsci (version = QScintilla_gpl-2.10.2.tar.gz),但是在尝试创建python时,它会抱怨(无法创建C++代码)。
$ python configure.py
Configuring QScintilla 2.10.2...
QScintilla 2.10.2 is being used.
The QScintilla .sip files will be installed in /usr/share/sip/PyQt4.
QScintilla will be installed in /usr/lib/python2.7/dist-packages/PyQt4.
PyQt 4.11.4 is being used.
Qt 4.8.7 is being used.
sip 4.19.6 is being used.
The sip executable is /usr/bin/sip.
QScintilla is being built with 'protected' redefined as 'public'.
The PEP 484 stubs will be installed in /usr/lib/python2.7/dist-packages/PyQt4.
The QScintilla API file will be installed in /usr/share/qt4/qsci/api/python.
Generating the C++ source for the Qsci module...
Error: Unable to create the C++ code.这种情况发生在最新版本的KDE Neon和Ubuntu MATE上,可能还有其他发行版,我还没有测试过。
谢谢你的进阶。
发布于 2018-01-18 07:33:36
重新编译似乎不能解决这个问题。不管出于什么原因,它仍然使用Qt4而不是Qt5。
幸运的是找到了预编译的二进制文件。
sudo apt-get install python-pyqt5.qsci
把问题解决了。
https://askubuntu.com/questions/997166
复制相似问题