There seem to have been network issues when installing pip here:
Collecting smmap<6,>=3.0.1
Downloading smmap-5.0.1-py3-none-any.whl (24 kB)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from
python-dateutil->python-crontab~=2.6.0->frappe-bench) (1.16.0)
Installing collected packages: honcho, tomli, smmap, semantic-version, python-da
teutil, python-crontab, gitdb, gitpython, frappe-bench
Successfully installed frappe-bench-5.18.0 gitdb-4.0.11 gitpython-3.1.40 honcho-
1.1.0 python-crontab-2.6.0 python-dateutil-2.8.2 semantic-version-2.8.5 smmap-5.
0.1 tomli-2.0.1
WARNING: Running pip as the ‘root’ user can result in broken permissions and con
flicting behaviour with the system package manager. It is recommended to use a v
irtual environment instead: 12. Virtual Environments and Packages — Python 3.12.1 documentation
Initialising bench in frappe-bench folder.
If you get a restart failed, don’t worry, we will resolve that later.
Setting Up Environment
$ python3 -m venv env
$ /home/hsrai/frappe-bench/env/bin/python -m pip install --upgrade pip
Requirement already satisfied: pip in ./env/lib/python3.10/site-packages (22.0.2
)
Collecting pip
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host
=‘files.pythonhosted.org’, port=443): Read timed out. (read timeout=15)”)’: /pac
kages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.
3.1-py3-none-any.whl
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host
=‘files.pythonhosted.org’, port=443): Read timed out. (read timeout=15)”)’: /pac
kages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.
3.1-py3-none-any.whl
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host
=‘files.pythonhosted.org’, port=443): Read timed out. (read timeout=15)”)’: /pac
kages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.
3.1-py3-none-any.whl
and here:
Installing frappe
$ /home/hsrai/frappe-bench/env/bin/python -m pip install --upgrade -e /home/hsr
ai/frappe-bench/apps/frappe
Obtaining file:///home/hsrai/frappe-bench/apps/frappe
Installing build dependencies … done
Checking if build backend supports build_editable … done
Getting requirements to build editable … done
Preparing editable metadata (pyproject.toml) … done
Collecting Babel~=2.12.1 (from frappe==15.0.1)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host
=‘files.pythonhosted.org’, port=443): Read timed out. (read timeout=15)”)’: /pac
kages/df/c4/1088865e0246d7ecf56d819a233ab2b72f7d6ab043965ef327d0731b5434/Babel-2
.12.1-py3-none-any.whl
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host
=‘files.pythonhosted.org’, port=443): Read timed out. (read timeout=15)”)’: /pac
kages/df/c4/1088865e0246d7ecf56d819a233ab2b72f7d6ab043965ef327d0731b5434/Babel-2
.12.1-py3-none-any.whl
And the second error which occured while frappe was being installed seems to have been as a result of the first error. pip is a mandatory dependency package used by frappe.
To repeat the steps, go to your frappe bench directory, and drop the created site. use --force flag to ensure the site is completely removed. next return to your home directory and delete the frappe bench directory created. re-run the script afterwards and it will skim through all dependency and package installation and re-initiate bench installation. if there are no network interruptions then it will install successfully.