Skip to content

ModuleNotFoundError: No module named 'importlib_resources' #358

@harold-spencer

Description

@harold-spencer

Summary
On updating to gptables 2.0.0 (via Artifactory within the ONS), when I attempt to run my code I get the above mentioned error.

Traceback

File "D:\Python Practice\3.10\rightmove_experiments\main.py", line 7, in <module>
    import gptables_test as gt
  File "D:\Python Practice\3.10\rightmove_experiments\gptables_test.py", line 3, in <module>
    import gptables as gpt
  File "D:\Python Practice\3.10\rightmove_experiments\.venv\Lib\site-packages\gptables\__init__.py", line 3, in <module>
    from gptables.core.api import (
    ...<2 lines>...
    )
  File "D:\Python Practice\3.10\rightmove_experiments\.venv\Lib\site-packages\gptables\core\api.py", line 10, in <module>
    from gptables.core.wrappers import GPWorkbook
  File "D:\Python Practice\3.10\rightmove_experiments\.venv\Lib\site-packages\gptables\core\wrappers.py", line 13, in <module>
    from gptables.utils.unpickle_themes import gptheme
  File "D:\Python Practice\3.10\rightmove_experiments\.venv\Lib\site-packages\gptables\utils\unpickle_themes.py", line 3, in <module>
    import importlib_resources
ModuleNotFoundError: No module named 'importlib_resources'

Resolution
Adding importlib_resources (>=6.5.2) to my dependencies resolved the issue. May be worth investigating adding that to your dependency list.

Thank you for this wonderful package! Please let me know if you need any additional information :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions