bimmerconnected / bimmer_connected

🚘 Library to query the status of your BMW or Mini from the ConnectedDrive portal
Apache License 2.0
365 stars 79 forks source link

ModuleNotFoundError: No module named 'importlib.metadata' #632

Closed zurnib closed 2 months ago

zurnib commented 2 months ago

Describe the issue

Hi,

when executing 'bimmerconnected' I get the above mentioned error. Searching google gives the following hint:

instead of

import importlib.metadata write

from importlib_metadata import metadata
if importlib_metadata module is not installed then first install via

pip install importlib-metadata detail: [https://stackoverflow.com/a/59734959/19428695]

Expected behavior

bimmerconnected is supposed to run

Which Home Assistant version are you using?

none

What was the last working version of Home Assistant Core?

No response

What is your region?

Rest of world

MyBMW website

Number of cars

Output of bimmer_connected fingerprint

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

rikroe commented 2 months ago

You are probably using a Python version < 3.8, which we do not support. Since Python 3.8, importlib.metadata is part of the core Python distribution.

See https://stackoverflow.com/a/76547876.

zurnib commented 2 months ago

Thanks - unfortunately installation of 3.12.x didn't work, but that's another problem...I'll keep trying