TypeError: entry_points() got an unexpected keyword argument 'group'
See original GitHub issueYour Environment
Thank you for taking the time to report an issue.
To more efficiently resolve this issue, we’d like to know some basic information about your system and setup.
-
operating system: WIN10
-
Version of python:
python --version 3.8.5
-
How did you install twine? pip install twine
-
Version of twine you have installed (include complete output of):
twine --version 3.4.2
- Which package repository are you targeting? If you’re having issues uploading a specific package, you must include a copy of the following:
- The package’s
PKG-INFOfile:
Metadata-Version: 2.1 Name: pyvisafungen Version: 1.0 Summary: my library Home-page: https://github.com/users/niwotongzai/projects/1 Author: Kunpeng Wang Author-email: wangkunpeng@wipm.ac.cn License: MIT Licence Keywords: testing testautomation Platform: any Requires-Python: >=3.7.* License-File: LICENSE
My library
- A redacted version of your
.pypircfile (REMOVE ALL USERNAMES & PASSWORDS BEFORE UPLOADING) [distutils]
index-servers=pypi
[pypi]
repository = https://upload.pypi.org/legacy/
username =
password =
The Issue
When I try to upload a new version of my package that has been built successfully, it report the error:
Traceback (most recent call last):
File "C:\Anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Anaconda3\lib\site-packages\twine\__main__.py", line 53, in <module>
sys.exit(main())
File "C:\Anaconda3\lib\site-packages\twine\__main__.py", line 28, in main
result = cli.dispatch(sys.argv[1:])
File "C:\Anaconda3\lib\site-packages\twine\cli.py", line 43, in dispatch
registered_commands = entry_points(group="twine.registered_commands")
TypeError: entry_points() got an unexpected keyword argument 'group'
Steps to Reproduce
If the issue is predictable and consistently reproducible, please list the steps here.
python -m twine upload dist/mypackage-1.0.tar.gz python -m twine upload --repository mypackage dist/*
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Related StackOverflow Question
@bhrutledge Hi Brian, thank you!
python -m pip freezegives that importlib-metadata==4.6.0 andpython -c "import importlib_metadata; print(importlib_metadata.version('importlib-metadata'))"gives 2.0.0.It need to uninstall importlib-metadata twice as Ross do in #760 and then reinstall. Thanks again!
I also ran into the issue in a conda environment. The above fix worked for me too.