awesto / cookiecutter-django-shop

Cookiecutter django-SHOP is a blueprint for an e-commerce site based on django-CMS.
127 stars 55 forks source link

Cannot build with docker set to runserver #30

Open alecvn opened 4 years ago

alecvn commented 4 years ago

What happened?

I want to have the cookiecutter setup my project so that I run runserver via a docker container.

I ran the basic setup, but when choosing docker runserver option I received an error when running docker-compose up --build -d:

Pulling worker (project-slug:latest)...
ERROR: pull access denied for project-slug, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Where project-slug is the suggested project-slug for my app.

What should've happened instead?

Docker should've built images correctly.

Steps to reproduce

Basic steps, just use the docker runserver option instead of default which is n.

I am definitely logged into docker hub. Kubuntu 18.04 Docker version 19.03.6

finngl commented 4 years ago

I'm also having problems with the docker option 'runserver'. Last lines in stacktrace: File "c:\users\finn\appdata\local\programs\python\python38\lib\subprocess.py", line 512, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['pipenv', 'lock', '--requirements']' returned non-zero exit status 1. ERROR: Stopping generation because post_gen_project hook script didn't exit successfully

ali-nasir-ali commented 3 years ago

got the same problem , tried many diffenrt obtions in ubuntu with python 3.8 and debian with python 3.7

subprocess.CalledProcessError: Command '['pipenv', 'lock', '--requirements']' returned non-zero exit status 1. ERROR: Stopping generation because post_gen_project hook script didn't exit successfully Hook script failed (exit status: 1)

ay0000 commented 3 years ago

@anasir514 This is due to a dependency bug that's popped up in the last week. I'm not sure if anyone is even aware of it to be looking at it.

jrief commented 3 years ago

Isn't that more of a problem with dependencies management in pipenv?

ay0000 commented 3 years ago

It may be. If I'm being honest, I'm not sure. All I know if that I was able to perform fresh installs by following the instructions on the site without problems 2 weeks ago. It seems that I'm not the only one to be having this problem either.

https://github.com/awesto/django-shop/issues/846 [https://avatars.githubusercontent.com/u/16817610?s=400&v=4]https://github.com/awesto/django-shop/issues/846 Dependency conflict on Django Version! · Issue #846 · awesto/django-shophttps://github.com/awesto/django-shop/issues/846 What happened before? Before this, the Django-shop through Cookiecutter was going to install correctly without any dependency conflict! What happens now? But now, when we're going to install dj... github.com

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


From: Jacob Rief notifications@github.com Sent: February 15, 2021 5:41 PM To: awesto/cookiecutter-django-shop cookiecutter-django-shop@noreply.github.com Cc: Aarron Younan younana@uwindsor.ca; Comment comment@noreply.github.com Subject: Re: [awesto/cookiecutter-django-shop] Cannot build with docker set to runserver (#30)

Isn't that more of a problem with dependencies management in pipenv?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/awesto/cookiecutter-django-shop/issues/30#issuecomment-779478991, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHDNPSQ3WFQFNUTL34ILRC3S7GPJFANCNFSM4ML66XZA.

ay0000 commented 3 years ago

I’ve had some luck with manually generating the requirements.txt file however I’m almost certainly missing some as Docker is still having issues finding modules, specifically cms_bootstrap. It also seems to be looking in a python3.6 folder when I have 3.7 installed (required for psycopg2 < 2.8).

On Feb 16, 2021, at 1:38 AM, Aarron Younan younana@uwindsor.ca wrote:

 It may be. If I'm being honest, I'm not sure. All I know if that I was able to perform fresh installs by following the instructions on the site without problems 2 weeks ago. It seems that I'm not the only one to be having this problem either.

https://github.com/awesto/django-shop/issues/846

Dependency conflict on Django Version! · Issue #846 · awesto/django-shop What happened before? Before this, the Django-shop through Cookiecutter was going to install correctly without any dependency conflict! What happens now? But now, when we're going to install dj... github.com

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

From: Jacob Rief notifications@github.com Sent: February 15, 2021 5:41 PM To: awesto/cookiecutter-django-shop cookiecutter-django-shop@noreply.github.com Cc: Aarron Younan younana@uwindsor.ca; Comment comment@noreply.github.com Subject: Re: [awesto/cookiecutter-django-shop] Cannot build with docker set to runserver (#30)

Isn't that more of a problem with dependencies management in pipenv?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ay0000 commented 3 years ago

@anasir514 See here: https://github.com/awesto/cookiecutter-django-shop/issues/41#issuecomment-780184052