0

我正在尝试从源代码构建一个名为 plaidML 的 python 包。它使用了一个叫做 bazelisk 的工具,它说它是一个叫做 bazel 的东西的包装器。我对这些工具中的任何一个都不熟悉,只是盲目地按照说明进行操作。

无论如何,构建步骤失败了,我什至知道为什么。最后的错误消息“use_2to3 invalid”将我带到了这样的页面。从许多对此类帖子的回复来看,问题似乎出在最新版本的 setuptools 包(58.2.0)上,执行“setuptools==50.3.2”将解决它。

我的问题非常具体。我在哪里做这个改变?这里涉及一个巨大的目录树,我完全无法弄清楚所有这些文件中的哪个文件可能是添加该行的地方。

所以我的问题是:有人可以查看这个构建输出并建议我在哪里添加一行“setuptools==50.3.2”来覆盖 setuptools 58.2.0?非常感激。

这无疑是一个基本问题,但我发现学习曲线有点陡峭,并在 Google 和 StackOverflow 的帮助下尽我所能独自攀登。

(虽然我认为有 StackOverflow 时你永远不会孤单。歌曲提示“你永远不会独行”)

更新:我可能有一个小线索。在这个巨大的目录树的顶层是一个配置脚本,./configure。它引用了一个名为 environment.yml 的文件,其中包含以下内容。其中之一是否以某种方式强制 setuptools 58.2.0?我如何找出哪个?

cat environment.yml

channels:
  - conda-forge
dependencies:
  - numpy=1.16.4
  - pip=19
  - pre_commit=1.17.0
  - python=3.7.4
  - pyyaml=5.1.2
  - pip:
    - cpplint==1.4.4
    - yapf==0.27.0

(完整的构建输出)

$ bazelisk build //plaidml:wheel

Starting local Bazel server and connecting to it...
INFO: Writing tracer profile to '/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/command.profile.gz'
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=80
INFO: Reading rc options for 'build' from /Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/bzl/bazel.rc:
  'build' options: -c opt --spawn_strategy=standalone --genrule_strategy=standalone --announce_rc --nolegacy_external_runfiles --distinct_host_configuration=false --enable_platform_specific_config --action_env=LC_ALL --action_env=LANG --action_env=NO_PROXY --action_env=HTTP_PROXY --action_env=HTTPS_PROXY --action_env=no_proxy --action_env=http_proxy --action_env=https_proxy --define=version=0.0.0.dev0
INFO: Found applicable config definition build:macos in file /Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/bzl/bazel.rc: --cxxopt=-std=c++17 --cpu=darwin_x86_64 --apple_platform_type=macos --build_tag_filters=-large,-linux,-msvc
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... Enabling notebook extension jupyter-js-widgets/extension...
      - Validating: OK

done
Installing pip dependencies: ...working... Ran pip subprocess with arguments:
['/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/bin/python', '-m', 'pip', 'install', '-U', '-r', '/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/conda/condaenv.2e885f82.requirements.txt']
Pip subprocess output:
Ignoring torch-nightly: markers 'platform_system == "Linux"' don't match your environment
Collecting asq
  Using cached https://files.pythonhosted.org/packages/26/1b/fa14c1101a40819652718701ad6b149dd009131d7b408efb1a834a688f4f/asq-1.3-py2.py3-none-any.whl
Collecting autodoc
  Using cached https://files.pythonhosted.org/packages/4e/c3/61f746096d2b6c161bd7f3bf8db1fe741b8805cbf0ac9369b4953c37de35/autodoc-0.5.0.tar.gz
Collecting bokeh
  Using cached https://files.pythonhosted.org/packages/26/96/3e56636664e497728b14738fea5e54297de1bc0f451b7206325a6453e73d/bokeh-2.4.1-py3-none-any.whl
Collecting breathe
  Using cached https://files.pythonhosted.org/packages/dd/3c/cf7386ab7c0b353a99265dd15081895f5efd79a4a2d02deae0d60c85d25b/breathe-4.31.0-py3-none-any.whl
Collecting click
  Using cached https://files.pythonhosted.org/packages/48/58/c8aa6a8e62cc75f39fee1092c45d6b6ba684122697d7ce7d53f64f98a129/click-8.0.3-py3-none-any.whl
Collecting defaultlist
  Using cached https://files.pythonhosted.org/packages/b2/e6/cf788a63ef0dcf7f352bfdd917dd51b1f59b51ff39b28b93a003e4d4ba4e/defaultlist-1.0.0.tar.gz
