无法安装Eric IDE



我试图在我的电脑上安装eric-ide。我安装了PyQt4包,我有python 2.7。但安装过程中出现以下错误。我试了很多次寻找,但一无所获。有人能帮忙吗?谢谢

E:Downloadseric4-4.5.16> python install.py
Checking dependencies
Python Version: 2.7.3
Found PyQt4
Found QtHelp
Found QScintilla2
Qt Version: 4.8.5
PyQt Version:  4.10.3
QScintilla Version:  2.7.2
All dependencies ok.
Cleaning up old installation ...
Creating configuration file ...
Compiling user interface files ...
An internal error occured.  Please report all the output of the program,
including the following traceback, to eric4-bugs@eric-ide.python-projects.org.
Traceback (most recent call last):
  File "install.py", line 1093, in <module>
    main(sys.argv)
  File "install.py", line 1011, in main
    compileUiFiles()
  File "install.py", line 906, in compileUiFiles
    compileUiDir(sourceDir, True, pyName)
  File "C:Python27libsite-packagesPyQt4uic__init__.py", line 134, in compi
leUiDir
    compile_ui(root, ui)
  File "C:Python27libsite-packagesPyQt4uic__init__.py", line 126, in compi
le_ui
    compileUi(ui_file, py_file, **compileUi_args)
  File "C:Python27libsite-packagesPyQt4uic__init__.py", line 175, in compi
leUi
    winfo = compiler.UICompiler().compileUi(uifile, pyfile, from_imports, resour
ce_suffix)
  File "C:Python27libsite-packagesPyQt4uicCompilercompiler.py", line 139,
 in compileUi
    w = self.parse(input_stream, resource_suffix)
  File "C:Python27libsite-packagesPyQt4uicuiparser.py", line 943, in parse
    document = parse(filename)
  File "C:Python27libxmletreeElementTree.py", line 1183, in parse
    tree.parse(source, parser)
  File "C:Python27libxmletreeElementTree.py", line 656, in parse
    parser.feed(data)
  File "C:Python27libxmletreeElementTree.py", line 1643, in feed
    self._raiseerror(v)
  File "C:Python27libxmletreeElementTree.py", line 1507, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: syntax error: line 1, column 0

.tar.gz文件(eric4-4.5.16.tar.gz)中的tarfile包含"pax-headers",7-Zip似乎不支持该文件。

这些标题在7-Zip中显示为文件。您会收到一个错误,因为其中一些pax标头中的数据覆盖了.ui文件,这些文件应该包含描述如何构建GUI各部分的XML文档。当然,pax头中的数据不是XML,所以当PyQt试图将这些文件解析为XML时,会出现XML解析错误。

这个问题以前就出现过。后者甚至建议(无论如何,对我来说),要生成一个没有pax头的.tar.gz文件,只需要在生成归档文件时删除一个开关。

发生这种情况很不方便,因为7-Zip似乎是在Windows上提取.tar.gz文件的首选工具。考虑到7-Zip的流行,如果可能的话,Eric开发人员从.tar.gz文件中删除pax头似乎是明智的,因为这可以防止进一步的混乱。我不知道他们是否有理由使用这些标题。

同时,如果您使用的是Windows,我建议您使用.zip文件(eric4-4.5.16.zip)。

最新更新