Facing problem while installing manually

After installing all the dependencies manually and cloning the bench-repo, i have use this command to manually install bench-

sudo pip install -e bench-repo

Here is the log-

Obtaining file:///home/reza/bench-repo
Running setup.py (path:/home/reza/bench-repo/setup.py) egg_info for package from file:///home/reza/bench-repo

file bench.py (for module bench) not found
Requirement already satisfied (use --upgrade to upgrade): Click in /usr/local/lib/python2.7/dist-packages (from bench==0.92)
Requirement already satisfied (use --upgrade to upgrade): jinja2 in /usr/local/lib/python2.7/dist-packages (from bench==0.92)
Requirement already satisfied (use --upgrade to upgrade): virtualenv in ./.local/lib/python2.7/site-packages (from bench==0.92)
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python2.7/dist-packages (from bench==0.92)
Requirement already satisfied (use --upgrade to upgrade): honcho in /usr/local/lib/python2.7/dist-packages (from bench==0.92)
Requirement already satisfied (use --upgrade to upgrade): semantic-version in /usr/local/lib/python2.7/dist-packages (from bench==0.92)
Requirement already satisfied (use --upgrade to upgrade): GitPython==0.3.2.RC1 in /usr/local/lib/python2.7/dist-packages (from bench==0.92)
Requirement already satisfied (use --upgrade to upgrade): gitdb>=0.5.1 in /usr/local/lib/python2.7/dist-packages (from GitPython==0.3.2.RC1->bench==0.92)
Requirement already satisfied (use --upgrade to upgrade): smmap>=0.8.5 in /usr/local/lib/python2.7/dist-packages (from gitdb>=0.5.1->GitPython==0.3.2.RC1->bench==0.92)
Installing collected packages: bench
Running setup.py develop for bench

file bench.py (for module bench) not found
Creating /usr/local/lib/python2.7/dist-packages/bench.egg-link (link to .)
bench 0.92 is already the active version in easy-install.pth
Installing bench script to /usr/local/bin

Installed /home/reza/bench-repo
Successfully installed bench
Cleaning up...

Than i change directory to the bench-repo and give this command

bench init frappe-bench

Here is the log-

Already using interpreter /usr/bin/python
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-awvKol-build
raTraceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==0.92', 'console_scripts', 'bench')()
File "/home/reza/bench-repo/bench/cli.py", line 60, in cli
bench()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 700, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 680, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 508, in invoke
return callback(*args, **kwargs)
File "/home/reza/bench-repo/bench/cli.py", line 165, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch)
File "/home/reza/bench-repo/bench/utils.py", line 63, in init
setup_env(bench=path)
File "/home/reza/bench-repo/bench/utils.py", line 109, 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/reza/bench-repo/bench/utils.py", line 104, 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

How can i solve this?

Running ./env/bin/pip install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz from the frappe-bench dir should give more clue. My hunch is that mariadb client libs are not installed

1 Like