Hi guys!
I’m new with all the world of ERPNext. I’m coming from the “java world” , but im pretty excited with the “python world” and ERPNext.
OK, my goal now is to setting up a developer enviroment in my mac. Then, I want to deploy ERPNext in a virtual machine Debian with ISPConfig and virtual host installed (Apache, mysql, etc). I understand that ERPNext works better in a clean system and with nginx and mariadb, but I can’t change my infrastructure by now. But, deployment it’s for another post. Let’s go with my problem now.
I follow this link to setting up my mac for develop: Turning a Mac into a Frappe Framework Developer Machine · frappe/bench Wiki · GitHub .
Everything comes ok, but when I’m trying to run
bench init frappe-bench --frappe-branch master
I get this error :
INFO:bench.utils:virtualenv -q env -p /usr/local/opt/python/bin/python2.7 Already using interpreter /usr/local/opt/python/bin/python2.7 INFO:bench.utils:./env/bin/pip -q install --upgrade pip INFO:bench.utils:./env/bin/pip -q install wheel INFO:bench.utils:./env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit INFO:bench.app:getting app frappe INFO:bench.utils:git clone https://github.com/frappe/frappe.git --branch master --origin upstream Cloning into 'frappe'... remote: Counting objects: 125324, done. remote: Compressing objects: 100% (30/30), done. remote: Total 125324 (delta 6), reused 0 (delta 0), pack-reused 125294 Receiving objects: 100% (125324/125324), 95.38 MiB | 10.46 MiB/s, done. Resolving deltas: 100% (94123/94123), done. ('installing', u'frappe') INFO:bench.app:installing frappe INFO:bench.utils:frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe --no-cache-dir Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/xf/6lhhj3h56379gmxwqp0_p2qr0000gn/T/pip-build-JiAODU/mysql-python/ Traceback (most recent call last): File "/usr/local/bin/bench", line 11, in <module> load_entry_point('bench', 'console_scripts', 'bench')() File "/Users/anibal/PythonDev/bench-repo/bench/cli.py", line 40, in cli bench_command() File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/Users/anibal/PythonDev/bench-repo/bench/commands/make.py", line 19, in init verbose=verbose, clone_from=clone_from) File "/Users/anibal/PythonDev/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/anibal/PythonDev/bench-repo/bench/app.py", line 76, in get_app install_app(app=app_name, bench_path=bench_path, verbose=verbose) File "/Users/anibal/PythonDev/bench-repo/bench/app.py", line 107, in install_app find_links=find_links)) File "/Users/anibal/PythonDev/bench-repo/bench/utils.py", line 130, in exec_cmd raise CommandFailedError(cmd) bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe --no-cache-dir
I searched about the same problems, like
And I do the same that the post said… But I get the same error at the end …
`➜ frappe-bench rm -rf env
➜ frappe-bench ls
apps config logs sites
➜ frappe-bench bench setup env
INFO:bench.utils:virtualenv -q env -p /usr/local/opt/python/bin/python2.7
Already using interpreter /usr/local/opt/python/bin/python2.7
INFO:bench.utils:./env/bin/pip -q install --upgrade pip
INFO:bench.utils:./env/bin/pip -q install wheel
INFO:bench.utils:./env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit
➜ frappe-bench ./env/bin/pip install -e apps/frappe
Obtaining file:///Users/anibal/PythonDev/frappe-bench/apps/frappe
Collecting chardet (from frappe==8.0.18)
Downloading chardet-3.0.2-py2.py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 2.6MB/s
Collecting cssmin (from frappe==8.0.18)
Downloading cssmin-0.2.0.tar.gz
Collecting dropbox (from frappe==8.0.18)
Downloading dropbox-7.2.1-py2-none-any.whl (302kB)
100% |████████████████████████████████| 307kB 3.1MB/s
Collecting gunicorn (from frappe==8.0.18)
Downloading gunicorn-19.7.1-py2.py3-none-any.whl (111kB)
100% |████████████████████████████████| 112kB 7.4MB/s
Collecting httplib2 (from frappe==8.0.18)
Downloading httplib2-0.10.3.tar.gz (204kB)
100% |████████████████████████████████| 204kB 4.0MB/s
Collecting jinja2 (from frappe==8.0.18)
Downloading Jinja2-2.9.6-py2.py3-none-any.whl (340kB)
100% |████████████████████████████████| 348kB 4.0MB/s
Collecting markdown2 (from frappe==8.0.18)
Downloading markdown2-2.3.3.zip (156kB)
100% |████████████████████████████████| 163kB 5.7MB/s
Collecting markupsafe (from frappe==8.0.18)
Downloading MarkupSafe-1.0.tar.gz
Collecting mysql-python==1.2.5 (from frappe==8.0.18)
Downloading MySQL-python-1.2.5.zip (108kB)
100% |████████████████████████████████| 112kB 5.7MB/s
Complete output from command python setup.py egg_info:
sh: mysql_config: command not found
Traceback (most recent call last):
File “”, line 1, in
File “/private/var/folders/xf/6lhhj3h56379gmxwqp0_p2qr0000gn/T/pip-build-kRX45B/mysql-python/setup.py”, line 17, in
metadata, options = get_config()
File “setup_posix.py”, line 43, in get_config
libs = mysql_config(“libs_r”)
File “setup_posix.py”, line 25, in mysql_config
raise EnvironmentError(“%s not found” % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------
Command “python setup.py egg_info” failed with error code 1 in /private/var/folders/xf/6lhhj3h56379gmxwqp0_p2qr0000gn/T/pip-build-kRX45B/mysql-python/
➜ frappe-bench`
What can I do?
Off course sorry if I made a obviously question.
Best