Report this

What is the reason for this report?

Installing ERPNExt manually following tutorial : error at step 5

Posted on August 8, 2021

Connected Tutorial(This question is a follow-up to this tutorial):

How To Install an ERPNext Stack on Ubuntu 18.04

Good day all

Following the install instructions below to install ERPNext on Ubuntu:

https://www.digitalocean.com/community/tutorials/how-to-install-an-erpnext-stack-on-ubuntu-18-04

I have used this tutorial before ( 1 year ago) and I cannot recall that I bumped my head on this error.

I created a fresh droplet (4vcpu 8G )

Followed steps 1-4 … all went well

At step 5 when entering this command: sudo -H python3 -m pip install --upgrade setuptools cryptography psutil

I get the error:

################################################################# Complete output from command python setup.py egg_info: Traceback (most recent call last): File “<string>”, line 1, in <module> File “/tmp/pip-build-ce8tbk4d/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==========================

########################################################################

I went to the suggestged website which offered 2 possible ways of solving the problem but the first also failed.

Can someone perhaps offer some assistance

Many thanks John



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

This error indicates that Python’s package manager, pip, can’t find a module named setuptools_rust.

One possible workaround can be updating pip or installing the missing module via pip:

  1. sudo -H python3 -m pip install --upgrade pip
  2. sudo -H python3 -m pip install setuptools_rust

If these commands don’t work, the issue might reside in the specifics of the ERPNext installation and related dependencies. In that case, you might need to consult ERPNext’s official documentation or community for a more tailored solution.

You can read more about how to manage Python packages using pip in DigitalOcean’s documentation.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.