Python exception in check_online_updates

Bug #1875809 reported by Laurent Bonnaud
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bleachbit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi,

when I run bleachbit from a terminal, I see the following exception:

$ bleachbit
Error when checking for updates:
Traceback (most recent call last):
  File "/usr/share/bleachbit/bleachbit/GUI.py", line 1160, in check_online_updates
    updates = Update.check_updates(options.get('check_beta'),
  File "/usr/share/bleachbit/bleachbit/Update.py", line 155, in check_updates
    opener.addheaders = [('User-Agent', user_agent())]
  File "/usr/share/bleachbit/bleachbit/Update.py", line 87, in user_agent
    dist = platform.dist()
AttributeError: module 'platform' has no attribute 'dist'

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: bleachbit 3.9.0-1
Uname: Linux 5.6.7-050607-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: KDE
Date: Wed Apr 29 09:42:31 2020
PackageArchitecture: all
SourcePackage: bleachbit
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

Inside the bleachbit window there is also a similar exception:

Error when checking for updates:
Traceback (most recent call last):
  File "/usr/share/bleachbit/bleachbit/GUI.py", line 1160, in check_online_updates
    updates = Update.check_updates(options.get('check_beta'),
  File "/usr/share/bleachbit/bleachbit/Update.py", line 155, in check_updates
    opener.addheaders = [('User-Agent', user_agent())]
  File "/usr/share/bleachbit/bleachbit/Update.py", line 87, in user_agent
    dist = platform.dist()
AttributeError: module 'platform' has no attribute 'dist'

Revision history for this message
Christopher Burleson (misterq) wrote :

Greetings,

When I tried running bleachbit within the GUI, I also happened to experience a similar exception. Please see below:

Error when checking for updates:
Traceback (most recent call last):
  File "/usr/share/bleachbit/bleachbit/GUI.py", line 1160, in check_online_updates
    updates = Update.check_updates(options.get('check_beta'),
  File "/usr/share/bleachbit/bleachbit/Update.py", line 155, in check_updates
    opener.addheaders = [('User-Agent', user_agent())]
  File "/usr/share/bleachbit/bleachbit/Update.py", line 87, in user_agent
    dist = platform.dist()
AttributeError: module 'platform' has no attribute 'dist'

Please advise.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bleachbit (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrew Ziem (ahziem1) wrote :

This was fixed in BleachBit 4.0.0 with this pull request https://github.com/bleachbit/bleachbit/pull/826

Download the fixed BleachBit .deb package here https://www.bleachbit.org/download/linux . (If you do not see a package Ubuntu 20.04, use the package for Ubuntu 19.10)

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

This bug is fixed in BleachBit 4.0.0 indeed.
Thanks for the fix!

It would be nice to have it fixed in Ubuntu focal, too...

Revision history for this message
Andrew Ziem (ahziem1) wrote :

Laurent: Ubuntu generally does not update packages, so its packages for BleachBit are often behind. For example, Focal will always have BleachBit 3.9, Eoan will also have BleachBit 2.2, and so on. This policy has its pros and cons, but that's how it is.

tags: added: groovy hirsute
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bleachbit - 4.4.2-1

---------------
bleachbit (4.4.2-1) unstable; urgency=medium

  * Team upload

  [ Fabio Fantoni ]
  * New upstream release (Closes: #958344, #970229, #974530, #994094)
    (LP: #1957053, #1875809, #1933289)
  * Bump debhelper-compat to 13
  * d/control: add missed dependency gir1.2-notify-0.7
  * update d/copyright
  * d/control: specify that rules don't require root

  [ Jeremy Bicha ]
  * debian/control: Depend on pkexec

 -- Fabio Fantoni <email address hidden> Thu, 17 Mar 2022 08:55:46 -0400

Changed in bleachbit (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.