pip install -r `requirements.txt`
Collecting asgiref==3.4.1
Using cached asgiref-3.4.1-py3-none-any.whl (25 kB)
Collecting django==3.2.13
Using cached Django-3.2.13-py3-none-any.whl (7.9 MB)
Collecting django-admin-inline-paginator==0.3.0
Using cached django-admin-inline-paginator-0.3.0.tar.gz (7.4 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/rc/xpcnx4g944ndf9c6cxj4d2t40000gn/T/pip-install-5swp0uqi/django-admin-inline-paginator_10bc51bb78384473a30b3d4702a8aece/setup.py", line 7, in <module>
from django_admin_inline_paginator import __version__
File "/private/var/folders/rc/xpcnx4g944ndf9c6cxj4d2t40000gn/T/pip-install-5swp0uqi/django-admin-inline-paginator_10bc51bb78384473a30b3d4702a8aece/django_admin_inline_paginator/__init__.py", line 5, in <module>
if django.VERSION < (3, 2): # pragma: no cover
AttributeError: module 'django' has no attribute 'VERSION'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
make: *** [install] Error 1
Hi,
I'm facing an issue where pip fails to install
django-admin-inline-paginator
in hash-checking mode.Maybe you have an idea or a quick solution?
Minimal case to reproduce the issue:
With:
requirements.txt
:pip
output: