无法运行 TortoiseHg,库损坏且缺少依赖项

无法运行 TortoiseHg,库损坏且缺少依赖项

我很难跑步玳瑁(mercurial 的 GUI)。PPA已经严重过时,并且没有自包含功能AppImageSnapCraft图像。

我之前在错误的地方问过这个问题(https://bugs.kde.org/show_bug.cgi?id=388980

由于某些原因,Qsci需要重新编译才能运行某些Qt应用程序。

我已经成功重新编译Qsci(版本 = 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 NeonUbuntu MATE也许还有其他发行版中,但我还没有测试过。

提前感谢您。

答案1

重新编译似乎无法解决问题。无论出于什么原因,它仍然使用 Qt4 而不是 Qt5。

幸运的是找到了预编译的二进制文件。

sudo apt-get install python-pyqt5.qsci

问题已经解决。

相关内容