Collecting graphviz
  Using cached https://files.pythonhosted.org/packages/97/14/b5eeeb6d24dbca0ada857ce4a453985df34d9512464bb20cc1a8aca44c54/graphviz-0.17-py3-none-any.whl
Collecting humanize
  Using cached https://files.pythonhosted.org/packages/fd/5e/9840102591431f86c2e99c5a8e4f18bb399f9f2e982b0dbba87c98ae800f/humanize-3.12.0-py3-none-any.whl
Collecting keras==2.2.4
  Using cached https://files.pythonhosted.org/packages/5e/10/aa32dad071ce52b5502266b5c659451cfd6ffcbf14e6c8c4f16c0ff5aaab/Keras-2.2.4-py2.py3-none-any.whl
Collecting keras-applications==1.0.8
  Using cached https://files.pythonhosted.org/packages/71/e3/19762fdfc62877ae9102edf6342d71b28fbfd9dea3d2f96a882ce099b03f/Keras_Applications-1.0.8-py3-none-any.whl
Collecting livereload
  Using cached https://files.pythonhosted.org/packages/bd/60/6640b819e858562ef6684abac60593b7369fe0a8a064df426d3ab0ab894d/livereload-2.6.3.tar.gz
Collecting matplotlib==3.1.3
  Using cached https://files.pythonhosted.org/packages/f5/1e/5cfcafca1ebe7b5fc08dcc2fe5efc7307e6970de0dd2999a7757311a7aec/matplotlib-3.1.3-cp37-cp37m-macosx_10_9_x86_64.whl
Collecting networkx
  Using cached https://files.pythonhosted.org/packages/e9/93/aa6613aa70d6eb4868e667068b5a11feca9645498fd31b954b6c4bb82fa5/networkx-2.6.3-py3-none-any.whl
Collecting pandas
  Using cached https://files.pythonhosted.org/packages/cb/4d/9df2841432757b45d5b9973d85c982d4984aa2baea7ff48a905baa5fc781/pandas-1.3.3-cp37-cp37m-macosx_10_9_x86_64.whl
Collecting pcpp==1.20.1
  Using cached https://files.pythonhosted.org/packages/33/7b/e8ca3707a86a21685214cbe8d7d77a71a2964dfef01c1fe9bbfad9ff6b39/pcpp-1.20.1-py2.py3-none-any.whl
Requirement already up-to-date: pygments in /private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/lib/python3.7/site-packages (from -r /Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/conda/condaenv.2e885f82.requirements.txt (line 16)) (2.10.0)
Collecting pystache
  Using cached https://files.pythonhosted.org/packages/d6/fd/eb8c212053addd941cc90baac307c00ac246ac3fce7166b86434c6eae963/pystache-0.5.4.tar.gz

failed
Pip subprocess error:
    ERROR: Command errored out with exit status 1:
     command: /private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/setup.py'"'"'; __file__='"'"'/private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/pip-egg-info
         cwd: /private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/
    Complete output (3 lines):
    pystache: using: version '58.2.0' of <module 'setuptools' from '/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/lib/python3.7/site-packages/setuptools/__init__.py'>
    Warning: 'classifiers' should be a list, got type 'tuple'
    error in pystache setup command: use_2to3 is invalid.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


CondaEnvException: Pip failed

Traceback (most recent call last):
  File "/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/bzl/conda_wrapper.py", line 225, in <module>
    main()
  File "/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/bzl/conda_wrapper.py", line 218, in main
    subprocess.check_call(['conda'] + sys.argv[1:])
  File "/Users/rpoepa/opt/anaconda3/envs/dl-tf2/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['conda', 'env', 'create', '-f', '/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/conda/unix.yml', '-p', '/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env']' returned non-zero exit status 1.
INFO: Call stack for the definition of repository 'com_intel_plaidml_conda_unix' which is a conda_repo (rule definition at /Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/bzl/conda_repo.bzl:32:14):
 - /Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/bzl/workspace.bzl:155:5
 - /Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/WORKSPACE:22:1
ERROR: An error occurred during the fetch of repository 'com_intel_plaidml_conda_unix':
   conda_repo failed: Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... Enabling notebook extension jupyter-js-widgets/extension...
      - Validating: OK

