cookiecutter-django-rest
cookiecutter-django-rest copied to clipboard
dependencies fail due to nose-progressive==1.5.2
What's going wrong?
When installing from requirements.txt, there is a failure due to nose-progressive==1.5.2
Collecting nose-progressive==1.5.2
Downloading nose-progressive-1.5.2.tar.gz (32 kB)
ERROR: Command errored out with exit status 1:
command: /home/luke/.virtualenvs/sigpwned/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7zrz2bne/nose-progressive_08495a0460174ec291e627cff4288279/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7zrz2bne/nose-progressive_08495a0460174ec291e627cff4288279/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-es32ycct
cwd: /tmp/pip-install-7zrz2bne/nose-progressive_08495a0460174ec291e627cff4288279/
Complete output (1 lines):
error in nose-progressive setup command: use_2to3 is invalid.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/dc/bc/0f55ba957109922c31ef22444c899004b1221eacff030300de74ad0e04fb/nose-progressive-1.5.2.tar.gz#sha256=3a6e2833e613c1c239baf05a19f66b5920915e62c07251d3ab3f3acb017ef5d7 (from https://pypi.org/simple/nose-progressive/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement nose-progressive==1.5.2 (from versions: 0.1, 0.1.1, 0.1.2, 0.2, 0.3, 0.3.1, 0.4, 0.5, 0.5.1, 0.6, 0.6.1, 0.7, 1.0, 1.1, 1.1.1, 1.2, 1.2.1, 1.3, 1.4, 1.4.1, 1.4.2, 1.4.3, 1.5, 1.5.1, 1.5.2)
ERROR: No matching distribution found for nose-progressive==1.5.2
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
How can the cookiecutter-django-rest team reproduce the problem?
Attempt to install with setuptools>=58
2to3 is now deprecated and the back end API removed:
source:
https://docs.python.org/3/library/2to3.html#module-lib2to3 https://exerror.com/error-in-mongoengine-setup-command-use_2to3-is-invalid/
Is this a problem with a fresh install of the project?
- [ * ] Yes
- [ ] No
I just removed the package for now, as its only a test dependency
@lukehinds what version of python are you using?
You can see from the project's tests that this is working with python 3.8. https://github.com/agconti/cookiecutter-django-rest/runs/4190173876?check_suite_focus=true
@agconti Python 3.9.7
NAME=Fedora
VERSION="34 (Workstation Edition)"
ID=fedora
VERSION_ID=34
VERSION_CODENAME=""
PLATFORM_ID="platform:f34"
PRETTY_NAME="Fedora 34 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:34"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f34/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=34
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=34
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
Also on 3.9.15:
Ran into the nose-progressive issue, and a conflict between the Markdown and mkdocs version requirements:
ERROR: Cannot install -r brentlab_straindb/requirements.txt (line 24) and Markdown==3.4.1 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested Markdown==3.4.1
mkdocs 1.4.2 depends on markdown<3.4 and >=3.2.1
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
To address the nose-progressive issue, I installed setuptools == 57.5.0 per this site's recommendation. I opted for option 2 to fix the Markdown/mkdocs issue, which did do the trick.
The my pip freeze now looks like this:
asgiref==3.5.2
asttokens==2.2.1
backcall==0.2.0
blessings==1.7
boto3==1.26.23
botocore==1.29.25
click==8.1.3
coverage==6.5.0
decorator==5.1.1
dj-database-url==1.0.0
Django==4.1.4
django-configurations==2.4
django-filter==22.1
django-model-utils==4.3.1
django-nose==1.4.7
django-storages==1.13.1
django-unique-upload==0.2.1
djangorestframework==3.14.0
executing==1.2.0
factory-boy==3.2.1
Faker==15.3.4
flake8==6.0.0
ghp-import==2.1.0
gunicorn==20.1.0
importlib-metadata==5.1.0
ipdb==0.13.9
ipython==8.7.0
jedi==0.18.2
Jinja2==3.1.2
jmespath==1.0.1
Markdown==3.4.1
MarkupSafe==2.1.1
matplotlib-inline==0.1.6
mccabe==0.7.0
mergedeep==1.3.4
mkdocs==1.3.0
mock==4.0.3
newrelic==8.4.0
nose==1.3.7
nose-progressive==1.5.2
packaging==22.0
parso==0.8.3
pexpect==4.8.0
pickleshare==0.7.5
prompt-toolkit==3.0.36
psycopg2-binary==2.9.5
ptyprocess==0.7.0
pure-eval==0.2.2
pycodestyle==2.10.0
pyflakes==3.0.1
Pygments==2.13.0
python-dateutil==2.8.2
pytz==2022.6
PyYAML==6.0
pyyaml_env_tag==0.1
s3transfer==0.6.0
six==1.16.0
sqlparse==0.4.3
stack-data==0.6.2
toml==0.10.2
traitlets==5.6.0
urllib3==1.26.13
watchdog==2.2.0
wcwidth==0.2.5
zipp==3.11.0