Skip to content
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

'matplotlib' throws warning on 2021.12.0b3 #61336

Closed
hmmbob opened this issue Dec 9, 2021 · 14 comments
Closed

'matplotlib' throws warning on 2021.12.0b3 #61336

hmmbob opened this issue Dec 9, 2021 · 14 comments
Milestone

Comments

@hmmbob
Copy link
Contributor

hmmbob commented Dec 9, 2021

The problem

No idea which component is responsible for this:

2021-12-09 09:03:55 WARNING (SyncWorker_1) [matplotlib.style.core] In /usr/local/lib/python3.9/site-packages/matplotlib/mpl-data/stylelib/_mpl-gallery-nogrid.mplstyle: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead

What version of Home Assistant Core has the issue?

core-2021.12.0b3

What was the last working version of Home Assistant Core?

core-2021.11.5

What type of installation are you running?

Home Assistant Container

Integration causing the issue

No response

Link to integration documentation on our website

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-12-09 09:03:55 WARNING (SyncWorker_1) [matplotlib.style.core] In /usr/local/lib/python3.9/site-packages/matplotlib/mpl-data/stylelib/_mpl-gallery-nogrid.mplstyle: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead

Additional information

No response

@hmmbob hmmbob changed the title matplotlib throws warning on 2021.12.0b4 'matplotlib' throws warning on 2021.12.0b4 Dec 9, 2021
@frenck frenck added this to the 2021.12.0 milestone Dec 9, 2021
@Mariusthvdb
Copy link
Contributor

Idd be interested to learn which integration is responsible for that too, thanks for logging. Seeing

WARNING (Thread-46) [matplotlib.font_manager] Matplotlib is building the font cache; this may take a moment.

since several updates, and no idea as to the why either

@hmmbob
Copy link
Contributor Author

hmmbob commented Dec 9, 2021

Interestingly enough, I did see this on b3, but not (yet) on b4

@hmmbob hmmbob changed the title 'matplotlib' throws warning on 2021.12.0b4 'matplotlib' throws warning on 2021.12.0b3 Dec 9, 2021
@bachya
Copy link
Contributor

bachya commented Dec 10, 2021

There isn't a single direct reference to matplotlib in the core codebase. Do you have any custom components installed?

@hmmbob
Copy link
Contributor Author

hmmbob commented Dec 10, 2021

There isn't a single direct reference to matplotlib in the core codebase. Do you have any custom components installed?

I do, but neither of them seem to use the lib as well. Was trying to debug this with @frenck over discord as well.

Custom Components:

  • HACS
  • Xiaomi Cloud Map Extractor
  • Afvalinfo
  • Spotcast
  • Toon Climate

Yet, searching for it in my config dir does not show anything:
image

So I did the same inside the container, and that gave me some results, including numpy, pandas, alpha-vantage, scapy and tqdm. Numpy example:

bob@debian:~$ docker exec -it homeassistant /bin/bash
bash-5.1# grep -rnw '/usr/' -e 'matplotlib'
...
/usr/local/lib/python3.9/site-packages/numpy/core/function_base.py:106:    >>> import matplotlib.pyplot as plt
...

But.... I saw it once, and did not see it anymore 🤷🏻

Furthermore, I see a lot of similar deprecation warnings if I open the logs of the container:

bob@debian:~$ docker logs -f homeassistant

I'm remote now so can't copy a dump here, but there are more packages throwing the same warnings - they're just not showing in the HA frontend (I run logger: on warn level)

@hmmbob
Copy link
Contributor Author

hmmbob commented Dec 10, 2021

Dump of docker logs -f homeassistant on 2021.12.0b6. Note: it does not contain a matplotlib warning, yet other packages with same error/warning. I've filtered irrelevant warnings from HA.

bob@debian:~$ docker logs -f homeassistant

/config/custom_components/xiaomi_cloud_map_extractor/camera.py:148: DeprecationWarning: Call to deprecated function __init__ (This class will become the base class for all vacuum implementations. Use RoborockVacuum to control roborock vacuums.).
  self._vacuum = miio.Vacuum(host, token)
