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

Cookiecutter build issue. Complains about dependency. #43

Open
ay0000 opened this issue Feb 15, 2021 · 9 comments
Open

Cookiecutter build issue. Complains about dependency. #43

ay0000 opened this issue Feb 15, 2021 · 9 comments

Comments

@ay0000
Copy link

ay0000 commented Feb 15, 2021

What happened?

I tried to install from the Cookiecutter using the instructions on the readthedocs and the install script fails.

There are incompatible versions in the resolved dependencies:
django>=3 (from -r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 4))
django<3.1,>=2.1 (from django-shop==1.2.4->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 8))
django<3.2,>=1.8 (from django-admin-sortable2==0.7.8->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 18))
django<4.0,>=2.2 (from django-filer==2.0.2->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 5))
django>=1.6 (from django-fsm-admin==1.2.4->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 29))
django>=1.8.0 (from django-rest-auth==0.9.5->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 19))
django>=2.0 (from django-allauth==0.44.0->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 37))
django>=2.1 (from django-angular==2.3->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 34))
django>=2.1 (from django-polymorphic==3.0.0->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 16))
django>=2.2 (from django-cms==3.8.0->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 24))
django>=2.2 (from django-filter==2.4.0->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 21))
django>=2.2 (from django-phonenumber-field==5.0.0->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 20))
django>=2.2 (from django-post-office==3.5.3->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 15))
django>=2.2 (from django-select2==7.6.1->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 17))
django>=2.2 (from djangorestframework==3.12.2->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 26))
django>=3.1 (from djangocms-cascade==2.0->-r /var/folders/29/40q6jzf10mn1jnz1lx3f6x9h0000gn/T/pipenv3ds8_rnhrequirements/pipenv-bl4q4s2c-constraints.txt (line 11))

What should've happened instead?

It should have installed.

Steps to reproduce

cookiecutter https://github.com/awesto/cookiecutter-django-shop

Python 3.8, Django 3.0.12, Mac OS X 10.15.7
//: # (* Project generation options)
Dockerize 2-runserver
//: # (* Logs)
https://pastebin.com/AYPFJWZa

@robertoassuncaofilho
Copy link

django-shop and djangocms-cascade requirements are conflicting:
There are incompatible versions in the resolved dependencies:
django>=3 (from -r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 29))
django<3.1,>=2.1 (from django-shop==1.2.4->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 15))
django<3.2,>=1.8 (from django-admin-sortable2==0.7.8->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 31))
django<4.0,>=2.2 (from django-filer==2.0.2->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 32))
django>=1.6 (from django-fsm-admin==1.2.4->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 30))
django>=1.8.0 (from django-rest-auth==0.9.5->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 16))
django>=2.0 (from django-allauth==0.44.0->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 33))
django>=2.1 (from django-angular==2.3->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 20))
django>=2.1 (from django-polymorphic==3.0.0->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 26))
django>=2.2 (from django-cms==3.8.0->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 8))
django>=2.2 (from django-filter==2.4.0->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 9))
django>=2.2 (from django-phonenumber-field==5.0.0->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 12))
django>=2.2 (from django-post-office==3.5.3->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 21))
django>=2.2 (from django-select2==7.6.1->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 17))
django>=2.2 (from djangorestframework==3.12.2->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 2))
django>=3.1 (from djangocms-cascade==2.0->-r /tmp/pipenvxrey4n7srequirements/pipenv-lwywcnx8-constraints.txt (line 10))

@ay0000
Copy link
Author

ay0000 commented Feb 24, 2021

Try this:

#41 (comment)

@Yesid9126
Copy link

#41 (comment) it works fine to be able to unload the cookiecutter but when executing "pipenv install --sequential" the dependency problem continues

@robertoassuncaofilho
Copy link

robertoassuncaofilho commented Feb 25, 2021

#41 (comment) it works fine to be able to unload the cookiecutter but when executing "pipenv install --sequential" the dependency problem continues

I had the same problem, but it worked using docker:
docker-compose up --build -d
If you use the default configuration, it will run at http://localhost:9009

@ay0000
Copy link
Author

ay0000 commented Feb 25, 2021

#41 (comment) it works fine to be able to unload the cookiecutter but when executing "pipenv install --sequential" the dependency problem continues

Try to run pip install -r requirements.txt instead of pipenv install --sequential.

