Hello dear all, I am trying to install Frappe and ErpNext on Mac OS from this link: Setting up a Mac for Frappe ERPNext Development but when I ran this command line on the terminal :
bench init frappe-bench --python /usr/local/bin/python3
I am encountering the following outcome and I have no clue why this happened. your help and thoughts would really be appreciated.
and the code of the screenshot:
(bench-env) ➜ development bench init frappe-bench --python /usr/local/bin/python3
WARN: Command not being executed in bench directory
$ /Users/ismailahmadi/Development/bench-env/bin/virtualenv -q env -p /usr/local/bin/python3
$ ./env/bin/pip install -q -U -e frappe-bench/apps/frappe
ERROR: frappe-bench/apps/frappe is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with svn+, git+, hg+, or bzr+).
INFO:bench.app:Getting app frappe
$ git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --depth 1 --origin upstream
Cloning into ‘frappe’…
remote: Enumerating objects: 2906, done.
remote: Counting objects: 100% (2906/2906), done.
remote: Compressing objects: 100% (2716/2716), done.
remote: Total 2906 (delta 385), reused 1019 (delta 122), pack-reused 0
Receiving objects: 100% (2906/2906), 11.94 MiB | 749.00 KiB/s, done.
Resolving deltas: 100% (385/385), done.
Updating files: 100% (2788/2788), done.
INFO:bench.app:installing frappe
$ frappe-bench/env/bin/pip install -q -U -e frappe-bench/apps/frappe
WARNING: The script pybabel is installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script chardetect is installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts coverage, coverage-3.7 and coverage3 are installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script faker is installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts futurize and pasteurize are installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts pyrsa-decrypt, pyrsa-encrypt, pyrsa-keygen, pyrsa-priv2pub, pyrsa-sign and pyrsa-verify are installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script google-oauthlib-tool is installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts gunicorn and gunicorn_paster are installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script html2text is installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script pygmentize is installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts iptest, iptest3, ipython and ipython3 are installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script ndg_httpclient is installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts csscapture, csscombine and cssparse are installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script pyjwt is installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts rq, rqinfo and rqworker are installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script sqlformat is installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script watchmedo is installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script zxcvbn is installed in ‘/Users/ismailahmadi/Development/frappe-bench/env/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Updating node packages…
$ yarn install
yarn install v1.22.4
[1/4] Resolving packages…
[2/4] Fetching packages…
[3/4] Linking dependencies…
warning " > bootstrap@4.4.1" has unmet peer dependency “jquery@1.9.1 - 3”.
warning " > bootstrap@4.4.1" has unmet peer dependency “popper.js@^1.16.0”.
[4/4] Building fresh packages…
$ yarn run snyk-protect
yarn run v1.22.4
$ snyk protect
Successfully applied Snyk patchesDone in 13.97s.
Done in 171.59s.
$ bench build
WARN: bench is installed in editable mode!This is not the recommended mode of installation for production. Instead, install the package from PyPI with:
pip install frappe-bench
/usr/local/Cellar/python/3.7.7/bin/python3.7: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)
Traceback (most recent call last):
File “/Users/ismailahmadi/Development/bench-env/bin/bench”, line 11, in
load_entry_point(‘frappe-bench’, ‘console_scripts’, ‘bench’)()
File “/Users/ismailahmadi/Development/bench-repo/bench/cli.py”, line 45, in cli
if sys.argv[1] in get_frappe_commands() + [“–site”, “–verbose”, “–force”, “–profile”]:
TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘list’
INFO:bench.utils:setting up backups
SUCCESS: Bench frappe-bench initialized
and later when I ran “bench start”, it did not work and it terminated itself.
(bench-env) ➜ frappe-bench bench start
/usr/local/Cellar/python/3.7.7/bin/python3.7: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)21:28:01 system | redis_cache.1 started (pid=83776)
21:28:01 system | redis_socketio.1 started (pid=83778)
21:28:01 system | redis_queue.1 started (pid=83780)
21:28:01 system | web.1 started (pid=83782)
21:28:01 system | socketio.1 started (pid=83783)
21:28:01 system | watch.1 started (pid=83785)
21:28:01 system | schedule.1 started (pid=83787)
21:28:01 redis_cache.1 | 83776:C 23 Jun 2020 21:28:01.625 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
21:28:01 redis_cache.1 | 83776:C 23 Jun 2020 21:28:01.626 # Redis version=5.0.8, bits=64, commit=00000000, modified=0, pid=83776, just started
21:28:01 redis_cache.1 | 83776:C 23 Jun 2020 21:28:100: 1.626 # Configuration loaded
21:28:01 system | worker_short.1 started (pid=83789)
21:28:01 system | worker_long.1 started (pid=83790)
21:28:01 redis_socketio.1 | 83778:C 23 Jun 2020 21:28:01.631 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
21:28:01 redis_socketio.1 | 83778:C 23 Jun 2020 21:28:01.631 # Redis version=5.0.8, bits=64, commit=00000000, modified=0, pid=83778, just started
21:28:01 redis_socketio.1 | 83778:C 23 Jun 2020 21:28:01.631 # Configuration loaded
21:28:01 redis_queue.1 | 83780:C 23 Jun 2020 21:28:01.632 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
21:28:01 redis_queue.1 | 83780:C 23 Jun 2020 21:28:01.632 # Redis version=5.0.8, bits=64, commit=00000000, modified=0, pid=83780, just started
21:28:01 redis_queue.1 | 83780:C 23 Jun 2020 21:28:01.632 # Configuration loaded
21:28:01 redis_cache.1 | 83776:M 23 Jun 2020 21:28:01.633 * Running mode=standalone, port=13000.
21:28:01 redis_cache.1 | 83776:M 23 Jun 2020 21:28:01.633 # Server initialized
21:28:01 redis_cache.1 | 83776:M 23 Jun 2020 21:28:01.633 * Ready to accept connections
21:28:01 system | worker_default.1 started (pid=83791)
21:28:01 redis_socketio.1 | 83778:M 23 Jun 2020 21:28:01.638 * Running mode=standalone, port=12000.
21:28:01 redis_socketio.1 | 83778:M 23 Jun 2020 21:28:01.638 # Server initialized
21:28:01 redis_socketio.1 | 83778:M 23 Jun 2020 21:28:01.639 * Ready to accept connections
21:28:01 redis_queue.1 | 83780:M 23 Jun 2020 21:28:01.639 * Running mode=standalone, port=11000.
21:28:01 redis_queue.1 | 83780:M 23 Jun 2020 21:28:01.639 # Server initialized
21:28:01 redis_queue.1 | 83780:M 23 Jun 2020 21:28:01.640 * Ready to accept connections
21:28:02 socketio.1 | listening on *: 9000
21:28:02 schedule.1 | WARN: bench is installed in editable mode!
21:28:02 schedule.1 |
21:28:02 schedule.1 | This is not the recommended mode of installation for production. Instead, install the package from PyPI with:pip install frappe-bench
21:28:02 schedule.1 |
21:28:02 watch.1 | WARN: bench is installed in editable mode!
21:28:02 watch.1 |
21:28:02 watch.1 | This is not the recommended mode of installation for production. Instead, install the package from PyPI with:pip install frappe-bench
21:28:02 watch.1 |
21:28:02 web.1 | WARN: bench is installed in editable mode!
21:28:02 web.1 |
21:28:02 web.1 | This is not the recommended mode of installation for production. Instead, install the package from PyPI with:pip install frappe-bench
21:28:02 web.1 |
21:28:02 worker_short.1 | WARN: bench is installed in editable mode!
21:28:02 worker_short.1 |
21:28:02 worker_short.1 | This is not the recommended mode of installation for production. Instead, install the package from PyPI with:pip install frappe-bench
21:28:02 worker_short.1 |
21:28:02 worker_long.1 | WARN: bench is installed in editable mode!
21:28:02 worker_default.1 | WARN: bench is installed in editable mode!
21:28:02 worker_long.1 |
21:28:02 worker_default.1 |
21:28:02 worker_long.1 | This is not the recommended mode of installation for production. Instead, install the package from PyPI with:pip install frappe-bench
21:28:02 worker_default.1 | This is not the recommended mode of installation for production. Instead, install the package from PyPI with:pip install frappe-bench
21:28:02 worker_default.1 |
21:28:02 worker_long.1 |
21:28:02 schedule.1 | /usr/local/Cellar/python/3.7.7/bin/python3.7: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)
21:28:02 schedule.1 |
21:28:02 watch.1 | /usr/local/Cellar/python/3.7.7/bin/python3.7: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)
21:28:02 schedule.1 | Traceback (most recent call last):
21:28:02 watch.1 |
21:28:02 schedule.1 | File “/Users/ismailahmadi/Development/bench-env/bin/bench”, line 11, in
21:28:02 watch.1 | Traceback (most recent call last):
21:28:02 schedule.1 | load_entry_point(‘frappe-bench’, ‘console_scripts’, ‘bench’)()
21:28:02 watch.1 | File “/Users/ismailahmadi/Development/bench-env/bin/bench”, line 11, in
21:28:02 schedule.1 | File “/Users/ismailahmadi/Development/bench-repo/bench/cli.py”, line 45, in cli
21:28:02 watch.1 | load_entry_point(‘frappe-bench’, ‘console_scripts’, ‘bench’)()
21:28:02 schedule.1 | if sys.argv[1] in get_frappe_commands() + [“–site”, “–verbose”, “–force”, “–profile”]:
21:28:02 watch.1 | File “/Users/ismailahmadi/Development/bench-repo/bench/cli.py”, line 45, in cli
21:28:02 schedule.1 | TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘list’
21:28:02 watch.1 | if sys.argv[1] in get_frappe_commands() + [“–site”, “–verbose”, “–force”, “–profile”]:
21:28:02 watch.1 | TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘list’
21:28:02 web.1 | /usr/local/Cellar/python/3.7.7/bin/python3.7: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)
21:28:02 web.1 |
21:28:02 web.1 | Traceback (most recent call last):
21:28:02 web.1 | File “/Users/ismailahmadi/Development/bench-env/bin/bench”, line 11, in
21:28:02 web.1 | load_entry_point(‘frappe-bench’, ‘console_scripts’, ‘bench’)()
21:28:02 web.1 | File “/Users/ismailahmadi/Development/bench-repo/bench/cli.py”, line 45, in cli
21:28:02 web.1 | if sys.argv[1] in get_frappe_commands() + [“–site”, “–verbose”, “–force”, “–profile”]:
21:28:02 web.1 | TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘list’
21:28:02 worker_short.1 | /usr/local/Cellar/python/3.7.7/bin/python3.7: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)
21:28:02 worker_short.1 |
21:28:02 worker_short.1 | Traceback (most recent call last):
21:28:02 worker_short.1 | File “/Users/ismailahmadi/Development/bench-env/bin/bench”, line 11, in
21:28:02 worker_short.1 | load_entry_point(‘frappe-bench’, ‘console_scripts’, ‘bench’)()
21:28:02 worker_short.1 | File “/Users/ismailahmadi/Development/bench-repo/bench/cli.py”, line 45, in cli
21:28:02 worker_short.1 | if sys.argv[1] in get_frappe_commands() + [“–site”, “–verbose”, “–force”, “–profile”]:
21:28:02 worker_short.1 | TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘list’
21:28:02 worker_long.1 | /usr/local/Cellar/python/3.7.7/bin/python3.7: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)
21:28:02 worker_default.1 | /usr/local/Cellar/python/3.7.7/bin/python3.7: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)
21:28:02 worker_long.1 |
21:28:02 worker_long.1 | Traceback (most recent call last):
21:28:02 worker_long.1 | File “/Users/ismailahmadi/Development/bench-env/bin/bench”, line 11, in
21:28:02 worker_default.1 |
21:28:02 worker_long.1 | load_entry_point(‘frappe-bench’, ‘console_scripts’, ‘bench’)()
21:28:02 worker_default.1 | Traceback (most recent call last):
21:28:02 worker_long.1 | File “/Users/ismailahmadi/Development/bench-repo/bench/cli.py”, line 45, in cli
21:28:02 worker_long.1 | if sys.argv[1] in get_frappe_commands() + [“–site”, “–verbose”, “–force”, “–profile”]:
21:28:02 worker_default.1 | File “/Users/ismailahmadi/Development/bench-env/bin/bench”, line 11, in
21:28:02 worker_long.1 | TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘list’
21:28:02 worker_default.1 | load_entry_point(‘frappe-bench’, ‘console_scripts’, ‘bench’)()
21:28:02 worker_default.1 | File “/Users/ismailahmadi/Development/bench-repo/bench/cli.py”, line 45, in cli
21:28:02 worker_default.1 | if sys.argv[1] in get_frappe_commands() + [“–site”, “–verbose”, “–force”, “–profile”]:
21:28:02 worker_default.1 | TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘list’
21:28:02 system | watch.1 stopped (rc=1)
21:28:02 system | sending SIGTERM to redis_cache.1 (pid 83776)
21:28:02 system | sending SIGTERM to redis_socketio.1 (pid 83778)
21:28:02 system | sending SIGTERM to redis_queue.1 (pid 83780)
21:28:02 system | sending SIGTERM to web.1 (pid 83782)
21:28:02 system | sending SIGTERM to socketio.1 (pid 83783)
21:28:02 system | sending SIGTERM to schedule.1 (pid 83787)
21:28:02 system | sending SIGTERM to worker_short.1 (pid 83789)
21:28:02 system | sending SIGTERM to worker_long.1 (pid 83790)
21:28:02 system | sending SIGTERM to worker_default.1 (pid 83791)
21:28:02 redis_queue.1 | 83780:signal-handler (1592922482) Received SIGTERM scheduling shutdown…
21:28:02 redis_socketio.1 | 83778:signal-handler (1592922482) Received SIGTERM scheduling shutdown…
21:28:02 redis_cache.1 | 83776:signal-handler (1592922482) Received SIGTERM scheduling shutdown…
21:28:02 system | schedule.1 stopped (rc=1)
21:28:02 system | socketio.1 stopped (rc=-15)
21:28:02 system | worker_long.1 stopped (rc=-15)
21:28:02 system | worker_default.1 stopped (rc=-15)
21:28:02 system | web.1 stopped (rc=-15)
21:28:02 system | worker_short.1 stopped (rc=-15)
21:28:02 redis_cache.1 | 83776:M 23 Jun 2020 21:28:02.863 # User requested shutdown…
21:28:02 redis_cache.1 | 83776:M 23 Jun 2020 21:28:02.863 * Removing the pid file.
21:28:02 redis_cache.1 | 83776:M 23 Jun 2020 21:28:02.863 # Redis is now ready to exit, bye bye…
21:28:02 system | redis_cache.1 stopped (rc=0)
21:28:02 redis_queue.1 | 83780:M 23 Jun 2020 21:28:02.866 # User requested shutdown…
21:28:02 redis_queue.1 | 83780:M 23 Jun 2020 21:28:02.866 * Removing the pid file.
21:28:02 redis_queue.1 | 83780:M 23 Jun 2020 21:28:02.866 # Redis is now ready to exit, bye bye…
21:28:02 system | redis_queue.1 stopped (rc=0)
21:28:02 redis_socketio.1 | 83778:M 23 Jun 2020 21:28:02.870 # User requested shutdown…
21:28:02 redis_socketio.1 | 83778:M 23 Jun 2020 21:28:02.870 * Removing the pid file.
21:28:02 redis_socketio.1 | 83778:M 23 Jun 2020 21:28:02.870 # Redis is now ready to exit, bye bye…
21:28:02 system | redis_socketio.1 stopped (rc=0)
Thank you so much in advance and looking forward to your thought and inputs!