Please help me. What should I do? I got error when run bench init frappe-bench
.
OS: Ubuntu 14.04
MariaDB: 10.1
Python: 2.7
$ which python
/usr/bin/python
$ python --version
Python 2.7.6
$ bench init frappe-bench
Already using interpreter /usr/bin/python
/home/putra/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
/home/putra/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
/home/putra/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
/home/putra/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Command "/home/putra/frappe-bench/env/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-CFAHSm-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-D54emz-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/putra/frappe-bench/env/include/site/python2.7/MySQL-python" failed with error code 1 in /tmp/pip-CFAHSm-build
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==0.0.0', 'console_scripts', 'bench')()
File "/home/putra/bench-repo/bench/cli.py", line 60, in cli
bench()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/putra/bench-repo/bench/cli.py", line 166, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch, verbose=verbose)
File "/home/putra/bench-repo/bench/utils.py", line 64, in init
setup_env(bench=path)
File "/home/putra/bench-repo/bench/utils.py", line 111, in setup_env
exec_cmd('./env/bin/pip -q install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz', cwd=bench)
File "/home/putra/bench-repo/bench/utils.py", line 105, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip -q install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz
$ dpkg -l mariadb-*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-================================-=====================-=====================-=====================================================================
un mariadb-client <none> <none> (no description available)
un mariadb-client-10.0 <none> <none> (no description available)
ii mariadb-client-10.1 10.1.10+maria-1~trust amd64 MariaDB database client binaries
un mariadb-client-5.1 <none> <none> (no description available)
un mariadb-client-5.2 <none> <none> (no description available)
un mariadb-client-5.3 <none> <none> (no description available)
un mariadb-client-5.5 <none> <none> (no description available)
un mariadb-client-core-10.0 <none> <none> (no description available)
ii mariadb-client-core-10.1 10.1.10+maria-1~trust amd64 MariaDB database core client binaries
un mariadb-client-core-5.1 <none> <none> (no description available)
un mariadb-client-core-5.2 <none> <none> (no description available)
un mariadb-client-core-5.3 <none> <none> (no description available)
un mariadb-client-core-5.5 <none> <none> (no description available)
ii mariadb-common 10.1.10+maria-1~trust all MariaDB database common files (e.g. /etc/mysql/conf.d/mariadb.cnf)
un mariadb-galera-server-10.0 <none> <none> (no description available)
un mariadb-galera-server-5.5 <none> <none> (no description available)
ii mariadb-server 10.1.10+maria-1~trust all MariaDB database server (metapackage depending on the latest version)
un mariadb-server-10.0 <none> <none> (no description available)
ii mariadb-server-10.1 10.1.10+maria-1~trust amd64 MariaDB database server binaries
un mariadb-server-5.1 <none> <none> (no description available)
un mariadb-server-5.2 <none> <none> (no description available)
un mariadb-server-5.3 <none> <none> (no description available)
un mariadb-server-5.5 <none> <none> (no description available)
un mariadb-server-core-10.0 <none> <none> (no description available)
ii mariadb-server-core-10.1 10.1.10+maria-1~trust amd64 MariaDB database core server files
un mariadb-server-core-5.1 <none> <none> (no description available)
un mariadb-server-core-5.2 <none> <none> (no description available)
un mariadb-server-core-5.3 <none> <none> (no description available)
un mariadb-server-core-5.5 <none> <none> (no description available)
un mariadb-test <none> <none> (no description available)
un mariadb-tokudb-engine-10.0 <none> <none> (no description available)
un mariadb-tokudb-engine-5.5 <none> <none> (no description available)