我试着在我的电脑上安装eric ide,我安装了PyQt4包,我有python2.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
中的tarfile。焦油gz文件可供下载here(eric4-4.5.16。焦油gz)包含“pax headers”,似乎7-Zip不支持它。在
这些标题显示为7-Zip文件。您得到了一个错误,因为来自这些pax头文件的数据正在覆盖.ui文件,该文件应该包含描述如何构建GUI部分的XML文档。当然,pax头中的数据不是XML,所以当PyQt试图将这些文件解析为XML时,会出现XML解析错误。在
此问题出现在here和here之前。后者甚至建议(无论如何,对我来说)生成一个。焦油gz没有pax头的文件,您只需要在生成归档文件时删除一个开关。在
考虑到7-Zip似乎是用于提取的go-to工具,因此发生这种情况很不方便。焦油gzWindows上的文件。考虑到7-Zip的流行,对于Eric开发人员来说,删除pax头文件似乎是明智之举。焦油gz如果可能的话,归档,因为这样可以防止进一步的混乱。我不知道他们是否有理由使用这些标题。在
同时,如果您使用的是Windows,我建议您使用.zip文件(eric4-4.5.16.zip)。在
相关问题 更多 >
编程相关推荐