cokkiecutter django-shop 我正在接受 defaout 上的所有选项,并尝试运行需要 docker 和 debug 的 runserver 是

问题描述

I have tried this on:
ubuntu 20  on the local system and cloud settings
Debian buster (10) on google cloud VM

have also tried to answer different configuration but the docker is not starting and getting
the same error



this is the process I am going through:

$-- cookiecutter https://github.com/awesto/cookiecutter-django-shop
You've downloaded /home/user/.cookiecutters/cookiecutter-django-shop before. Is it 
okay to delete and re-download it? [yes]:
project_name [My SHOP]:
project_slug [my-shop]:
app_name [myshop]:
appName [MySHOP]:
description [Blueprint for an e-commerce site based on django-SHOP]:
author_name [John Doe]:
email [john@example.com]:
virtual_host [www.example.com]:
version [1.0.0]:
timezone [UTC]:
Select dockerize:
1 - n
2 - runserver
3 - uwsgi
4 - Nginx
Choose from 1,2,3,4 [1]: 2
use_i18n [y]: n
languages [de,en]: en
use_paypal [y]: n
use_stripe [y]: n
use_sendcloud [y]: n
printable_invoice [y]: n
Select delivery_handling:
1 - partial
2 - common
3 - n
Choose from 1,3 [1]: 3
Select products_model:
1 - polymorphic
2 - smartcard
3 - commodity
Choose from 1,3 [1]: 3
use_compressor [n]: y
use_elasticsearch [y]:
Select stock_management:
1 - simple
2 - inventory
3 - n
Choose from 1,3 [1]:
debug [y]:



the error I am getting:

''' subprocess.CalledProcessError: 命令 '['pipenv','lock','--requirements']' 返回 非零退出状态 1。 错误:停止生成,因为 post_gen_project 钩子脚本没有退出 成功地 挂钩脚本失败(退出状态:1) '''

the full error:

''' 回溯(最近一次调用最后一次): 文件“/tmp/tmpr_jap5mz.py”,第 229 行,在 主要的() 文件“/tmp/tmpr_jap5mz.py”,第 217 行,在主目录中 pipenv_to_requirements() 文件“/tmp/tmpr_jap5mz.py”,第 159 行,在 pipenv_to_requirements 中 ret = subprocess.check_output(['pipenv','--requirements']) 文件“/usr/lib/python3.7/subprocess.py”,第 395 行,在 check_output 中 **kwargs).stdout 运行中的文件“/usr/lib/python3.7/subprocess.py”,第 487 行 输出=标准输出,标准错误=标准错误) subprocess.CalledProcessError: 命令 '['pipenv','--requirements']' 返回非 零退出状态 1。 错误:停止生成,因为 post_gen_project 钩子脚本没有成功退出 挂钩脚本失败(退出状态:1) '''

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)