you are right, should be a command like below,
nofal@LAPTOP-5F23F7J8:/mnt/c/Users/naouf$ lsb_release -a
you are right, should be a command like below,
nofal@LAPTOP-5F23F7J8:/mnt/c/Users/naouf$ lsb_release -a
hey @nmami
I am getting the following error in setup, I am using Windows 10 Home with WSL & Ubuntu 18.04LTS
error :
frappe@DESKTOP-VVA1S0K:~$ sudo -H python3 install.py --production --site frappe.local --user frappe
Logs are saved under /tmp/logs/easy-install__2020-04-02__15-58.log
Checking System Compatibility…
ubuntu 18 is compatible!
Bench’s CLI needs these to be defined!
Run the following commands in shell:
export LC_ALL=C.UTF-8
frappe@DESKTOP-VVA1S0K:~$ export LC_ALL=C.UTF-8
frappe@DESKTOP-VVA1S0K:~$ sudo -H python3 install.py --production --site frappe.local --user frappe
Logs are saved under /tmp/logs/easy-install__2020-04-02__15-59.log
Checking System Compatibility…
ubuntu 18 is compatible!
curl already installed!
wget already installed!
git already installed!
Installing pip3…
pip3 installed!
[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:
Please enter mysql root password:
Re-enter mysql root password:
Please enter the default Administrator user password:
Re-enter Administrator password:
Passwords saved at ~/passwords.txt
[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]: Could not find aptitude. Using apt-get instead
Traceback (most recent call last):
File “install.py”, line 437, in
install_bench(args)
File “install.py”, line 241, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 362, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’), 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 recommend to repear steps from the beginning and reset wsl also, yes it’s hard and time consuming, but it works on myblaptop
Unfortunately Mr. Nmami, I get the following error every time I implement the “sudo -H python3 install.py --production --site frappe.local --user frappe”. The error shows in WSL as follows:
frappe@DESKTOP-VLE6GTJ:~$ sudo -H python3 install.py --production --site frappe.local --user frappe
Logs are saved under /tmp/logs/easy-install__2020-05-22__04-33.log
Traceback (most recent call last):
File “install.py”, line 433, in
check_distribution_compatibility()
File “install.py”, line 78, in check_distribution_compatibility
dist_name, dist_version = get_distribution_info()
File “install.py”, line 100, in get_distribution_info
current_dist = platform.dist()
AttributeError: module ‘platform’ has no attribute ‘dist’
Any fixes for this, kindly?
the only way I got it working, after many hours was as sudo user frappe:
git clone GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps (bench dir)
cd bench
sudo python3 install.py --production --container --user frappe
…
Bench + Frappe + ERPNext has been successfully installed!
Looks the install script don’t work (anymore) out of context. It miss the configs for ansible playbook
Can you elaborate more on your answer? I have seen other members using your method. They clone bench directly from git, but I am not following exactly.
Getting this error after running this command on WSL
frappe@DESKTOP-SU5EBTV:~$ sudo -H python3 install.py --production --site frappe.local --user frappe
Logs are saved under /tmp/logs/easy-install__2021-03-25__06-21.log
Checking System Compatibility…
ubuntu 18 is compatible!
curl already installed!
wget already installed!
git already installed!
pip3 already installed!
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-kcp66wm0/cryptography/
Traceback (most recent call last):
File “install.py”, line 436, in
install_prerequisites()
File “install.py”, line 143, in install_prerequisites
‘python3’: “sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip”
File “install.py”, line 118, in run_os_command
returncode = subprocess.check_call(command, shell=True, 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 ‘sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip’ returned non-zero exit status 1.
frappe@DESKTOP-SU5EBTV:~$ sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip
Collecting setuptools
Using cached https://files.pythonhosted.org/packages/9e/d4/b99a960314121a003e9f39c61dfde01a1010bb47661e193a7722f7f32d52/setuptools-54.2.0-py3-none-any.whl
Collecting cryptography
Using cached https://files.pythonhosted.org/packages/fa/2d/2154d8cb773064570f48ec0b60258a4522490fcb115a6c7c9423482ca993/cryptography-3.4.6.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-1pqnc24w/cryptography/setup.py”, line 14, in
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-1pqnc24w/cryptography/
frappe@DESKTOP-SU5EBTV:~$ cd frappe-bench
bash: cd: frappe-bench: No such file or directory
Can someone please guide me through this?
Try sudo pip3 install cryptography
Still getting same error
frappe@VIAS:~$ sudo pip3 install cryptography
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.
Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages
frappe@VIAS:~$ sudo -H python3 install.py --production --site app.viasupply.com --user frappe
Logs are saved under /tmp/logs/easy-install__2021-03-28__09-28.log
Checking System Compatibility…
ubuntu 18 is compatible!
curl already installed!
wget already installed!
git already installed!
pip3 already installed!
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-3tpvh3b7/cryptography/
Traceback (most recent call last):
File “install.py”, line 436, in
install_prerequisites()
File “install.py”, line 143, in install_prerequisites
‘python3’: “sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip”
File “install.py”, line 118, in run_os_command
returncode = subprocess.check_call(command, shell=True, 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 ‘sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip’ returned non-zero exit status 1.
There’s two potential causes for this and I don’t remember how I solved it.
bench pip install cryptography
This is the error. Kindly anyone guide please
frappe@DESKTOP-GD56773:~$ sudo -H python3 install.py --production --site frappe.local --user frappe
Logs are saved under /tmp/logs/easy-install__2021-04-09__12-14.log
Checking System Compatibility…
ubuntu 18 is compatible!
curl already installed!
wget already installed!
git already installed!
Installing pip3…
pip3 installed!
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-j0f6tr7d/cryptography/
Traceback (most recent call last):
File “install.py”, line 436, in
install_prerequisites()
File “install.py”, line 143, in install_prerequisites
‘python3’: “sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip”
File “install.py”, line 118, in run_os_command
returncode = subprocess.check_call(command, shell=True, 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 ‘sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip’ returned non-zero exit status 1.
getting the same error…
You cannot install a production ERPNext site to WSL because it relies on systemd, which is not available in WSL distributions.
I think one of the problems is within the script, the location of playbooks is at ‘/tmp/.bench/bench/playbooks’ and not ‘/tmp/.bench/playbooks’
hi @nmami sir,
i want to install ERPNEXT in my windows 10, I download virtual box and am not able to download production.ova file what can i do sir. please help
My understanding os that ova is production ERPNext. There is no ova for develop branch
Am I to understand each services need to be manually started every time Windows boots? Is there no way to make them start automatically?
Hi dear,
Could you please tell me if it is possible to run frappe framework application on windows system immediately with out need for WSL or docker ?
thank you so much…
if you don’t want WSL or docker then use VM Virtual Box.
link ERPNext Production v15.0.0 ova download link
Thanks