By jlongland
Connected Tutorial(This question is a follow-up to this tutorial):
How To Install an ERPNext Stack on Ubuntu 18.04Good 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!
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:
- sudo -H python3 -m pip install --upgrade pip
- 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!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.