1

我按照“从源代码构建”部分中的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 进行了尝试。两种情况下的行为相同。

4

0 回答 0