done
Installing pip dependencies: ...working... Ran pip subprocess with arguments:
['/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/bin/python', '-m', 'pip', 'install', '-U', '-r', '/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/conda/condaenv.2e885f82.requirements.txt']
Pip subprocess output:
Ignoring torch-nightly: markers 'platform_system == "Linux"' don't match your environment
Collecting asq
  Using cached https://files.pythonhosted.org/packages/26/1b/fa14c1101a40819652718701ad6b149dd009131d7b408efb1a834a688f4f/asq-1.3-py2.py3-none-any.whl
Collecting autodoc
  Using cached https://files.pythonhosted.org/packages/4e/c3/61f746096d2b6c161bd7f3bf8db1fe741b8805cbf0ac9369b4953c37de35/autodoc-0.5.0.tar.gz
Collecting bokeh
  Using cached https://files.pythonhosted.org/packages/26/96/3e56636664e497728b14738fea5e54297de1bc0f451b7206325a6453e73d/bokeh-2.4.1-py3-none-any.whl
Collecting breathe
  Using cached https://files.pythonhosted.org/packages/dd/3c/cf7386ab7c0b353a99265dd15081895f5efd79a4a2d02deae0d60c85d25b/breathe-4.31.0-py3-none-any.whl
Collecting click
  Using cached https://files.pythonhosted.org/packages/48/58/c8aa6a8e62cc75f39fee1092c45d6b6ba684122697d7ce7d53f64f98a129/click-8.0.3-py3-none-any.whl
Collecting defaultlist
  Using cached https://files.pythonhosted.org/packages/b2/e6/cf788a63ef0dcf7f352bfdd917dd51b1f59b51ff39b28b93a003e4d4ba4e/defaultlist-1.0.0.tar.gz
Collecting graphviz
  Using cached https://files.pythonhosted.org/packages/97/14/b5eeeb6d24dbca0ada857ce4a453985df34d9512464bb20cc1a8aca44c54/graphviz-0.17-py3-none-any.whl
Collecting humanize
  Using cached https://files.pythonhosted.org/packages/fd/5e/9840102591431f86c2e99c5a8e4f18bb399f9f2e982b0dbba87c98ae800f/humanize-3.12.0-py3-none-any.whl
Collecting keras==2.2.4
  Using cached https://files.pythonhosted.org/packages/5e/10/aa32dad071ce52b5502266b5c659451cfd6ffcbf14e6c8c4f16c0ff5aaab/Keras-2.2.4-py2.py3-none-any.whl
Collecting keras-applications==1.0.8
  Using cached https://files.pythonhosted.org/packages/71/e3/19762fdfc62877ae9102edf6342d71b28fbfd9dea3d2f96a882ce099b03f/Keras_Applications-1.0.8-py3-none-any.whl
Collecting livereload
  Using cached https://files.pythonhosted.org/packages/bd/60/6640b819e858562ef6684abac60593b7369fe0a8a064df426d3ab0ab894d/livereload-2.6.3.tar.gz
Collecting matplotlib==3.1.3
  Using cached https://files.pythonhosted.org/packages/f5/1e/5cfcafca1ebe7b5fc08dcc2fe5efc7307e6970de0dd2999a7757311a7aec/matplotlib-3.1.3-cp37-cp37m-macosx_10_9_x86_64.whl
Collecting networkx
  Using cached https://files.pythonhosted.org/packages/e9/93/aa6613aa70d6eb4868e667068b5a11feca9645498fd31b954b6c4bb82fa5/networkx-2.6.3-py3-none-any.whl
Collecting pandas
  Using cached https://files.pythonhosted.org/packages/cb/4d/9df2841432757b45d5b9973d85c982d4984aa2baea7ff48a905baa5fc781/pandas-1.3.3-cp37-cp37m-macosx_10_9_x86_64.whl
Collecting pcpp==1.20.1
  Using cached https://files.pythonhosted.org/packages/33/7b/e8ca3707a86a21685214cbe8d7d77a71a2964dfef01c1fe9bbfad9ff6b39/pcpp-1.20.1-py2.py3-none-any.whl
Requirement already up-to-date: pygments in /private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/lib/python3.7/site-packages (from -r /Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/conda/condaenv.2e885f82.requirements.txt (line 16)) (2.10.0)
Collecting pystache
  Using cached https://files.pythonhosted.org/packages/d6/fd/eb8c212053addd941cc90baac307c00ac246ac3fce7166b86434c6eae963/pystache-0.5.4.tar.gz

