Skip to content

'No module named issue' when running mqttwarn on Python 3.8.10 #699

@pdt590

Description

@pdt590
  • Python 3.8.10
  • pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
Traceback (most recent call last):
  File "/home/akila/.local/lib/python3.8/site-packages/mqttwarn/util.py", line 6, in <module>
    from importlib.resources import files as resource_files  # type: ignore[attr-defined]
ImportError: cannot import name 'files' from 'importlib.resources' (/usr/lib/python3.8/importlib/resources.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/akila/.local/bin/mqttwarn", line 5, in <module>
    from mqttwarn.commands import run
  File "/home/akila/.local/lib/python3.8/site-packages/mqttwarn/commands.py", line 16, in <module>
    from mqttwarn.configuration import Config, load_configuration
  File "/home/akila/.local/lib/python3.8/site-packages/mqttwarn/configuration.py", line 12, in <module>
    from mqttwarn.util import load_functions
  File "/home/akila/.local/lib/python3.8/site-packages/mqttwarn/util.py", line 8, in <module>
    from importlib_resources import files as resource_files  # type: ignore[no-redef]
ModuleNotFoundError: No module named 'importlib_resources'

Can you help me to clarify this issue?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions