TypeError: entry_points() got an unexpected keyword argument 'group'

See original GitHub issue

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

  1. operating system: WIN10

  2. Version of python:

python --version 3.8.5
  1. How did you install twine? pip install twine

  2. Version of twine you have installed (include complete output of):

twine --version 3.4.2
  1. 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-INFO file:

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 .pypirc file (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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
niwotongzaicommented, Jul 31, 2021

@bhrutledge Hi Brian, thank you! python -m pip freeze gives that importlib-metadata==4.6.0 and python -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!

0reactions
bpuchalacommented, Aug 7, 2021

I also ran into the issue in a conda environment. The above fix worked for me too.

It need to uninstall importlib-metadata twice as Ross do in #760 and then reinstall.

Read more comments on GitHub >

github_iconTop Results From Across the Web

entry_points() got an unexpected keyword argument 'group ...
This is a bug in Markdown 3.3.5. Please use constraint files to install Airflow—if you did, it would not have pulled in this...
Read more >
Unable to install requirements.txt. TypeError: entry_points ...
setup_keywords'): TypeError: entry_points() got an unexpected keyword argument 'group' [end of output] note: This error originates from a ...
Read more >
pytango: FTBFS: TypeError: entry_points() got an unexpected ...
Debian Bug report logs - #1009391 pytango: FTBFS: TypeError: entry_points() got an unexpected keyword argument 'group'. version graph. Package: ...
Read more >
Using importlib_metadata - importlib-metadata - Read the Docs
Each group contains a collection of EntryPoint objects. You can get the metadata for a distribution: >>> list(metadata ...
Read more >
entry_points() got an unexpected keyword argument 'group'
entry_points() got an unexpected keyword argument 'group'. 检查命令 twine check dist/* 时报错. Traceback (most recent call last): File "/root/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found