Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Twine, TypeError: entry_points() got an unexpected keyword argument 'group' #331

Closed
jaraco opened this issue Jul 16, 2021 · 3 comments
Closed
Labels
question Further information is requested

Comments

@jaraco
Copy link
Member

jaraco commented Jul 16, 2021

I am not sure if this is relevant here, I get this error, "TypeError: entry_points() got an unexpected keyword argument 'group'"
for twine upload dict*/ . Is it still an issue or is there a solution now?

Originally posted by @vishwesh-vishwesh in #284 (comment)

@jaraco
Copy link
Member Author

jaraco commented Jul 16, 2021

Hi @vishwesh-vishwesh, the error message you're reporting seems to indicate that twine is calling importlib_metadata.entry_points or maybe importlib.metadata.entry_points with a group= parameter, but the version of entry_points doesn't yet support that parameter. That almost certainly means you have a broken install of twine, as twine does declare the proper versions of importlib_metadata to implement the calls it makes. Perhaps after installing twine, you later installed something else that invalidated twine's install? In any case, upgrading pip and then reinstalling twine should fix your issue. If it doesn't, feel free to file an issue with twine (and feel free to tag me on it) and describe the conditions that lead to the error such that someone could replicate the issue. There are no known issues with the importlib_metadata implementations. Happy debugging.

@jeffchuber
Copy link

As an FYI, with 4.11.2 this same issue with twine:3.8.0 came up for me. I pinned the version to 4.8.0 and it worked fine.

@jaraco
Copy link
Member Author

jaraco commented Mar 2, 2022

I'm unable to replicate the reported issue:

~ $ cd draft
draft $ pip-run twine==3.8.0 -- -m twine --help
Collecting twine==3.8.0
  Downloading twine-3.8.0-py3-none-any.whl (36 kB)
Collecting colorama>=0.4.3
  Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting urllib3>=1.26.0
  Downloading urllib3-1.26.8-py2.py3-none-any.whl (138 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 138.7/138.7 KB 2.8 MB/s eta 0:00:00
Collecting readme-renderer>=21.0
  Downloading readme_renderer-32.0-py3-none-any.whl (16 kB)
Collecting requests-toolbelt!=0.9.0,>=0.8.0
  Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.3/54.3 KB 1.7 MB/s eta 0:00:00
Collecting importlib-metadata>=3.6
  Using cached importlib_metadata-4.11.2-py3-none-any.whl (17 kB)
Collecting requests>=2.20
  Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.1/63.1 KB 2.2 MB/s eta 0:00:00
Collecting rfc3986>=1.4.0
  Downloading rfc3986-2.0.0-py2.py3-none-any.whl (31 kB)
Collecting pkginfo>=1.8.1
  Downloading pkginfo-1.8.2-py2.py3-none-any.whl (26 kB)
Collecting tqdm>=4.14
  Downloading tqdm-4.63.0-py2.py3-none-any.whl (76 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 76.6/76.6 KB 2.7 MB/s eta 0:00:00
Collecting keyring>=15.1
  Using cached keyring-23.5.0-py3-none-any.whl (33 kB)
Collecting zipp>=0.5
  Using cached zipp-3.7.0-py3-none-any.whl (5.3 kB)
Collecting Pygments>=2.5.1
  Downloading Pygments-2.11.2-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 14.8 MB/s eta 0:00:00
Collecting docutils>=0.13.1
  Using cached docutils-0.18.1-py2.py3-none-any.whl (570 kB)
Collecting bleach>=2.1.0
  Downloading bleach-4.1.0-py2.py3-none-any.whl (157 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.9/157.9 KB 6.7 MB/s eta 0:00:00
Collecting idna<4,>=2.5
  Downloading idna-3.3-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 KB 2.4 MB/s eta 0:00:00
Collecting charset-normalizer~=2.0.0
  Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting certifi>=2017.4.17
  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.2/149.2 KB 6.5 MB/s eta 0:00:00
Collecting packaging
  Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting six>=1.9.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting webencodings
  Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
  Using cached pyparsing-3.0.7-py3-none-any.whl (98 kB)
Installing collected packages: webencodings, pkginfo, certifi, zipp, urllib3, tqdm, six, rfc3986, pyparsing, Pygments, idna, docutils, colorama, charset-normalizer, requests, packaging, importlib-metadata, requests-toolbelt, keyring, bleach, readme-renderer, twine
Successfully installed Pygments-2.11.2 bleach-4.1.0 certifi-2021.10.8 charset-normalizer-2.0.12 colorama-0.4.4 docutils-0.18.1 idna-3.3 importlib-metadata-4.11.2 keyring-23.5.0 packaging-21.3 pkginfo-1.8.2 pyparsing-3.0.7 readme-renderer-32.0 requests-2.27.1 requests-toolbelt-0.9.1 rfc3986-2.0.0 six-1.16.0 tqdm-4.63.0 twine-3.8.0 urllib3-1.26.8 webencodings-0.5.1 zipp-3.7.0
usage: twine [-h] [--version] [--no-color] {upload,register,check}

positional arguments:
  {upload,register,check}

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --no-color            disable colored output

If you can replicate the issue, please provide repro steps in a new bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants