微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。