-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | Home Assistant: Skip (re)installing pyenv/Python #2374
Comments
@MZorzy Python is installed within Why actually do you need to reinstall HA that often, that Python reinstall is an issue?
The related code line is:
Generally the HA installer could retrieve some update. Looks like copy and paste from a guide, with a complexity that is not required for DietPi (but works!). |
Further research:
|
testing commented out # that line, |
There is no internal updater (from web UI) available, right? Yeah so maybe we can check for existing install and skip dependency install then. Only thing is, if dependency min version raises, the update breaks HA. So at best check and compare installed and required dependency versions. Or we skip the whole pyenv, if possible. |
there is no an internal updater if installed as "157", |
@MZorzy So okay, then a full reinstall is required as update and And thanks for giving us the hint about the doubled topic. I will move the info here and close the other one. Ref: https://dietpi.com/phpbb/viewtopic.php?t=5369 Currently we run the install script within a virtual environment (virtualenv/pyenv), which runs in a subshell of again a sudo subshell, so three (or more) orders of abstraction... There everything, especially Python is built from source, which takes a veeery long time. Users report more than 40 minutes (on SBC), only for the Python build, afterwards pip installs again take time. Of course it is always safe to run stuff in a sandbox, but if we know what we do, it should be not required.
|
meanwhilr i edit dietpi-software skipping "# Install Python which is needed for HA" on line 6891-6892 |
PR up to inform users about long install process (+ Python update and slight install enhencements): #3220 |
With v6.27, install has been simplified, but the pyenv install + Python compiling stays. We cannot really skip it due to the vast amount of special module version needs. Only alternative would by venv from APT-installed Python. With this, Python does not need to be compiled anymore, but the instance it less independent and lower version. I mark this issue as closed for now. Further discussion/enhancements can be done at a later date. |
not a bis issue but every time
dietpi-software reinstall 157
it ask to reinstrall python 3.6.3 y/N , if No it end and not upgrade. if y ... redownload with lot of time consumping.
may be an option to check if exist 3.6.3 and skip OR continue upgrade/reinstall ?
The text was updated successfully, but these errors were encountered: