Python setup.py egg_info" failed with error code 1

Hi,

I have a fresh vps with ubuntu installed

i installed mariadb,node,mysql,redis,nginx,wkhtmltopdf with patched Qt,python,pip

then i cloned bench-repo

then ran command

sudo pip install -e bench-repo

then bench init frappe-bench

then cd frappe-bench

bench get-app url-to-my-repo-to-frappe

i get this error

INFO:bench.utils:git clone https://gitlab.com/warehouses/frappe.git --branch master --depth 1 --origin upstream
Cloning into 'frappe'...
Username for 'https://gitlab.com': shahid.khan@ergonomicscit.com
Password for 'https://shahid.khan@ergonomicscit.com@gitlab.com': 
remote: Counting objects: 2430, done.
remote: Compressing objects: 100% (2204/2204), done.
remote: Total 2430 (delta 349), reused 1304 (delta 163)
Receiving objects: 100% (2430/2430), 17.67 MiB | 8.06 MiB/s, done.
Resolving deltas: 100% (349/349), done.
Checking connectivity... done.
('installing', u'frappe')
INFO:bench.app:installing frappe
INFO:bench.utils:./env/bin/pip install -q  -e ./apps/frappe --no-cache-dir
Command "python setup.py egg_info" failed with error code 1 in /home/erpnext/frappe-bench/apps/frappe/
Traceback (most recent call last):
  File "/home/erpnext/.local/bin/bench", line 9, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/erpnext/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  File "/home/erpnext/.local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/erpnext/.local/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/erpnext/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/erpnext/.local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/erpnext/.local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext/bench-repo/bench/commands/make.py", line 32, in get_app
    get_app(git_url, branch=branch)
  File "/home/erpnext/bench-repo/bench/app.py", line 76, in get_app
    install_app(app=app_name, bench_path=bench_path, verbose=verbose)
  File "/home/erpnext/bench-repo/bench/app.py", line 107, in install_app
    find_links=find_links))
  File "/home/erpnext/bench-repo/bench/utils.py", line 140, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q  -e ./apps/frappe --no-cache-dir```

am i missing anythng

when i ran bench mysql from frappe-bench 

i get No such command "mysql".

so i ran 
source /env/bin/activate

then in ran pip install mysql-client

then i did tried it again but i got same error 

can anybody help me to how to fix this

Hello @shahid_ecit

What’s your Pip version?

Hello @shahid_ecit

Can you share the OS version
before install Frappe bench

Install Ansible using Pip. Ansible automates software provisioning, configuration management, and application deployment.

sudo pip install ansible

Install yarn On Debian or Ubuntu Linux, you can install Yarn via our Debian package repository. You will first need to configure the repository

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo “deb https://dl.yarnpkg.com/debian/ stable main” | sudo tee /etc/apt/sources.list.d/yarn.list

Then you can simply run

sudo apt-get update && sudo apt-get install yarn

@iRaySpace

pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)

@Parag_Kapoor

Linux version
Description: Ubuntu 16.04.4 LTS

@shahid_ecit

Have you install ansible & yarn
required for the new version

installed ansible

installing yarn

@Parag_Kapoor

@Parag_Kapoor

i installed ansible

now i am installing yarn

@shahid_ecit

After install remove frappe folder and try to reinstall

for fresh install you can refer to the guide

it will also work for ubuntu 16.04

when i ran

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
i got
Ok

then i ran

echo “deb https://dl.yarnpkg.com/debian/ stable main” | sudo tee /etc/apt/sources.list.d/yarn.list
i got

“deb https://dl.yarnpkg.com/debian/ stable main”

then i ran
sudo apt-get update && sudo apt-get install yarn
i got this

E: The list of sources could not be read```

@Parag_Kapoor

@shahid_ecit

please refer to link for yarn installation

@Parag_Kapoor

okey

i am checking

@Parag_Kapoor i installed everything as in

but still i am getting this error

INFO:bench.app:getting app frappe
Cloning into ‘frappe’…
Username for ‘https://gitlab.com’: shahid.khan@ergonomicscit.com
Password for ‘https://shahid.khan@ergonomicscit.com@gitlab.com’:
remote: Counting objects: 2470, done.
remote: Compressing objects: 100% (2272/2272), done.
remote: Total 2470 (delta 347), reused 1218 (delta 135)
Receiving objects: 100% (2470/2470), 18.17 MiB | 8.14 MiB/s, done.
Resolving deltas: 100% (347/347), done.
Checking connectivity… done.
installing frappe
INFO:bench.app:installing frappe
Command “python setup.py egg_info” failed with error code 1 in /home/erpnext/frappe-bench/apps/frappe/
Traceback (most recent call last):
File “/home/erpnext/.local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/erpnext/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/home/erpnext/.local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/erpnext/.local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/erpnext/.local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/erpnext/.local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/erpnext/.local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/erpnext/bench-repo/bench/commands/make.py”, line 30, in get_app
get_app(git_url, branch=branch)
File “/home/erpnext/bench-repo/bench/app.py”, line 73, in get_app
install_app(app=app_name, bench_path=bench_path, verbose=verbose)
File “/home/erpnext/bench-repo/bench/app.py”, line 103, in install_app
find_links=find_links))
File “/home/erpnext/bench-repo/bench/utils.py”, line 127, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q -e ./apps/frappe

Why are you login into the github, there must be some dependency fail

@Parag_Kapoor i want to get the app frppe from my repo

do you clone the repo to your repo

@Parag_Kapoor yes

and you have made the repo private, which version you have cloned

sorry i did’t get it