Bug 2240292 - [abrt] bottles: module(): generic.py:25:<module>:ModuleNotFoundError: No module named 'chardet'
Summary: [abrt] bottles: module(): generic.py:25:<module>:ModuleNotFoundError: No modu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bottles
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sandro
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:13bfb1832e17438ada95603c017...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-22 22:30 UTC by chinh4thepro+redhat
Modified: 2023-09-30 20:49 UTC (History)
7 users (show)

Fixed In Version: bottles-51.9-1.fc39 bottles-51.9-5.fc40
Clone Of:
Environment:
Last Closed: 2023-09-26 00:18:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (756 bytes, text/plain)
2023-09-22 22:30 UTC, chinh4thepro+redhat
no flags Details
File: environ (1.78 KB, text/plain)
2023-09-22 22:30 UTC, chinh4thepro+redhat
no flags Details
File: mountinfo (3.52 KB, text/plain)
2023-09-22 22:30 UTC, chinh4thepro+redhat
no flags Details
File: open_fds (1.23 KB, text/plain)
2023-09-22 22:30 UTC, chinh4thepro+redhat
no flags Details
File: namespaces (171 bytes, text/plain)
2023-09-22 22:30 UTC, chinh4thepro+redhat
no flags Details
File: backtrace (8.58 KB, text/plain)
2023-09-22 22:30 UTC, chinh4thepro+redhat
no flags Details
File: cpuinfo (3.08 KB, text/plain)
2023-09-22 22:30 UTC, chinh4thepro+redhat
no flags Details

Description chinh4thepro+redhat 2023-09-22 22:30:10 UTC
Version-Release number of selected component:
bottles-1:51.9-1.fc39

Additional info:
reporter:       libreport-2.17.11
kernel:         6.5.4-300.fc39.x86_64
cmdline:        /usr/bin/python3 /usr/bin/bottles
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-org.gnome.Software-3271.scope
uid:            1000
reason:         generic.py:25:<module>:ModuleNotFoundError: No module named 'chardet'
executable:     /usr/bin/bottles
type:           Python3
package:        bottles-1:51.9-1.fc39
runlevel:       N 5
exception_type: ModuleNotFoundError
crash_function: module
interpreter:    python3-3.12.0~rc3-1.fc39.x86_64

Truncated backtrace:
#1 [/usr/share/bottles/bottles/backend/utils/generic.py:25] <module>
#2 [/usr/share/bottles/bottles/backend/health.py:26] <module>
#3 [/usr/share/bottles/bottles/frontend/windows/main_window.py:27] <module>
#4 [/usr/share/bottles/bottles/frontend/main.py:36] <module>
#5 [/usr/bin/bottles:44] <module>

Comment 1 chinh4thepro+redhat 2023-09-22 22:30:13 UTC
Created attachment 1990137 [details]
File: os_info

Comment 2 chinh4thepro+redhat 2023-09-22 22:30:15 UTC
Created attachment 1990138 [details]
File: environ

Comment 3 chinh4thepro+redhat 2023-09-22 22:30:16 UTC
Created attachment 1990139 [details]
File: mountinfo

Comment 4 chinh4thepro+redhat 2023-09-22 22:30:18 UTC
Created attachment 1990140 [details]
File: open_fds

Comment 5 chinh4thepro+redhat 2023-09-22 22:30:19 UTC
Created attachment 1990141 [details]
File: namespaces

Comment 6 chinh4thepro+redhat 2023-09-22 22:30:21 UTC
Created attachment 1990142 [details]
File: backtrace

Comment 7 chinh4thepro+redhat 2023-09-22 22:30:23 UTC
Created attachment 1990143 [details]
File: cpuinfo

Comment 8 Sandro 2023-09-23 00:06:15 UTC
Thanks for the bug report.

I'm assuming it's looking for chardet from python3-chardet. Could you check if you have that installed: `rpm -qv python3-chardet`? If not, install it and see if it solves the issue. If so, I'll add it as a dependency to the package.

Comment 9 Fedora Update System 2023-09-24 16:11:59 UTC
FEDORA-2023-1886bcf803 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-1886bcf803

Comment 10 Fedora Update System 2023-09-26 00:18:04 UTC
FEDORA-2023-1886bcf803 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 osc97cure 2023-09-30 11:31:38 UTC
/usr/share/bottles/bottles/backend/utils/generic.py:95: SyntaxWarning: invalid escape sequence '\d'
  result.extend([int(t) if t.isdigit() else t.lower() for t in re.split('(\d+)', text)])
Traceback (most recent call last):
  File "/usr/bin/bottles", line 44, in <module>
    from bottles.frontend import main
  File "/usr/share/bottles/bottles/frontend/main.py", line 36, in <module>
    from bottles.frontend.windows.main_window import MainWindow
  File "/usr/share/bottles/bottles/frontend/windows/main_window.py", line 27, in <module>
    from bottles.backend.health import HealthChecker
  File "/usr/share/bottles/bottles/backend/health.py", line 26, in <module>
    from bottles.backend.utils.generic import is_glibc_min_available
  File "/usr/share/bottles/bottles/backend/utils/generic.py", line 25, in <module>
    import chardet
ModuleNotFoundError: No module named 'chardet'

Installed `python3-chardet`. Now it is working


reporter:       libreport-2.17.11
kernel:         6.5.5-300.fc39.x86_64
cmdline:        /usr/bin/python3 /usr/bin/bottles
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-com.usebottles.bottles-60740a67342746eba2bb84504889521c.scope
uid:            1000
reason:         generic.py:25:<module>:ModuleNotFoundError: No module named 'chardet'
executable:     /usr/bin/bottles
type:           Python3
package:        bottles-1:51.9-1.fc39
runlevel:       N 5
exception_type: ModuleNotFoundError
crash_function: module
interpreter:    python3-3.12.0~rc3-1.fc39.x86_64

Comment 12 Sandro 2023-09-30 11:52:12 UTC
(In reply to osc97cure from comment #11)
> Installed `python3-chardet`. Now it is working

Excellent! I'll add it to the requirements.

Comment 13 Fedora Update System 2023-09-30 20:47:21 UTC
FEDORA-2023-152dd78a7f has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-152dd78a7f

Comment 14 Fedora Update System 2023-09-30 20:49:45 UTC
FEDORA-2023-152dd78a7f 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.