8000 Pipchecker fails on Python 3.11 with pip >= 22.1 · Issue #1778 · django-extensions/django-extensions · GitHub
[go: up one dir, main page]

Skip to content

Pipchecker fails on Python 3.11 with pip >= 22.1 #1778

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

Closed
foarsitter opened this issue Dec 12, 2022 · 0 comments · Fixed by #1906
Closed

Pipchecker fails on Python 3.11 with pip >= 22.1 #1778

foarsitter opened this issue Dec 12, 2022 · 0 comments · Fixed by #1906

Comments

@foarsitter
Copy link
Contributor

When running the tests with Python 3.11 and pip 22.1 or greater an AttributeError is thrown as shown below. It has something to do with https://pip.pypa.io/en/stable/news/#id64

AttributeError: 'PathDistribution' object has no attribute 'project_name'
/PycharmProjects/django-extensions/venv4/lib/python3.11/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
Traceback (most recent call last):
  File "/PycharmProjects/django-extensions/manage.py", line 13, in <module>
    execute_from_command_line(sys.argv)
  File "/PycharmProjects/django-extensions/venv4/lib/python3.11/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/PycharmProjects/django-extensions/venv4/lib/python3.11/site-packages/django/core/management/__init__.py", line 440, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/PycharmProjects/django-extensions/venv4/lib/python3.11/site-packages/django/core/management/base.py", line 402, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/PycharmProjects/django-extensions/venv4/lib/python3.11/site-packages/django/core/management/base.py", line 448, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/PycharmProjects/django-extensions/django_extensions/management/utils.py", line 62, in inner
    ret = func(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/PycharmProjects/django-extensions/django_extensions/management/commands/pipchecker.py", line 141, in handle
    self.check_pypi()
  File "/PycharmProjects/django-extensions/django_extensions/management/commands/pipchecker.py", line 167, in check_pypi
    name = dist.project_name
           ^^^^^^^^^^^^^^^^^
AttributeError: 'PathDistribution' object has no attribute 'project_name'
@foarsitter foarsitter changed the title Pipchcker fails on Python 3.11 with pip >= 22.1 Pipchecker fails on Python 3.11 with pip >= 22.1 Dec 12, 2022
This was referenced Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0