Frappe installation fail - bench init frappe-bench - macOS

Hi iam new to frappe/erpnext and trying to install on my mac and stuck on
“bench init frappe-bench --frappe-branch master”
here is the error

Command “/Users/wasifkhalil/sites/frappe-bench/env/bin/python -u -c “import setuptools, tokenize;file=‘/private/var/folders/9j/mk4mk3qj33zd0ys_6hsw9l6h0000gn/T/pip-build-WbazlN/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-CQx8aD-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-WbazlN/mysql-python/

any help would be appreciated

Hi @Wasif_Khalil

try this
bench init --frappe-branch master frappe-branch.

Thanks

Thanks for the reply
i have the same error with bench init --frappe-branch master frappe-branch.

➜ sites bench init --frappe-branch master frappe-branch
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: 1896, done.
remote: Compressing objects: 100% (1736/1736), done.
remote: Total 1896 (delta 240), reused 871 (delta 107), pack-reused 0
Receiving objects: 100% (1896/1896), 12.50 MiB | 1.82 MiB/s, done.
Resolving deltas: 100% (240/240), done.
installing frappe
INFO:bench.app:installing frappe
Command “/Users/wasifkhalil/sites/frappe-branch/env/bin/python -u -c “import setuptools, tokenize;file=‘/private/var/folders/9j/mk4mk3qj33zd0ys_6hsw9l6h0000gn/T/pip-build-d0WgnW/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-vM7KFY-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/wasifkhalil/sites/frappe-branch/env/bin/…/include/site/python2.7/mysql-python” failed with error code 1 in /private/var/folders/9j/mk4mk3qj33zd0ys_6hsw9l6h0000gn/T/pip-build-d0WgnW/mysql-python/
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/2.7/bin/bench”, line 11, in
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-branch/env/bin/pip install -q -e frappe-branch/apps/frappe

this post helped me fix it

by following these steps

Uninstall mysql-python
Uninstall Mariadb
Install Mariadb again
Install mysql-python again

but i have more issues now when i run “bench --site localhost install-app erpnext”

_mysql_exceptions.ProgrammingError: (1146, “Table ‘334389048b872a53.tabdefaultvalue’ doesn’t exist”)
i checked the database “334389048b872a53” is empty and has no tables? what do i do now