All this step does is generate and install the dependencies that Django-shop requires. The latter method just generates the dependencies and installs them in one shot.

@jhonvidal
Copy link
Contributor

There is still no stable solution, we have to wait

execut added a commit to execut/cookiecutter-django-shop that referenced this issue Jun 22, 2021
execut added a commit to execut/cookiecutter-django-shop that referenced this issue Jul 12, 2021
@Turmer
Copy link

Turmer commented Jul 23, 2021

#41 Still no resolution or feasible workaround?
Ubuntu 16.04, Python 3.7.10, pipenv 2021.5.29, pip 21.1.3 .
Unfortunatey the suggested pipenv install --sequential --skip-lock fails too:

Installing dependencies from Pipfile...
An error occurred while installing django-allauth! Will try again.������������� 0/3 � 00:00:00
An error occurred while installing djangoshop-paypal>=1.2! Will try again.����������� 1/3 � 00:00:03
An error occurred while installing paypalrestsdk<2! Will try again.�������������� 2/3 � 00:00:04
  �   �������������������������������� 3/3 � 00:00:41
Installing initially failed dependencies...
[InstallError]:   File "/home/eee/.local/lib/python3.7/site-packages/pipenv/cli/command.py", line 253, in install0:00:00
[InstallError]:       site_packages=state.site_packages
[InstallError]:   File "/home/eee/.local/lib/python3.7/site-packages/pipenv/core.py", line 2063, in do_install
[InstallError]:       keep_outdated=keep_outdated
[InstallError]:   File "/home/eee/.local/lib/python3.7/site-packages/pipenv/core.py", line 1312, in do_init
[InstallError]:       pypi_mirror=pypi_mirror,
[InstallError]:   File "/home/eee/.local/lib/python3.7/site-packages/pipenv/core.py", line 900, in do_install_dependencies
[InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[InstallError]:   File "/home/eee/.local/lib/python3.7/site-packages/pipenv/core.py", line 796, in batch_install
[InstallError]:       _cleanup_procs(procs, failed_deps_queue, retry=retry)
[InstallError]:   File "/home/eee/.local/lib/python3.7/site-packages/pipenv/core.py", line 703, in _cleanup_procs
[InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: Looking in indexes: https://pypi.python.org/simple
[pipenv.exceptions.InstallError]: Collecting django-allauth
[pipenv.exceptions.InstallError]:   Using cached django_allauth-0.45.0-py3-none-any.whl
[pipenv.exceptions.InstallError]: Requirement already satisfied: requests in /home/eee/.local/share/virtualenvs/my-shop-WPm9ovlO/lib/python3.7/site-packages (from django-allauth->-r /tmp/pipenv-aw4jg5cx-requirements/pipenv-r_kdg93g-requirement.txt (line 1)) (2.26.0)
[pipenv.exceptions.InstallError]: Collecting requests-oauthlib>=0.3.0
[pipenv.exceptions.InstallError]:   Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
[pipenv.exceptions.InstallError]: Collecting pyjwt[crypto]>=1.7
[pipenv.exceptions.InstallError]:   Using cached PyJWT-2.1.0-py3-none-any.whl (16 kB)
[pipenv.exceptions.InstallError]: Requirement already satisfied: Django>=2.0 in /home/eee/.local/share/virtualenvs/my-shop-WPm9ovlO/lib/python3.7/site-packages (from django-allauth->-r /tmp/pipenv-aw4jg5cx-requirements/pipenv-r_kdg93g-requirement.txt (line 1)) (3.2.5)
[pipenv.exceptions.InstallError]: Collecting python3-openid>=3.0.8
[pipenv.exceptions.InstallError]:   Using cached python3_openid-3.2.0-py3-none-any.whl (133 kB)
[pipenv.exceptions.InstallError]: ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/home/eee/.local/share/virtualenvs/my-shop-WPm9ovlO/lib/python3.7/site-packages/Django-3.2.5.dist-info/METADATA'
ERROR: Couldn't install package: django-allauth
 Package installation failed...

Any further suggestions or insights would be much appreciated!

@larmc20
Copy link

larmc20 commented May 11, 2022

ipenv install --sequential --skip-lock

Same problem when installing django-allauth in ubuntu 20.04, pipenv, python 3.10.4

@Turmer
Copy link

Turmer commented May 11, 2022

Here is a workaround:
#41 (comment)

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

No branches or pull requests

6 participants