Bug 2240292

Summary: [abrt] bottles: module(): generic.py:25:<module>:ModuleNotFoundError: No module named 'chardet'
Product: [Fedora] Fedora Reporter: chinh4thepro+redhat
Component: bottlesAssignee: Sandro <gui1ty>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: chinh4thepro+redhat, ego.cordatus, gui1ty, mail, maxwell, thunderbirdtr, walter.pete
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/8d2f02fd6d554139fff8187e69f083a8dd7d252
Whiteboard: abrt_hash:13bfb1832e17438ada95603c017d7c0f780f1982;VARIANT_ID=workstation;
Fixed In Version: bottles-51.9-1.fc39 bottles-51.9-5.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-26 00:18:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

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.