/usr/src/homeassistant/homeassistant/components/esphome/entry_data.py:108: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11.
  await asyncio.wait(tasks)
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:19: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  DESCRIPTOR = _descriptor.FileDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:33: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.EnumValueDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:37: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.EnumValueDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:41: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.EnumValueDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:27: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _SIGNATUREALGORITHM = _descriptor.EnumDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:60: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.EnumValueDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:64: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.EnumValueDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:54: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _HASHALGORITHM = _descriptor.EnumDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:90: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.EnumValueDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:84: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _CASTMESSAGE_PROTOCOLVERSION = _descriptor.EnumDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:108: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.EnumValueDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:112: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.EnumValueDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:102: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _CASTMESSAGE_PAYLOADTYPE = _descriptor.EnumDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:130: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.EnumValueDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:134: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.EnumValueDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:138: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.EnumValueDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:124: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _AUTHERROR_ERRORTYPE = _descriptor.EnumDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:158: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:165: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:172: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:179: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:186: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:193: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:200: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:151: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _CASTMESSAGE = _descriptor.Descriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:233: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:240: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:247: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:226: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _AUTHCHALLENGE = _descriptor.Descriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:278: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:285: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:292: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:299: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:306: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:313: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:320: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:271: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _AUTHRESPONSE = _descriptor.Descriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:351: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:344: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _AUTHERROR = _descriptor.Descriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:383: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:390: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:397: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _descriptor.FieldDescriptor(
/usr/local/lib/python3.9/site-packages/pychromecast/cast_channel_pb2.py:376: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  _DEVICEAUTHMESSAGE = _descriptor.Descriptor(
/usr/local/lib/python3.9/asyncio/base_events.py:1460: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  infos = await tasks.gather(*fs, loop=self)
/usr/local/lib/python3.9/asyncio/base_events.py:1518: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  await tasks.sleep(0, loop=self)
/usr/src/homeassistant/homeassistant/components/homeassistant/__init__.py:205: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11.
  await asyncio.wait(tasks)
/usr/local/lib/python3.9/site-packages/pysnmp/carrier/asyncio/dispatch.py:58: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def handle_timeout(self):
<string>:2: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
/usr/local/lib/python3.9/site-packages/pysnmp/hlapi/asyncio/cmdgen.py:59: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def getCmd(snmpEngine, authData, transportTarget, contextData,
/usr/local/lib/python3.9/site-packages/pysnmp/hlapi/asyncio/cmdgen.py:166: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def setCmd(snmpEngine, authData, transportTarget, contextData,
/usr/local/lib/python3.9/site-packages/pysnmp/hlapi/asyncio/cmdgen.py:273: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def nextCmd(snmpEngine, authData, transportTarget, contextData,
/usr/local/lib/python3.9/site-packages/pysnmp/hlapi/asyncio/cmdgen.py:386: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def bulkCmd(snmpEngine, authData, transportTarget, contextData,
/usr/local/lib/python3.9/site-packages/pysnmp/hlapi/asyncio/ntforg.py:34: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def sendNotification(snmpEngine, authData, transportTarget, contextData,
/usr/local/lib/python3.9/site-packages/pyipp/ipp.py:108: DeprecationWarning: with timeout() is deprecated, use async with timeout() instead
  with async_timeout.timeout(self.request_timeout):
/usr/local/lib/python3.9/site-packages/pyipp/ipp.py:108: DeprecationWarning: with timeout() is deprecated, use async with timeout() instead
  with async_timeout.timeout(self.request_timeout):
/usr/src/homeassistant/homeassistant/components/homeassistant/__init__.py:205: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11.
  await asyncio.wait(tasks)
/usr/src/homeassistant/homeassistant/components/group/notify.py:76: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11.
  await asyncio.wait(tasks)
/usr/src/homeassistant/homeassistant/components/homeassistant/__init__.py:205: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11.
  await asyncio.wait(tasks)
/usr/local/lib/python3.9/site-packages/pyipp/ipp.py:108: DeprecationWarning: with timeout() is deprecated, use async with timeout() instead
  with async_timeout.timeout(self.request_timeout):
/usr/src/homeassistant/homeassistant/components/homeassistant/__init__.py:205: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11.
  await asyncio.wait(tasks)
/usr/local/lib/python3.9/site-packages/pyipp/ipp.py:108: DeprecationWarning: with timeout() is deprecated, use async with timeout() instead
  with async_timeout.timeout(self.request_timeout):
/usr/src/homeassistant/homeassistant/components/group/notify.py:76: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11.
  await asyncio.wait(tasks)
/usr/src/homeassistant/homeassistant/components/media_player/__init__.py:999: DeprecationWarning: with timeout() is deprecated, use async with timeout() instead
  with suppress(asyncio.TimeoutError), async_timeout.timeout(10):
/usr/src/homeassistant/homeassistant/components/media_player/__init__.py:999: DeprecationWarning: with timeout() is deprecated, use async with timeout() instead
  with suppress(asyncio.TimeoutError), async_timeout.timeout(10):

@bachya
Copy link
Contributor

bachya commented Dec 10, 2021

Out of curiosity, can you temporarily disable all of your custom components and restart? If the logs go away, you know The issue lies in there.

@hmmbob
Copy link
Contributor Author

hmmbob commented Dec 10, 2021

These are all warnings in libs from core (see for example the last two warnings, they match 1-on-1 with https://github.com/home-assistant/core/blob/dev/homeassistant/components/media_player/__init__.py#L999 ).

BUT.....

With "Xiaomi Cloud Map Extractor" disabled, I'm not seeing any of these deprecation warnings in other components. I've disabled all custom_components (including HACS), rebooted several times when adding them ne-by-one back, and I did not see the warnings in the logs until "Xiaomi Cloud Map Extractor" was added back.

I know "custom component" doesn't get support from HA - but the warnings are thrown for core components. Is that to be expected?

(And don't get me wrong, I am perfectly happy to ignore the warnings as they are only visible when running docker logs -f homeassistant ;-) )

@balloob
Copy link
Member

balloob commented Dec 10, 2021

If you can access a console, install pipdeptree and run

pipdeptree -rp matplotlib

It will tell you which packages (in)directly depend on matplotlib.

@bachya
Copy link
Contributor

bachya commented Dec 10, 2021

@hmmbob I hear what you're saying, but we can't guarantee that core "stuff" will automatically jive with custom components (kind of like how a car manufacturer warranties that your battery will start the car, but makes no guarantees about using that battery to power a grill [even though "it's a battery and should work"]). A custom component may not be aware of what core "requires".

Perusing the upcoming release notes for 2021.12.0, there's a large section aimed at custom component developers: https://rc.home-assistant.io/blog/2021/12/03/release-202112/#updates-for-custom-integration-developers. Perhaps something there is relevant?

@hmmbob
Copy link
Contributor Author

hmmbob commented Dec 10, 2021

If you can access a console, install pipdeptree and run

pipdeptree -rp matplotlib

It will tell you which packages (in)directly depend on matplotlib.

pycocotools==2.0.1 is the only one that comes back, inside the HA container, which is tensorflow.. I am not using tensorflow though

@hmmbob
Copy link
Contributor Author

hmmbob commented Dec 10, 2021

@hmmbob I hear what you're saying, but we can't guarantee that core "stuff" will automatically jive with custom components (kind of like how a car manufacturer warranties that your battery will start the car, but makes no guarantees about using that battery to power a grill [even though "it's a battery and should work"]). A custom component may not be aware of what core "requires".

Perusing the upcoming release notes for 2021.12.0, there's a large section aimed at custom component developers: https://rc.home-assistant.io/blog/2021/12/03/release-202112/#updates-for-custom-integration-developers. Perhaps something there is relevant?

Not that I can tell, but I'm no dev. Just wondering if those deprecation warnings for core components should be taken care of before we can start using Python 3.11 - as the warnings seem to indicate that this will break.

@balloob
Copy link
Member

balloob commented Dec 10, 2021

The warnings for core integrations will be taken care off.

@hmmbob
Copy link
Contributor Author

hmmbob commented Dec 10, 2021

Great, thanks for that.

I'll just close this issue, as it is not breaking my install and only popping up due to a custom component. Thanks for checking both, appreciate it!

@Mariusthvdb
Copy link
Contributor

Not for my loggings, not using that. Tbh in assumed it to be custom apex chart card but haven't checked yet

@github-actions github-actions bot locked and limited conversation to collaborators Jan 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants