无法安装Eric IDE

时间:2013-12-01 12:06:30

标签: python pyqt4 eric-ide

我试图在我的电脑上安装eric ide。我安装了PyQt4包,我有python 2.7。 但是安装仍然存在以下错误。我尝试了很多搜索,但没有找到。有人可以帮忙吗?感谢。

E:\Downloads\eric4-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:\Python27\lib\site-packages\PyQt4\uic\__init__.py", line 134, in compi
leUiDir
    compile_ui(root, ui)
  File "C:\Python27\lib\site-packages\PyQt4\uic\__init__.py", line 126, in compi
le_ui
    compileUi(ui_file, py_file, **compileUi_args)
  File "C:\Python27\lib\site-packages\PyQt4\uic\__init__.py", line 175, in compi
leUi
    winfo = compiler.UICompiler().compileUi(uifile, pyfile, from_imports, resour
ce_suffix)
  File "C:\Python27\lib\site-packages\PyQt4\uic\Compiler\compiler.py", line 139,
 in compileUi
    w = self.parse(input_stream, resource_suffix)
  File "C:\Python27\lib\site-packages\PyQt4\uic\uiparser.py", line 943, in parse

    document = parse(filename)
  File "C:\Python27\lib\xml\etree\ElementTree.py", line 1183, in parse
    tree.parse(source, parser)
  File "C:\Python27\lib\xml\etree\ElementTree.py", line 656, in parse
    parser.feed(data)
  File "C:\Python27\lib\xml\etree\ElementTree.py", line 1643, in feed
    self._raiseerror(v)
  File "C:\Python27\lib\xml\etree\ElementTree.py", line 1507, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: syntax error: line 1, column 0

1 个答案:

答案 0 :(得分:0)

可供下载的{.tar.gz文件中的tar文件here(eric4-4.5.16.tar.gz)包含'pax headers',看起来7-Zip不支持。

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

herehere之前出现此问题。后者甚至建议(无论如何)要生成没有pax标头的.tar.gz文件,你只需要在生成存档时删除一个开关。

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

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