[英]TypeError: detect_vcs() missing 1 required positional argument: 'ui' when running `devpi upload --formats bdist_wheel`
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'
My versions are:我的版本是:
devpi-client==5.1.0
devpi-common==3.4.0
How can I solve this?我该如何解决这个问题? I tried upgrading/downgrading
devpi-client
to 4.4.0
and to 5.1.1
but it still gives me the same error.我尝试将
devpi-client
升级/降级到4.4.0
和5.1.1
,但它仍然给我同样的错误。
This is due to an incompatibility between the 2 packages check_manifest
and devpi
.这是由于 2 个包
check_manifest
和devpi
之间的不兼容。 Since check_manifest==0.42
, the detect_vcs
function takes a required argument ui
and devpi
does not give it in the version you have ( hasvcs = check_manifest.detect_vcs().metadata_name
)由于
check_manifest==0.42
, detect_vcs
function 需要一个必需的参数ui
并且devpi
在您拥有的版本中没有提供它( hasvcs = check_manifest.detect_vcs().metadata_name
)
There are 2 solutions to your problem:您的问题有两种解决方案:
Downgrade check_manifest
to 0.41
. check_manifest
降级为0.41
。
Upgrade devpi-client to a version >= 5.2.0.将 devpi-client 升级到 >= 5.2.0 的版本。 (since the fix has been introduced for
devpi-client==5.2.0
( https://github.com/devpi/devpi/commit/f40e0f51b610325d807367206cced90ed1fa005d ) (因为已经为
devpi-client==5.2.0
引入了修复程序( https://github.com/devpi/devpi/commit/f40e0f51b610325d807367206cced90ed1fa005d )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.