Error on bench init frappe-bench && cd frappe-bench?

hi,
user@ubuntu:~/user$ bench init frappe-bench && cd 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
user@ubuntu:~/user$

@Mohamed_Sajid which OS are you trying to install ERPNext?

In Ubuntu 12.04 LTS…When I Start a fresh Installation…
Thanks

@max_morais_dmm…when i start a fresh installtion again this same typr of error is came…In Ubuntu 12.04…
hi,
user@ubuntu:~/user$ bench init frappe-bench && cd 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
user@ubuntu:~/user$

Can you try install “honcho” globally on ubuntu? Using sudo pip install honcho

Agian Same error
user@ubuntu:~/user$ bench init frappe-bench && cd 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
user@ubuntu:~/user$

user@ubuntu:~$ sudo pip install honcho
The directory ‘/home/user/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/home/user/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Requirement already satisfied (use --upgrade to upgrade): honcho in /usr/local/lib/python2.7/dist-packages
/usr/local/lib/python2.7/dist-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
user@ubuntu:~$

may u try install untuntu 14.04.03 LTS it work for me.

if it do not work plz check
your internet speed or internet provider in the pass i install form 3g it not work when i chang to fixed line fiber optic provider it work

thanks

1 Like

@noktualek…I think this virtual machine…I want create a doctype and edit the py files…so i want in my local machine…

I am installing ERPNext on a local ubuntu machine and is not a straight forward installation. Hope there is a better manual instead of digging in to the setup script to find out exactly whats been happening…

Anyway, this is still an error that comes up.
After quite some analysis, this is a problem between pip and easy_install screwing each other.

The way I fixed it is to do: sudo easy_install honcho
then run bench you’ll get some other error like requests missing and virtualenv … do the same for all dependencies that are missing.

sudo easy_install honcho
sudo easy_install requests
sudo easy_install virtualenv
sudo easy_install jinja2