Integration could not be installed | Error 500 | Phython Problem?

Hey Folks,
I have a really annoying problem and I don’t know if this is the right category, so if not let me know :-).
I had the custom Integration for Miele products.. It ran fine until it stops to do so. So I uninstalled it and tried to reinstall it. But i ran into a problem and unfortuately it’s not possible for me to install the custom integration anymore. I always get this error:
image
So first thing I did of course was to contact the custom Integration owner as I thoght it has to be a bug. But trobleshooting led to no solution, it seems to be no custom Integration related bug.
Bug-Ticket is here.

Error Details

Logger: homeassistant.util.package
Source: util/package.py:122
First occurred: 12:38:38 PM (3 occurrences)
Last logged: 12:38:41 PM

Unable to install package flatdict==4.0.1: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [11 lines of output] Traceback (most recent call last): File “”, line 2, in File “”, line 14, in File “/usr/local/lib/python3.12/site-packages/setuptools/init.py”, line 16, in import setuptools.version File “/usr/local/lib/python3.12/site-packages/setuptools/version.py”, line 1, in import pkg_resources File “/usr/local/lib/python3.12/site-packages/pkg_resources/init.py”, line 2191, in register_finder(pkgutil.ImpImporter, find_on_path) ^^^^^^^^^^^^^^^^^^^ AttributeError: module ‘pkgutil’ has no attribute ‘ImpImporter’. Did you mean: ‘zipimporter’? [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.

Log Details

Logger: aiohttp.server
Source: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:421
First occurred: 12:38:41 PM (1 occurrences)
Last logged: 12:38:41 PM

Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py”, line 452, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py”, line 543, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py”, line 114, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 91, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/forwarded.py”, line 227, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 235, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/headers.py”, line 31, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 149, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/decorators.py”, line 72, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 153, in post
return await super().post(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/data_validator.py”, line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py”, line 71, in post
result = await self._flow_mgr.async_init(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 947, in async_init
flow, result = await task
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 965, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 1076, in async_create_flow
handler = await _async_get_flow_handler(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 2294, in _async_get_flow_handler
await _load_integration(hass, domain, hass_config)
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 2270, in _load_integration
await async_process_deps_reqs(hass, hass_config, integration)
File “/usr/src/homeassistant/homeassistant/setup.py”, line 467, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File “/usr/src/homeassistant/homeassistant/requirements.py”, line 52, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/requirements.py”, line 175, in async_get_integration_with_requirements
await self._async_process_integration(integration, done)
File “/usr/src/homeassistant/homeassistant/requirements.py”, line 190, in _async_process_integration
await self.async_process_requirements(
File “/usr/src/homeassistant/homeassistant/requirements.py”, line 255, in async_process_requirements
await self._async_process_requirements(name, missing)
File “/usr/src/homeassistant/homeassistant/requirements.py”, line 293, in _async_process_requirements
raise RequirementsNotFound(name, list(failures))
homeassistant.requirements.RequirementsNotFound: Requirements for miele not found: [‘flatdict==4.0.1’].

So what you can read in the ticket, is that I already tried to set up a new instance of HA and the problem is not existent there, Integration could be installed and runs smoothly.

Ich bin nun etwas verzweifelt und habe angst meine komplette Installation neu aufsetzen zu müssen, denn die ist mittlerweile sehr umfangreich. Könnt ihr mir vielleicht einen Tip geben wie ich das Problem eingrenzen oder sogar lösen könnte?

My Prod System overview
Version core-2024.2.2
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
User root
Virtual Environment false
Python Version 3.12.1
Operating System Family Linux
Operating System Version 6.1.74-haos
CPU Architecture x86_64
Timezone Europe/Berlin
Configuration Directory /config

Home Assistant Community Store

MANAGE

GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.34.0
Stage running
Available Repositories 1405
Downloaded Repositories 50
HACS Data ok

Home Assistant Cloud

MANAGE

Logged In true
Subscription Expiration August 11, 2024 at 2:00 AM
Relayer Connected true
Relayer Region eu-central-1
Remote Enabled true
Remote Connected true
Alexa Enabled true
Google Enabled true
Remote Server eu-central-1-0.ui.nabu.casa
Certificate Status ready
Instance ID 0056dc4b97104c279a644e98985c9775
Reach Certificate Server ok
Reach Authentication Server ok
Reach Home Assistant Cloud ok

Home Assistant Supervisor

Host Operating System Home Assistant OS 11.5
Update Channel stable
Supervisor Version supervisor-2024.02.0
Agent Version 1.6.0
Docker Version 24.0.7
Disk Total 68.2 GB
Disk Used 46.0 GB
Healthy true
Supported true
Board ova
Supervisor API ok
Version API ok
Installed Add-ons Samba share (12.3.0), Terminal & SSH (9.9.0), File editor (5.8.0), Grafana (9.1.3), Node-RED (17.0.7), Mosquitto broker (6.4.0), ESPHome (2023.12.9), Studio Code Server (5.15.0), Z-Wave JS (0.4.4), Advanced SSH & Web Terminal (17.1.0), Portainer (2.19.4), CUPS (3.0.3), Fusion (2024.2.1)

Dashboards

MANAGE

Dashboards 3
Resources 34
Views 22
Mode storage

Recorder

Oldest Run Start Time February 12, 2024 at 8:43 AM
Current Run Start Time February 21, 2024 at 4:46 PM
Estimated Database Size (MiB) 2826.54 MiB
Database Engine sqlite
Database Version 3.44.2

Thank you in advance!

As nobody answers here is it maybe the wrong categrory?