Skip to content

Python 3.13.1: No module named 'imp' #1489

Open
@autext

Description

i'm using python 3.13.1, and i have encountered a compatibility issue, i think.
when I run 'thefuck', it reports an error:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "D:\softwares\Python313\Scripts\thefuck.exe\__main__.py", line 4, in <module>
    from thefuck.entrypoints.main import main
  File "D:\softwares\Python313\Lib\site-packages\thefuck\entrypoints\main.py", line 8, in <module>
    from .. import logs  # noqa: E402
    ^^^^^^^^^^^^^^^^^^^
  File "D:\softwares\Python313\Lib\site-packages\thefuck\logs.py", line 8, in <module>
    from .conf import settings
  File "D:\softwares\Python313\Lib\site-packages\thefuck\conf.py", line 1, in <module>
    from imp import load_source
ModuleNotFoundError: No module named 'imp'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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