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

ModuleNotFoundError: No module named 'pyplumio' after integration update #170

Closed
5 of 10 tasks
Safs opened this issue Jan 4, 2025 · 7 comments
Closed
5 of 10 tasks
Labels
bug Something isn't working

Comments

@Safs
Copy link

Safs commented Jan 4, 2025

Is there an existing issue for this?

  • I have searched the existing issues

I'm having the following issue:

HA show Invalid cinfig, please see log.

I have following devices connected:

  • ecoMAX 3xx series
  • ecoMAX 8xx series
  • ecoMAX 9xx series
  • Expansion module B
  • Expansion module C
  • ecoSTER 200/ecoSTER Touch
  • ecoLAMBDA
  • ecoNET 300

I'm connecting to my devices using:

Ethernet/WiFi to RS-485 converter

I'm seeing following log messages:

Logger: homeassistant.setup
Source: setup.py:334
First occurred: 13:27:08 (1 occurrences)
Last logged: 13:27:08

Setup failed for custom integration 'plum_ecomax': Unable to import component: No module named 'pyplumio'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component
    component = await integration.async_get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1035, in async_get_component
    self._component_future.result()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1015, in async_get_component
    comp = await self.hass.async_add_import_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        self._get_component, True
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1075, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/plum_ecomax/__init__.py", line 21, in <module>
    from pyplumio.filters import custom, delta
ModuleNotFoundError: No module named 'pyplumio'

My diagnostics data:

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Safs Safs added the bug Something isn't working label Jan 4, 2025
@denpamusic
Copy link
Owner

denpamusic commented Jan 4, 2025

Hi,

Thank you for the feedback!

That means, that for some reason HA didn't install PyPlumIO package during startup.

Try doing the following:

  • Remove the integration
  • Restart HA
  • Reinstall the integration
  • Restart HA again

This should force HA to install integration dependencies.

@Safs
Copy link
Author

Safs commented Jan 4, 2025

Now I can't add integration:
Config flow could not be loaded: {"message":"Invalid handler specified"}

@denpamusic
Copy link
Owner

Couple more questions then. Are you using hacs? Did you restart HA after reinstalling integration and waited for a couple minutes afterwards. Did anything related to integration appear in the log?

@danielkovarik2
Copy link

Hello @denpamusic , I have a similar issue.
After updating HA to 2025 version I updated this integration to 0.4.10, but it couldn't be loaded and from logs it was indicating missing requirement - pyplumio. So I followed your advice here (remove, restart, add, restart) and now, when I am adding the integration under Settings->Devices & Services-> Integrations->Add Integration->Plum ecoMAX It briefly says

Please wait, starting configuration wizard for Plum ecoMAX

but after couple seconds it ends with

Error: Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble

In logs I can see:

Unable to install package pyplumio==0.5.30: error: Failed to fetch: https://files.pythonhosted.org/packages/61/04/810c30f8c95c27e2e350704885f32b92ab03b4b9dfc51cc7040b839526ed/PyPlumIO-0.5.30-py3-none-any.whl.metadata Caused by: Could not connect, are you offline? Caused by: Request failed after 3 retries Caused by: error sending request for url (https://files.pythonhosted.org/packages/61/04/810c30f8c95c27e2e350704885f32b92ab03b4b9dfc51cc7040b839526ed/PyPlumIO-0.5.30-py3-none-any.whl.metadata) Caused by: client error (Connect) Caused by: dns error: failed to lookup address information: Name does not resolve Caused by: failed to lookup address information: Name does not resolve

  • I haven't changed anything on my DNS setup.
  • I am able to wget the url from HA terminal without any issue
Image

@danielkovarik2
Copy link

Update - manage to fix the issue by adding google dns to ha network settings

@Safs
Copy link
Author

Safs commented Jan 16, 2025

After removing and install again, now it working.

@Safs Safs closed this as completed Jan 16, 2025
@denpamusic
Copy link
Owner

There was some major PyPI outage on January, 4th, reported on https://status.python.org/, so original issue is probably related to that.
Image
There was no downtime reported today though, so it's kind of weird.
Still it's not really the issue with integration, but if possible I'll need to find and document a better way to retry dependence installation other then reinstalling the whole integration.

@denpamusic denpamusic changed the title Invalif config ModuleNotFoundError: No module named 'pyplumio' after integration update Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants