Frappe install error

Hi,

I’m trying to set Frappe using the bash script on Ubuntu 12.04.
sudo bash setup_frappe.sh

But it’s failing with following error:

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 5, in
from pkg_resources import load_entry_point
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2707, in
working_set.require(requires)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 686, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: honcho

@Sikander_Dhaliwal we are missing the context. Can you share the whole output?

@anand I’ve already shared the whole output of bash script.

Installing packages for Ubuntu. This might take time…
Installing wkhtmltopdf
mysql stop/waiting
mysql start/running, process 2349
Adding frappe user
Installing frappe-bench
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 5, in
from pkg_resources import load_entry_point
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2707, in
working_set.require(requires)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 686, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: honcho

Please let me know if you need any other details.

Try running:

cd /home/frappe
sudo pip install -r bench-repo/requirements.txt

Here is the output of that:

Requirement already satisfied (use --upgrade to upgrade): Click in /usr/local/lib/python2.7/dist-packages (from -r bench-repo/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): jinja2 in /usr/local/lib/python2.7/dist-packages (from -r bench-repo/requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python2.7/dist-packages (from -r bench-repo/requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/local/lib/python2.7/dist-packages (from -r bench-repo/requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): honcho in /usr/local/lib/python2.7/dist-packages (from -r bench-repo/requirements.txt (line 5))
Requirement already satisfied (use --upgrade to upgrade): semantic-version in /usr/local/lib/python2.7/dist-packages (from -r bench-repo/requirements.txt (line 6))
Requirement already satisfied (use --upgrade to upgrade): GitPython==0.3.2.rc1 in /usr/local/lib/python2.7/dist-packages (from -r bench-repo/requirements.txt (line 7))
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in /usr/lib/python2.7/dist-packages (from jinja2->-r bench-repo/requirements.txt (line 2))
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->-r bench-repo/requirements.txt (line 7))
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->-r bench-repo/requirements.txt (line 7))
/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:120: 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

So the required packages are already on the system. It might be failing somewhere else.

I think you have 2 pythons installed. Try running

  1. which pip
  2. ls -l /usr/bin | grep pip

Here is the result of these commands:

which pip
/usr/local/bin/pip
ls -l /usr/bin |grep pip
lrwxrwxrwx 1 root root 13 Sep 22 2014 lessfile → /bin/lesspipe
lrwxrwxrwx 1 root root 13 Sep 22 2014 lesspipe → /bin/lesspipe