尝试编译buck时出错

时间:2019-01-18 00:22:32

标签: python ant buck

我按照https://buckbuild.com/setup/getting_started.html中“从源代码构建”部分中的说明进行操作,尝试从git checkout生成Buck并得到以下错误。前提条件已正确安装。

chrisym-mbp:buck chrisym$ ./bin/buck build --show-output buck
Traceback (most recent call last):
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 184, in <module>
    sys.exit(main())
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 157, in main
    for dst, src in manifest["modules"].iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

Traceback (most recent call last):
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 184, in <module>
    sys.exit(main())
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 157, in main
    for dst, src in manifest["modules"].iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

Traceback (most recent call last):
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 184, in <module>
    sys.exit(main())
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 157, in main
    for dst, src in manifest["modules"].iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

Traceback (most recent call last):
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 184, in <module>
    sys.exit(main())
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 157, in main
    for dst, src in manifest["modules"].iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

Traceback (most recent call last):
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 184, in <module>
    sys.exit(main())
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 157, in main
    for dst, src in manifest["modules"].iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

Traceback (most recent call last):
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 184, in <module>
    sys.exit(main())
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 157, in main
    for dst, src in manifest["modules"].iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

Building: finished in 1.4 sec (100%) 76/1536 jobs, 19 updated
  Total time: 1.6 sec
Command failed with exit code 1.
stderr: Traceback (most recent call last):
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 184, in <module>
    sys.exit(main())
  File "/Users/chrisym/Library/MobileTools/buck/ant-out/buck-modules-resources/python/make_pex.py", line 157, in main
    for dst, src in manifest["modules"].iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

    When running <pex>.
    When building rule //py/hash:hash_files.
chrisym-mbp:buck chrisym$

我在Python 2和Python 3中进行了尝试。两种情况下的行为相同。

0 个答案:

没有答案