简体   繁体   English

类型错误:detect_vcs() 缺少 1 个必需的位置参数:运行 `devpi upload --formats bdist_wheel` 时的 'ui'

[英]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.05.1.1 ,但它仍然给我同样的错误。

This is due to an incompatibility between the 2 packages check_manifest and devpi .这是由于 2 个包check_manifestdevpi之间的不兼容。 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.42detect_vcs function 需要一个必需的参数ui并且devpi在您拥有的版本中没有提供它( hasvcs = check_manifest.detect_vcs().metadata_name

There are 2 solutions to your problem:您的问题有两种解决方案:

  1. Downgrade check_manifest to 0.41 . check_manifest降级为0.41

  2. 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.

相关问题 类型错误:Ui_MainWindow.on_click() 缺少 1 个必需的位置参数:&#39;pressed&#39; - TypeError: Ui_MainWindow.on_click() missing 1 required positional argument: 'pressed' `TypeError:当我将参数传递给它时缺少 1 个必需的位置参数`? - `TypeError: missing 1 required positional argument` when I am passing an argument into it? 重载方法时:“TypeError: Missing 1 required positional argument” - When overloading a method: "TypeError: Missing 1 required positional argument" TypeError:endturn()缺少1个必需的位置参数:&#39;self&#39; - TypeError: endturn() missing 1 required positional argument: 'self' TypeError:classify()缺少1个必需的位置参数:&#39;featureset&#39; - TypeError: classify() missing 1 required positional argument: 'featureset' TypeError: <lambda> ()缺少1个必需的位置参数: - TypeError: <lambda>() missing 1 required positional argument: “ TypeError:缺少1个必需的位置参数”实例错误 - “TypeError: missing 1 required positional argument” Instance error Pygame TypeError:缺少1个必需的位置参数: - Pygame TypeError: missing 1 required positional argument: Python中的TypeError-缺少1个必需的位置参数 - TypeError in python - missing 1 required positional argument TypeError:addQuiz()缺少1个必需的位置参数:“得分” - TypeError: addQuiz() missing 1 required positional argument: 'score'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM