2015-04-30 30 views
0

我安裝了Python 3.4和PyQt 5.4.1和Eric 6.在Ubuntu 14.10中。 當我輸入「sudo eric6」時,eric6不起作用! 以下是錯誤。請告訴我我該怎麼做。eric6無法在ubuntu14.10上工作

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)

+3

爲什麼sudo?它沒有sudo工作嗎? – mdurant

+0

沒有sudo ethier它不起作用 – zonzely

回答

0

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