Submitted by DzintarsSeglins on Tue, 01/19/2021 - 03:14 Pro Licensee
I buy Virtulamin 6.14 Pro version for running Django.
Tried to install on virtual serveris with Available Scripts -> Django 1.9.7 and I get this error message.
This script cannot be installed, as this virtual server does not meet its requirements : The python command is not installed, Could not work out Python version : sh: 1: --version: not found , Missing command python
Tried to google this problem but at the moment without any luck.
Status:
Fixed (pending)
Virtualmin version:
6.14
Webmin version:
1.962
Comments
Submitted by DzintarsSeglins on Tue, 01/19/2021 - 03:17 Pro Licensee Comment #1
Hi,
The simple work-around would be is to go to Virtualmin Configuration and set default Python command to python3 in Advanced Options.
Next Virtualmin release will have it working the right way out of the box.
Thanks for reporting.
Submitted by DzintarsSeglins on Tue, 01/19/2021 - 04:39 Pro Licensee Comment #4
When I start to install script then get this error:
I fix with
but then:
Okay, there were few bugs. It will be fixed for the next release, meanwhile run:
.. and you would need to update Django install script and make sure that you're installing latest 3.1.5 which actually works:
Restart Webmin afterwards and enjoy your ride. :--)
Submitted by jabowery on Mon, 02/22/2021 - 21:30 Pro Licensee Comment #6
I ran into the same problem and after following the above directions I encountered another problem:
It doesn't seem as Virtualmin issue to me.
Submitted by jonas-2 on Thu, 02/25/2021 - 12:56 Comment #8
I won't ask why you're still using Django 1.9 but I noticed that in your posts you have:
"Now installing Django version 1.9.7"
"python/Django-1.9.7-py3.8.egg"
"python/Django-3.1.7-py3.7.egg"
You can't mix and match Django ~ python versions. I recommend using "virtualenv" to compartmentalise your packages.
FWIW you shouldnt be putting your Django app inside "public_html". One bad config and Apache will be returning your whole file directory to the browser.