Supervisor 2021.3.0 , local add-ons 'NoneType' object has no attribute 'is_file'

since supervisor updated to 2021.3.0, i receive this error
i tested a new , did the first 3 simple steps, and again the same error ??

21-03-03 19:11:51 ERROR (MainThread) [supervisor.jobs] Unhandled exception: 'NoneType' object has no attribute 'is_file'
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 100, in wrapper
    return await self._method(*args, **kwargs)
  File "/usr/src/supervisor/supervisor/addons/__init__.py", line 182, in install
    await addon.instance.install(store.version, store.image)
  File "/usr/src/supervisor/supervisor/utils/__init__.py", line 32, in wrap_api
    return await method(api, *args, **kwargs)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/supervisor/supervisor/docker/addon.py", line 491, in _install
    self._build(version)
  File "/usr/src/supervisor/supervisor/docker/addon.py", line 500, in _build
    build_env = AddonBuild(self.coresys, self.addon)
  File "/usr/src/supervisor/supervisor/addons/build.py", line 32, in __init__
    super().__init__(
  File "/usr/src/supervisor/supervisor/utils/common.py", line 59, in __init__
    self.read_data()
  File "/usr/src/supervisor/supervisor/utils/common.py", line 72, in read_data
    if self._file.is_file():
AttributeError: 'NoneType' object has no attribute 'is_file'

Add a blank build.yaml file in the same directory

2 Likes

ok, fixed now, is new feature?

It’s a bug

@ludeeus , is this also related?

when i try in config.json this :

"host_network": false
i receive this error when i start it :

ioctl SIOCSIFNAME rename: No such file or directory

not sure, didnt try on supervisor 2021.2.3 , when i set it to true , it works

Not related at all