failed
 (Pip subprocess error:
    ERROR: Command errored out with exit status 1:
     command: /private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/setup.py'"'"'; __file__='"'"'/private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/pip-egg-info
         cwd: /private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/
    Complete output (3 lines):
    pystache: using: version '58.2.0' of <module 'setuptools' from '/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/lib/python3.7/site-packages/setuptools/__init__.py'>
    Warning: 'classifiers' should be a list, got type 'tuple'
    error in pystache setup command: use_2to3 is invalid.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


CondaEnvException: Pip failed

Traceback (most recent call last):
  File "/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/bzl/conda_wrapper.py", line 225, in <module>
    main()
  File "/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/bzl/conda_wrapper.py", line 218, in main
    subprocess.check_call(['conda'] + sys.argv[1:])
  File "/Users/rpoepa/opt/anaconda3/envs/dl-tf2/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['conda', 'env', 'create', '-f', '/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/conda/unix.yml', '-p', '/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env']' returned non-zero exit status 1.
)
ERROR: /Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/plaidml/BUILD:322:1: //plaidml:wheel depends on @com_intel_plaidml_conda_unix//:python in repository @com_intel_plaidml_conda_unix which failed to fetch. no such package '@com_intel_plaidml_conda_unix//': conda_repo failed: Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... Enabling notebook extension jupyter-js-widgets/extension...
      - Validating: OK

done
Installing pip dependencies: ...working... Ran pip subprocess with arguments:
['/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/bin/python', '-m', 'pip', 'install', '-U', '-r', '/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/conda/condaenv.2e885f82.requirements.txt']
Pip subprocess output:
Ignoring torch-nightly: markers 'platform_system == "Linux"' don't match your environment
Collecting asq
  Using cached https://files.pythonhosted.org/packages/26/1b/fa14c1101a40819652718701ad6b149dd009131d7b408efb1a834a688f4f/asq-1.3-py2.py3-none-any.whl
Collecting autodoc
  Using cached https://files.pythonhosted.org/packages/4e/c3/61f746096d2b6c161bd7f3bf8db1fe741b8805cbf0ac9369b4953c37de35/autodoc-0.5.0.tar.gz
Collecting bokeh
  Using cached https://files.pythonhosted.org/packages/26/96/3e56636664e497728b14738fea5e54297de1bc0f451b7206325a6453e73d/bokeh-2.4.1-py3-none-any.whl
Collecting breathe
  Using cached https://files.pythonhosted.org/packages/dd/3c/cf7386ab7c0b353a99265dd15081895f5efd79a4a2d02deae0d60c85d25b/breathe-4.31.0-py3-none-any.whl
Collecting click
  Using cached https://files.pythonhosted.org/packages/48/58/c8aa6a8e62cc75f39fee1092c45d6b6ba684122697d7ce7d53f64f98a129/click-8.0.3-py3-none-any.whl
Collecting defaultlist
  Using cached https://files.pythonhosted.org/packages/b2/e6/cf788a63ef0dcf7f352bfdd917dd51b1f59b51ff39b28b93a003e4d4ba4e/defaultlist-1.0.0.tar.gz
Collecting graphviz
  Using cached https://files.pythonhosted.org/packages/97/14/b5eeeb6d24dbca0ada857ce4a453985df34d9512464bb20cc1a8aca44c54/graphviz-0.17-py3-none-any.whl
Collecting humanize
  Using cached https://files.pythonhosted.org/packages/fd/5e/9840102591431f86c2e99c5a8e4f18bb399f9f2e982b0dbba87c98ae800f/humanize-3.12.0-py3-none-any.whl
Collecting keras==2.2.4
  Using cached https://files.pythonhosted.org/packages/5e/10/aa32dad071ce52b5502266b5c659451cfd6ffcbf14e6c8c4f16c0ff5aaab/Keras-2.2.4-py2.py3-none-any.whl
Collecting keras-applications==1.0.8
  Using cached https://files.pythonhosted.org/packages/71/e3/19762fdfc62877ae9102edf6342d71b28fbfd9dea3d2f96a882ce099b03f/Keras_Applications-1.0.8-py3-none-any.whl
Collecting livereload
  Using cached https://files.pythonhosted.org/packages/bd/60/6640b819e858562ef6684abac60593b7369fe0a8a064df426d3ab0ab894d/livereload-2.6.3.tar.gz
