Python setup.py egg_info" failed with error code 1

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

is your repo is a private repo, if yes what is the version of the frappe

how to know the version

at what date you have clone the repo and why do need to clone it its already on the frappe repo

@Parag_Kapoor my bench version is

4.1.0

i have created a project based on thsi repo whic means i have bench-repo frappe erpnext and my-app

where created at same time and i was using it and now i want this same instance on another vps so i am trying install same copy of that instance to new vps so there will be no version conflict

then you have to follow

Can you try,
cd ~/frappe-bench
rm -rf env
bench setup env
./env/bin/pip install -U setuptools
./env/bin/pip install -e apps/frappe

2 Likes