awesto / cookiecutter-django-shop

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

Update post_gen_project.py #57

Open stealth-d opened 7 months ago

stealth-d commented 7 months ago

fixing this:

Usage: pipenv lock [OPTIONS] Try 'pipenv lock -h' for help.

Error: No such option: --requirements Did you mean --quiet? Traceback (most recent call last): File "/var/folders/g1/_3sb90lj3v9d_p0m2k_439j80000gn/T/tmpbx0m76uw.py", line 229, in main() File "/var/folders/g1/_3sb90lj3v9d_p0m2k_439j80000gn/T/tmpbx0m76uw.py", line 217, in main pipenv_to_requirements() File "/var/folders/g1/_3sb90lj3v9d_p0m2k_439j80000gn/T/tmpbx0m76uw.py", line 159, in pipenv_to_requirements ret = subprocess.check_output(['pipenv', 'lock', '--requirements']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/python@3.11/3.11.6/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 466, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/python@3.11/3.11.6/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['pipenv', 'lock', '--requirements']' returned non-zero exit status 2. ERROR: Stopping generation because post_gen_project hook script didn't exit successfully Hook script failed (exit status: 1)

Description

Rationale

Use case(s) / visualization(s)