Open onkelandy opened 3 years ago
You know that windows is not yet officially supported?
@bmxp Since you are working on Windows compatibility, this could be of interest for you.
There is a main problem with the way SHNG is now handled in respect to restarts and install stuff. For windows there should be no such thing like daemonzing and unix magics, windows has services. But since @msinn was working very hard to make restarts possible with linux systemd settings I waited for further work at this field. The whole sequence of restarting to install the dependencies is not optimal for windows. I will see if I find some time for a solution after the next release...
I fixed #377 in lib/shpypi.py
with first creating the directories. This error might as well happen with a fresh install on Linux.
Maybe we should execute the createdirectories function from lib/smarthome.py as well in lib/shpypi.py as well...?
Can we fix this issue and close it? Creating the dir whenever necessary is a useful approach I think. There should be a check whether the dir exists or not. @bmxp ?
Some minor issue when running shng in Windows 10 with python 3.8.7 the first time. The pip3_outout.log can't be created automatically and therefore installation of reqs fails. Not sure if it's a Windows only problem
After creating the dir manually everything runs as expected.. actuall the automatic pip3 path is wrong (for whatever reason)
But using the parameter pip3_command makes things run.