Collecting matplotlib==3.1.3
  Using cached https://files.pythonhosted.org/packages/f5/1e/5cfcafca1ebe7b5fc08dcc2fe5efc7307e6970de0dd2999a7757311a7aec/matplotlib-3.1.3-cp37-cp37m-macosx_10_9_x86_64.whl
Collecting networkx
  Using cached https://files.pythonhosted.org/packages/e9/93/aa6613aa70d6eb4868e667068b5a11feca9645498fd31b954b6c4bb82fa5/networkx-2.6.3-py3-none-any.whl
Collecting pandas
  Using cached https://files.pythonhosted.org/packages/cb/4d/9df2841432757b45d5b9973d85c982d4984aa2baea7ff48a905baa5fc781/pandas-1.3.3-cp37-cp37m-macosx_10_9_x86_64.whl
Collecting pcpp==1.20.1
  Using cached https://files.pythonhosted.org/packages/33/7b/e8ca3707a86a21685214cbe8d7d77a71a2964dfef01c1fe9bbfad9ff6b39/pcpp-1.20.1-py2.py3-none-any.whl
Requirement already up-to-date: pygments in /private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/lib/python3.7/site-packages (from -r /Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/conda/condaenv.2e885f82.requirements.txt (line 16)) (2.10.0)
Collecting pystache
  Using cached https://files.pythonhosted.org/packages/d6/fd/eb8c212053addd941cc90baac307c00ac246ac3fce7166b86434c6eae963/pystache-0.5.4.tar.gz

failed
 (Pip subprocess error:
    ERROR: Command errored out with exit status 1:
     command: /private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/setup.py'"'"'; __file__='"'"'/private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/pip-egg-info
         cwd: /private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/
    Complete output (3 lines):
    pystache: using: version '58.2.0' of <module 'setuptools' from '/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/lib/python3.7/site-packages/setuptools/__init__.py'>
    Warning: 'classifiers' should be a list, got type 'tuple'
    error in pystache setup command: use_2to3 is invalid.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


CondaEnvException: Pip failed

Traceback (most recent call last):
  File "/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/bzl/conda_wrapper.py", line 225, in <module>
    main()
  File "/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/bzl/conda_wrapper.py", line 218, in main
    subprocess.check_call(['conda'] + sys.argv[1:])
  File "/Users/rpoepa/opt/anaconda3/envs/dl-tf2/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['conda', 'env', 'create', '-f', '/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/conda/unix.yml', '-p', '/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env']' returned non-zero exit status 1.
)
ERROR: Analysis of target '//plaidml:wheel' failed; build aborted: no such package '@com_intel_plaidml_conda_unix//': conda_repo failed: Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... Enabling notebook extension jupyter-js-widgets/extension...
      - Validating: OK

done
Installing pip dependencies: ...working... Ran pip subprocess with arguments:
['/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/bin/python', '-m', 'pip', 'install', '-U', '-r', '/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/conda/condaenv.2e885f82.requirements.txt']
Pip subprocess output:
Ignoring torch-nightly: markers 'platform_system == "Linux"' don't match your environment
Collecting asq
  Using cached https://files.pythonhosted.org/packages/26/1b/fa14c1101a40819652718701ad6b149dd009131d7b408efb1a834a688f4f/asq-1.3-py2.py3-none-any.whl
Collecting autodoc
  Using cached https://files.pythonhosted.org/packages/4e/c3/61f746096d2b6c161bd7f3bf8db1fe741b8805cbf0ac9369b4953c37de35/autodoc-0.5.0.tar.gz
Collecting bokeh
  Using cached https://files.pythonhosted.org/packages/26/96/3e56636664e497728b14738fea5e54297de1bc0f451b7206325a6453e73d/bokeh-2.4.1-py3-none-any.whl
Collecting breathe
  Using cached https://files.pythonhosted.org/packages/dd/3c/cf7386ab7c0b353a99265dd15081895f5efd79a4a2d02deae0d60c85d25b/breathe-4.31.0-py3-none-any.whl
Collecting click
  Using cached https://files.pythonhosted.org/packages/48/58/c8aa6a8e62cc75f39fee1092c45d6b6ba684122697d7ce7d53f64f98a129/click-8.0.3-py3-none-any.whl
