eric6不在ubuntu14.10中工作

2024-06-16 10:18:54 发布

您现在位置:Python中文网/ 问答频道 /正文

我在ubuntu14.10中安装了Python3.4、PyQt5.4.1和eric6。 当我输入“sudo eric6”时,eric6不工作! 以下是错误。请告诉我能做什么。在

Error information: -------------------------------------------------------------------------------- 2015-05-01, 00:42:31 -------------------------------------------------------------------------------- <class 'TypeError'>: QsciLexerPython(QObject parent=None): argument 1 has unexpected type 'Shell' -------------------------------------------------------------------------------- File "/usr/lib/python3/dist-packages/eric6/eric6.py", line 326, in <module> main() File "/usr/lib/python3/dist-packages/eric6/eric6.py", line 323, in main raise err File "/usr/lib/python3/dist-packages/eric6/eric6.py", line 306, in main restartArgs) File "/usr/lib/python3/dist-packages/eric6/UI/UserInterface.py", line 227, in __init__ self.__createLayout(debugServer) File "/usr/lib/python3/dist-packages/eric6/UI/UserInterface.py", line 620, in __createLayout self.__createSidebarsLayout(debugServer) File "/usr/lib/python3/dist-packages/eric6/UI/UserInterface.py", line 853, in __createSidebarsLayout ShellAssembly(debugServer, self.viewmanager, True) File "/usr/lib/python3/dist-packages/eric6/QScintilla/Shell.py", line 48, in __init__ self.__shell = Shell(dbs, vm, self) File "/usr/lib/python3/dist-packages/eric6/QScintilla/Shell.py", line 236, in __init__ self.__bindLexer() File "/usr/lib/python3/dist-packages/eric6/QScintilla/Shell.py", line 308, in __bindLexer self.lexer_ = Lexers.getLexer(self.language, self) File "/usr/lib/python3/dist-packages/eric6/QScintilla/Lexers/__init__.py", line 209, in getLexer return LexerPython(language, parent) File "/usr/lib/python3/dist-packages/eric6/QScintilla/Lexers/LexerPython.py", line 31, in __init__ QsciLexerPython.__init__(self, parent)


Tags: inpyselfinitlibpackagesusrdist
1条回答
网友
1楼 · 发布于 2024-06-16 10:18:54

bug报告here(以及其他链接的报告)似乎表明存储库中PyQt5.qsci的构建落后于PyQt,或者当前的qsci安装在错误的位置,理论上从源代码构建应该修复它。在

So finally, the simplest way to install Eric6 on Ubuntu 14.10 is :
#Install some dependencies
sudo apt-get install mercurial build-essential qt5-default
qtbase5-qttools5-dev-tools libqt5scintilla2-11 python3-pyqt5.qtwebkit
python3-pyqt5.qtsvg python3-pyqt5.qtsql
#Build PyQt5.qsci from sources
sudo apt-get sources python3-pyqt5.qsci
cd qscintilla2-2.8.3+dfsg/Python
python3 configure.py  pyqt=PyQt5 -q /usr/lib/x86_64-linux-gnu/qt5/bin/qmake -d
/usr/lib/python3/dist-packages/PyQt5
make
sudo make install
#Download and build Eric6 from sources
hg clone http://die-offenbachs.homelinux.org:48888/hg/eric
cd eric
sudo python3 install.py

相关问题 更多 >