Today I did a big clean-up at my server and somehow I broke my Tensorflow isntance…
And playing the whole day around to get it up and running but without any result.
I run Home-Assistant in a docker container, and tried to install Tensorflow via ->
docker exec -it home-assistant /bin/bash
and then within the container ->
pip3 install tensorflow==1.15.0
All the other needed files are in my config/tensorflow/ directory
Home Assistant is providing the following error.
Error while setting up platform tensorflow
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/app/homeassistant/components/tensorflow/image_processing.py", line 93, in setup_platform
import tensorflow as tf # noqa
File "/usr/local/lib/python3.7/site-packages/tensorflow/__init__.py", line 99, in <module>
from tensorflow_core import *
File "/usr/local/lib/python3.7/site-packages/tensorflow_core/__init__.py", line 28, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "<frozen importlib._bootstrap>", line 1019, in _handle_fromlist
File "/usr/local/lib/python3.7/site-packages/tensorflow/__init__.py", line 50, in __getattr__
module = self._load()
File "/usr/local/lib/python3.7/site-packages/tensorflow/__init__.py", line 44, in _load
module = _importlib.import_module(self.__name__)
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/__init__.py", line 63, in <module>
from tensorflow.python.framework.framework_lib import * # pylint: disable=redefined-builtin
File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/framework_lib.py", line 52, in <module>
from tensorflow.python.framework.importer import import_graph_def
File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/importer.py", line 28, in <module>
from tensorflow.python.framework import function
File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/function.py", line 36, in <module>
from tensorflow.python.ops import array_ops
File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/ops/array_ops.py", line 3090, in <module>
@ops.RegisterGradient("FakeQuantWithMinMaxArgs")
File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 2486, in __call__
_gradient_registry.register(f, self._op_type)
File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/framework/registry.py", line 63, in register
logging.vlog(1, "Registering %s (%s) in %s.", name, candidate, self._name)
File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/platform/tf_logging.py", line 200, in vlog
get_logger().log(level, msg, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/tensorflow_core/python/platform/tf_logging.py", line 104, in get_logger
if not _logging.getLogger().handlers:
TypeError: get_logger() missing 1 required positional argument: 'name'