首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >macOS上的frappe安装错误

macOS上的frappe安装错误
EN

Stack Overflow用户
提问于 2017-02-09 07:10:04
回答 1查看 1.5K关注 0票数 0

我是新的frappe-bencherpnext,我正按照https://github.com/frappe/bench的指示在我的Mac上安装它

这些是我在运行命令时遇到的错误

bench init frappe-bench && cd frappe-bench

代码语言:javascript
复制
wasifs-MacBook-Air-3:sites wasifkhalil$ bench init frappe-bench && cd frappe-bench
Already using interpreter /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
INFO:bench.app:getting app frappe
Cloning into 'frappe'...
remote: Counting objects: 2019, done.
remote: Compressing objects: 100% (1864/1864), done.
remote: Total 2019 (delta 276), reused 832 (delta 100), pack-reused 0
Receiving objects: 100% (2019/2019), 12.66 MiB | 1.37 MiB/s, done.
Resolving deltas: 100% (276/276), done.
installing frappe
INFO:bench.app:installing frappe
Command "/Users/wasifkhalil/sites/frappe-bench/env/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/9j/mk4mk3qj33zd0ys_6hsw9l6h0000gn/T/pip-build-smwpqq/mysql-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/9j/mk4mk3qj33zd0ys_6hsw9l6h0000gn/T/pip-InRsiA-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/wasifkhalil/sites/frappe-bench/env/bin/../include/site/python2.7/mysql-python" failed with error code 1 in /private/var/folders/9j/mk4mk3qj33zd0ys_6hsw9l6h0000gn/T/pip-build-smwpqq/mysql-python/
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/Users/wasifkhalil/sites/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/wasifkhalil/sites/bench-repo/bench/commands/make.py", line 19, in init
    verbose=verbose, clone_from=clone_from)
  File "/Users/wasifkhalil/sites/bench-repo/bench/utils.py", line 56, in init
    get_app(frappe_path, branch=frappe_branch, bench_path=path, build_asset_files=False, verbose=verbose)
  File "/Users/wasifkhalil/sites/bench-repo/bench/app.py", line 73, in get_app
    install_app(app=app_name, bench_path=bench_path, verbose=verbose)
  File "/Users/wasifkhalil/sites/bench-repo/bench/app.py", line 103, in install_app
    find_links=find_links))
  File "/Users/wasifkhalil/sites/bench-repo/bench/utils.py", line 127, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q  -e frappe-bench/apps/frappe

我最近安装了python,所以必须安装和更新setuptools,但是如果setuptools有问题,我如何检查和更新,如果不是,我应该做什么来修复它呢?

为了更容易理解,我还发了一张截图

EN

回答 1

Stack Overflow用户

发布于 2017-02-17 11:52:06

问题发生在mysql和mode.js中,您可能已经解决了这个问题,而且您可能正在使用新版本的frappe。

不过,这个答案可能会对一些新的问题有所帮助。

1.安装先决条件

  • Python 2.7
  • MariaDB 10+
  • Nginx (用于生产)
  • Nodejs
  • Redis
  • 具有修补Qt的wkhtmltopdf (用于pdf生成)

2.即时步骤

代码语言:javascript
复制
mkdir projectdir
cd projectdir
virtualenv .
git clone https://github.com/frappe/bench bench-repo
sudo pip install -e bench-repo
bench init frappe-bench && cd frappe-bench
bench get-app erpnext https://github.com/frappe/erpnext
bench new-site site1.local
bench --site site1.local install-app erpnext
bench start

有关更多信息,看这个

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42130353

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档