Collecting defaultlist
  Using cached https://files.pythonhosted.org/packages/b2/e6/cf788a63ef0dcf7f352bfdd917dd51b1f59b51ff39b28b93a003e4d4ba4e/defaultlist-1.0.0.tar.gz
Collecting graphviz
  Using cached https://files.pythonhosted.org/packages/97/14/b5eeeb6d24dbca0ada857ce4a453985df34d9512464bb20cc1a8aca44c54/graphviz-0.17-py3-none-any.whl
Collecting humanize
  Using cached https://files.pythonhosted.org/packages/fd/5e/9840102591431f86c2e99c5a8e4f18bb399f9f2e982b0dbba87c98ae800f/humanize-3.12.0-py3-none-any.whl
Collecting keras==2.2.4
  Using cached https://files.pythonhosted.org/packages/5e/10/aa32dad071ce52b5502266b5c659451cfd6ffcbf14e6c8c4f16c0ff5aaab/Keras-2.2.4-py2.py3-none-any.whl
Collecting keras-applications==1.0.8
  Using cached https://files.pythonhosted.org/packages/71/e3/19762fdfc62877ae9102edf6342d71b28fbfd9dea3d2f96a882ce099b03f/Keras_Applications-1.0.8-py3-none-any.whl
Collecting livereload
  Using cached https://files.pythonhosted.org/packages/bd/60/6640b819e858562ef6684abac60593b7369fe0a8a064df426d3ab0ab894d/livereload-2.6.3.tar.gz
Collecting matplotlib==3.1.3
  Using cached https://files.pythonhosted.org/packages/f5/1e/5cfcafca1ebe7b5fc08dcc2fe5efc7307e6970de0dd2999a7757311a7aec/matplotlib-3.1.3-cp37-cp37m-macosx_10_9_x86_64.whl
Collecting networkx
  Using cached https://files.pythonhosted.org/packages/e9/93/aa6613aa70d6eb4868e667068b5a11feca9645498fd31b954b6c4bb82fa5/networkx-2.6.3-py3-none-any.whl
Collecting pandas
  Using cached https://files.pythonhosted.org/packages/cb/4d/9df2841432757b45d5b9973d85c982d4984aa2baea7ff48a905baa5fc781/pandas-1.3.3-cp37-cp37m-macosx_10_9_x86_64.whl
Collecting pcpp==1.20.1
  Using cached https://files.pythonhosted.org/packages/33/7b/e8ca3707a86a21685214cbe8d7d77a71a2964dfef01c1fe9bbfad9ff6b39/pcpp-1.20.1-py2.py3-none-any.whl
Requirement already up-to-date: pygments in /private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/lib/python3.7/site-packages (from -r /Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/conda/condaenv.2e885f82.requirements.txt (line 16)) (2.10.0)
Collecting pystache
  Using cached https://files.pythonhosted.org/packages/d6/fd/eb8c212053addd941cc90baac307c00ac246ac3fce7166b86434c6eae963/pystache-0.5.4.tar.gz

failed
 (Pip subprocess error:
    ERROR: Command errored out with exit status 1:
     command: /private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/setup.py'"'"'; __file__='"'"'/private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/pip-egg-info
         cwd: /private/var/folders/dz/p7vwr87j4yg47b6nrkry4ww00000gn/T/pip-install-3x9e1iqq/pystache/
    Complete output (3 lines):
    pystache: using: version '58.2.0' of <module 'setuptools' from '/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env/lib/python3.7/site-packages/setuptools/__init__.py'>
    Warning: 'classifiers' should be a list, got type 'tuple'
    error in pystache setup command: use_2to3 is invalid.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


CondaEnvException: Pip failed

Traceback (most recent call last):
  File "/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/bzl/conda_wrapper.py", line 225, in <module>
    main()
  File "/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/bzl/conda_wrapper.py", line 218, in main
    subprocess.check_call(['conda'] + sys.argv[1:])
  File "/Users/rpoepa/opt/anaconda3/envs/dl-tf2/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['conda', 'env', 'create', '-f', '/Users/rpoepa/opt/anaconda3/envs/dl-tf2/src/plaidml-master/conda/unix.yml', '-p', '/private/var/tmp/_bazel_rpoepa/fad1b61d3201ac45b9bbed1789e4f56f/external/com_intel_plaidml_conda_unix/env']' returned non-zero exit status 1.
)
INFO: Elapsed time: 340.511s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (8 packages loaded, 9 targets conf\
igured)
4

0 回答 0