tqdm._tqdm.TqdmKeyError: "Unknown argument(s): {'unit_divisor': 1024}"
tqdm._tqdm.TqdmKeyError: "Unknown argument(s): {'unit_divisor': 1024}"
我正在尝试通过 twine
将我的图书馆上传到 Pypi
,但我收到一些与 tqdm
相关的错误。谁能帮帮忙
命令是twine upload dist/*
twine version 1.13.0
python version 3.6
错误:
TqdmKeyError("Unknown argument(s): " + str(kwargs)))
tqdm._tqdm.TqdmKeyError: "Unknown argument(s): {'unit_divisor': 1024}"
完整追溯:
Traceback (most recent call last):
File "/home/pai/.local/bin/twine", line 11, in <module>
sys.exit(main())
File "/home/pai/.local/lib/python3.6/site-packages/twine/__main__.py", line 28, in main
return dispatch(sys.argv[1:])
File "/home/pai/.local/lib/python3.6/site-packages/twine/cli.py", line 77, in dispatch
return main(args.args)
File "/home/pai/.local/lib/python3.6/site-packages/twine/commands/upload.py", line 127, in main
return upload(upload_settings, args.dists)
File "/home/pai/.local/lib/python3.6/site-packages/twine/commands/upload.py", line 88, in upload
resp = repository.upload(package)
File "/home/pai/.local/lib/python3.6/site-packages/twine/repository.py", line 163, in upload
resp = self._upload(package)
File "/home/pai/.local/lib/python3.6/site-packages/twine/repository.py", line 146, in _upload
disable=self.disable_progress_bar) as bar:
File "/home/pai/anaconda3/lib/python3.6/site-packages/tqdm/_tqdm.py", line 662, in __init__
TqdmKeyError("Unknown argument(s): " + str(kwargs)))
tqdm._tqdm.TqdmKeyError: "Unknown argument(s): {'unit_divisor': 1024}"
更新:
错误是因为 tqdm
的旧版本。我有 tqdm==4.11.0
而 twine
需要 tqdm>=4.2.4
。通过安装最新版本问题得到解决
错误是由于 tqdm
的旧版本。 twine
需要 tqdm>=4.24.0
.
所以你可以安装最新版本的tqdm
来解决这个问题(按照今天是4.39.0)
pip install twine==4.39.0
我正在尝试通过 twine
将我的图书馆上传到 Pypi
,但我收到一些与 tqdm
相关的错误。谁能帮帮忙
命令是twine upload dist/*
twine version 1.13.0
python version 3.6
错误:
TqdmKeyError("Unknown argument(s): " + str(kwargs)))
tqdm._tqdm.TqdmKeyError: "Unknown argument(s): {'unit_divisor': 1024}"
完整追溯:
Traceback (most recent call last):
File "/home/pai/.local/bin/twine", line 11, in <module>
sys.exit(main())
File "/home/pai/.local/lib/python3.6/site-packages/twine/__main__.py", line 28, in main
return dispatch(sys.argv[1:])
File "/home/pai/.local/lib/python3.6/site-packages/twine/cli.py", line 77, in dispatch
return main(args.args)
File "/home/pai/.local/lib/python3.6/site-packages/twine/commands/upload.py", line 127, in main
return upload(upload_settings, args.dists)
File "/home/pai/.local/lib/python3.6/site-packages/twine/commands/upload.py", line 88, in upload
resp = repository.upload(package)
File "/home/pai/.local/lib/python3.6/site-packages/twine/repository.py", line 163, in upload
resp = self._upload(package)
File "/home/pai/.local/lib/python3.6/site-packages/twine/repository.py", line 146, in _upload
disable=self.disable_progress_bar) as bar:
File "/home/pai/anaconda3/lib/python3.6/site-packages/tqdm/_tqdm.py", line 662, in __init__
TqdmKeyError("Unknown argument(s): " + str(kwargs)))
tqdm._tqdm.TqdmKeyError: "Unknown argument(s): {'unit_divisor': 1024}"
更新:
错误是因为 tqdm
的旧版本。我有 tqdm==4.11.0
而 twine
需要 tqdm>=4.2.4
。通过安装最新版本问题得到解决
错误是由于 tqdm
的旧版本。 twine
需要 tqdm>=4.24.0
.
所以你可以安装最新版本的tqdm
来解决这个问题(按照今天是4.39.0)
pip install twine==4.39.0