Skip to content

ModuleNotFoundError: No module named 'imp' when importing on Python 3.12+ #1

Description

@fcotizelati

Hello!

I’m encountering a problem when trying to import pydoppler 0.2.0 under Python 3.13.3. It appears that the library uses the imp module, which was removed in Python 3.12+. Here is the error I get:

$ python3
Python 3.13.3 (main, Apr  8 2025, 13:54:08) [Clang 17.0.0] on darwin
>>> import pydoppler
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    import pydoppler
  File "/opt/homebrew/lib/python3.13/site-packages/pydoppler/__init__.py", line 2, in <module>
    from .pydoppler import spruit, rebin_trail, stream, test_data
  File "/opt/homebrew/lib/python3.13/site-packages/pydoppler/pydoppler.py", line 4, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'
>>> exit()

Would it be possible to fix this issue so that pydoppler remains importable on Python 3.12+? Many thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions