Bug 2246042 - [abrt] thefuck: module(): conf.py:1:<module>:ModuleNotFoundError: No module named 'imp'
Summary: [abrt] thefuck: module(): conf.py:1:<module>:ModuleNotFoundError: No module n...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: thefuck
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Arthur Bols
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:5976aa1f6810cdf32d4b6b4b0e8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-10-25 05:31 UTC by son77391
Modified: 2024-01-25 15:00 UTC (History)
3 users (show)

Fixed In Version: thefuck-3.32-11.fc40
Clone Of:
Environment:
Last Closed: 2024-01-25 15:00:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (770 bytes, text/plain)
2023-10-25 05:31 UTC, son77391
no flags Details
File: mountinfo (3.07 KB, text/plain)
2023-10-25 05:31 UTC, son77391
no flags Details
File: open_fds (309 bytes, text/plain)
2023-10-25 05:31 UTC, son77391
no flags Details
File: namespaces (171 bytes, text/plain)
2023-10-25 05:31 UTC, son77391
no flags Details
File: backtrace (7.88 KB, text/plain)
2023-10-25 05:31 UTC, son77391
no flags Details
File: cpuinfo (2.30 KB, text/plain)
2023-10-25 05:31 UTC, son77391
no flags Details
File: environ (2.87 KB, text/plain)
2023-10-25 05:31 UTC, son77391
no flags Details

Description son77391 2023-10-25 05:31:28 UTC
Description of problem:
thefuck 3.32 on rawhide causes:
Traceback (most recent call last):
  File "/usr/bin/thefuck", line 5, in <module>
    from thefuck.entrypoints.main import main
  File "/usr/lib/python3.12/site-packages/thefuck/entrypoints/main.py", line 8, in <module>
    from .. import logs  # noqa: E402
    ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/thefuck/logs.py", line 8, in <module>
    from .conf import settings
  File "/usr/lib/python3.12/site-packages/thefuck/conf.py", line 1, in <module>
    from imp import load_source
ModuleNotFoundError: No module named 'imp'

----
just install and run to reproduce bug.

Version-Release number of selected component:
thefuck-3.32-10.fc39

Additional info:
reporter:       libreport-2.17.11
kernel:         6.6.0-0.rc7.54.fc40.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/thefuck
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-2a0f0ef6-3783-4a67-b9bf-1efc5e0c2e92.scope
uid:            1000
reason:         conf.py:1:<module>:ModuleNotFoundError: No module named 'imp'
executable:     /usr/bin/thefuck
type:           Python3
package:        thefuck-3.32-10.fc39
runlevel:       N 5
exception_type: ModuleNotFoundError
crash_function: module
interpreter:    python3-3.12.0-2.fc40.x86_64

Truncated backtrace:
#1 [/usr/lib/python3.12/site-packages/thefuck/conf.py:1] <module>
#2 [/usr/lib/python3.12/site-packages/thefuck/logs.py:8] <module>
#3 [/usr/lib/python3.12/site-packages/thefuck/entrypoints/main.py:8] <module>
#4 [/usr/bin/thefuck:5] <module>

Comment 1 son77391 2023-10-25 05:31:31 UTC
Created attachment 1995361 [details]
File: os_info

Comment 2 son77391 2023-10-25 05:31:33 UTC
Created attachment 1995362 [details]
File: mountinfo

Comment 3 son77391 2023-10-25 05:31:35 UTC
Created attachment 1995363 [details]
File: open_fds

Comment 4 son77391 2023-10-25 05:31:37 UTC
Created attachment 1995364 [details]
File: namespaces

Comment 5 son77391 2023-10-25 05:31:38 UTC
Created attachment 1995365 [details]
File: backtrace

Comment 6 son77391 2023-10-25 05:31:39 UTC
Created attachment 1995366 [details]
File: cpuinfo

Comment 7 son77391 2023-10-25 05:31:41 UTC
Created attachment 1995367 [details]
File: environ

Comment 8 Fedora Update System 2024-01-25 14:53:38 UTC
FEDORA-2024-6cd733cb83 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-6cd733cb83

Comment 9 Fedora Update System 2024-01-25 15:00:30 UTC
FEDORA-2024-6cd733cb83 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.