0
username@machinename:~/$ devpi upload --formats bdist_wheel
Traceback (most recent call last):
  File "/opt/python3.6/bin/devpi", line 11, in <module>
    sys.exit(main())
  File "/opt/python3.6/lib/python3.6/site-packages/devpi/main.py", line 32, in main
    return method(hub, hub.args)
  File "/opt/python3.6/lib/python3.6/site-packages/devpi/upload.py", line 33, in main
    setupdir_only=setupcfg.get("setupdir-only"))
  File "/opt/python3.6/lib/python3.6/site-packages/devpi/upload.py", line 281, in __init__
    hasvcs = check_manifest.detect_vcs().metadata_name
TypeError: detect_vcs() missing 1 required positional argument: 'ui'

我的版本是:

devpi-client==5.1.0
devpi-common==3.4.0

我该如何解决这个问题?我尝试升级/降级devpi-client4.4.0和到,5.1.1但它仍然给我同样的错误。

4

1 回答 1

1

这是由于 2 个软件包check_manifestdevpi. 因为check_manifest==0.42,该detect_vcs函数需要一个必需的参数ui,并且devpi在您拥有的版本中没有提供它(hasvcs = check_manifest.detect_vcs().metadata_name

这个问题有2个解决方案:

  1. 降级check_manifest0.41.

  2. 将 devpi-client 升级到 >= 5.2.0 的版本。(因为已经为devpi-client==5.2.0https://github.com/devpi/devpi/commit/f40e0f51b610325d807367206cced90ed1fa005d)引入了修复程序

于 2021-02-22T11:15:58.853 回答