Error while fresh install

Hi,

I am trying to install erp on a new fresh ubuntu server, but I have encountered this error.

Logs are saved under /tmp/logs/easy-install__2021-02-10__01-49.log
curl already installed!
wget already installed!
git already installed!
pip3 already installed!
The directory ‘/home/frappe/.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/frappe/.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.
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-3j2vt7_n/cryptography/
Traceback (most recent call last):
File “install.py”, line 484, in
install_prerequisites()
File “install.py”, line 174, in install_prerequisites
‘python3’: “sudo pip3 install --upgrade setuptools cryptography ansible==2.8.5.0 pip”
File “install.py”, line 141, in run_os_command
returncode = subprocess.check_call(command, shell=True, stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python2.7/subprocess.py”, line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sudo pip3 install --upgrade setuptools cryptography ansible==2.8.5.0 pip’ returned non-zero exit status 1

Already tried with both

sudo python install.py --production --user frappe
sudo python3 install.py --production --user frappe

Also tried with this

‘pip’: “sudo pip install --upgrade setuptools cryptography ansible==2.8.5.0 pip”

And then I tried installation from here, still wont work.
These are the error for these command.

pip install --user -e bench-repo

/usr/lib/python2.7/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography.utils import int_from_bytes
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at Release process - pip documentation v24.1.dev0 pip 21.0 will remove support for this functionality.
ERROR: bench-repo is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with svn+, git+, hg+, or bzr+).

But this error still occurs, please advise what should I do.

Thanks

this happen every time i tried to use these command.

> sudo -H python3 -m pip install --upgrade setuptools cryptography psutil
> ```
> sudo -H python3 -m pip install --upgrade setuptools cryptography psutil
> Collecting setuptools
>   Using cached https://files.pythonhosted.org/packages/15/0e/255e3d57965f318973e417d5b7034223f1223de500d91b945ddfaef42a37/setuptools-53.0.0-py3-none-any.whl
> Collecting cryptography
>   Using cached https://files.pythonhosted.org/packages/27/5a/007acee0243186123a55423d49cbb5c15cb02d76dd1b6a27659a894b13a2/cryptography-3.4.4.tar.gz
>     Complete output from command python setup.py egg_info:
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       File "/tmp/pip-build-cayb4nf_/cryptography/setup.py", line 14, in <module>
>         from setuptools_rust import RustExtension
>     ModuleNotFoundError: No module named 'setuptools_rust'
> 
>             =============================DEBUG ASSISTANCE==========================
>             If you are seeing an error here please try the following to
>             successfully install cryptography:
> 
>             Upgrade to the latest pip and try again. This will fix errors for most
>             users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
>             =============================DEBUG ASSISTANCE==========================
> 
> 
>     ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cayb4nf_/cryptography/

Thank

I have the same problem

Manage to install using these commands.

sudo apt-get install python3-pip
sudo pip3 install --upgrade pip

Now this new error happen.

Logs are saved under /tmp/logs/easy-install__2021-02-10__08-17.log
curl already installed!
wget already installed!
git already installed!
pip3 already installed!
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
pip3 already installed!
Checking System Compatibility...
ubuntu 18 is compatible!
Not cloning already existing Bench repository at /tmp/.bench
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
Input MySQL and Frappe Administrator passwords:
Passwords saved at ~/passwords.txt
Initializing bench frappe-bench:
        Frappe Branch: version-12
        ERPNext Branch: version-12
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
[WARNING]: Consider using the get_url or uri module rather than running 'curl'.  If you need to use command because get_url or uri is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in
ansible.cfg to get rid of this message.
Traceback (most recent call last):
  File "install.py", line 489, in <module>
    install_bench(args)
  File "install.py", line 275, in install_bench
    run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
  File "install.py", line 405, in run_playbook
    success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_stream, stderr=sys.stderr)
  File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'site.yml', '-vvvv', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frappe']' returned non-zero exit status 2.

I have de same problem, it is not letting me install

any idea how to solve it? I have already tried updating pip, setuptools…

maybe you can try to edit file install.py

change:
line 174
sudo -H python3 -m pip install --upgrade setuptools-rust wheel cryptography ansible~=2.8.15 pip

python3 -m pip install --upgrade pip

python –m pip install –upgrade pip

run

python3 install.py --develop --user frappe

It takes about 10 mins to 20 mins

During the script run you have to create and preserve a set of passwords for MariaDB root user and Frappe Administrator user.

• Please enter mysql root password: TVB2021$

• Re-enter mysql root password: TVB2021$

• Please enter the default Administrator user password: TVB2021$

• Re-enter Administrator password: TVB2021$

These passwords are saved at Passwords saved at ~/passwords.txt

We have seen the success message

Bench + Frappe + ERPNext has been successfully installed! Now the Dev Environment is ready for use.

Step 6 Install ERPNext application

A bench is a tool used to install and manage ERPNext on your Ubuntu system. We will create a user that will run the ERPNext system, then configure the system.

sudo su - frappe -s /bin/bash

cd frappe-bench

Step 7 Install ERPNext application

Create new website

bench new-site your site name

Provide your mysql password here

Set Administrator password for your site: password

Install ERPNext on to the site

bench --site your site name install-app erpnext

bench use your site name

bench start

Bench start will initiate a real-time monitoring console showing you various messages relating to your webserver and other services. When you see items-dashboard.min Open a web browser and navigate to localhost:8000 (for local installations).

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.