f'{cache_file} sucks, only {len(cached_state)} entries. Deleting it.'
)
os.remove(cache_file)
-
logger.debug('No usable saved state found')
return None
Top-level exception handler for exceptions that make it past any exception
handlers in the python code being run. Logs the error and stacktrace then
maybe attaches a debugger.
+
"""
global original_hook
msg = f'Unhandled top level exception {exc_type}'
set -e
python3 -m ensurepip --upgrade
-for x in pip wheel aiohttp antlr4-python3-runtime astral bankroll bitstring python-dateutil \
- grpcio holidays cloudpickle dill numpy pandas protobuf psutil pyserial pytype \
- pychromecast requests SpeechRecognition sklearn scikit-learn nltk; do
- echo "--- Installing ${x} ---"
- pip install -U ${x}
-done
+pip install requirements.txt
--- /dev/null
+pip install wheel
+pip install aiohttp
+pip install antlr4-python3-runtime
+pip install astral
+pip install bitstring
+pip install python-dateutil
+pip install grpcio
+pip install holidays
+pip install cloudpickle
+pip install dill
+pip install numpy
+pip install pandas
+pip install protobuf
+pip install psutil
+pip install pyserial
+pip install pytype
+pip install pychromecast
+pip install requests
+pip install SpeechRecognition
+pip install scikit-learn
+pip install nltk
+pip install meross-iot
+
+