Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax warnings in BleachBit 4.6.0-1 on Ubuntu 24.03 #1642

Open
anthonyrevolution4 opened this issue Feb 29, 2024 · 2 comments
Open

Syntax warnings in BleachBit 4.6.0-1 on Ubuntu 24.03 #1642

anthonyrevolution4 opened this issue Feb 29, 2024 · 2 comments
Labels
Milestone

Comments

@anthonyrevolution4
Copy link

Description:

I encountered several SyntaxWarnings during the installation of BleachBit 4.6.0-1 on my Ubuntu 24.03 system. These warnings occurred in various files within the BleachBit code.

Steps to Reproduce:

Open a terminal window.
Run the following command: sudo apt install bleachbit -y
Observe the output during the installation process.
Expected Result:

The installation should complete successfully without any warnings.

Actual Result:

The installation completes successfully, but several lines containing "SyntaxWarning" appear in the output. These lines specify the file, line number, and the specific character causing the warning.

Additional Information:

Operating System: Ubuntu 24.03
BleachBit Version: 4.6.0-1
Warnings:
/usr/share/bleachbit/bleachbit/Action.py:42 (invalid escape sequence '[')
(list all other warnings with file, line number and message)This is the actual message from the Terminal
"sudo apt install bleachbit -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
bleachbit
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 543 kB of archives.
After this operation, 2,958 kB of additional disk space will be used.
Get:1 http://au.archive.ubuntu.com/ubuntu noble/universe amd64 bleachbit all 4.6.0-1 [543 kB]
Fetched 543 kB in 0s (2,047 kB/s)
Selecting previously unselected package bleachbit.
(Reading database ... 228224 files and directories currently installed.)
Preparing to unpack .../bleachbit_4.6.0-1_all.deb ...
Unpacking bleachbit (4.6.0-1) ...
Setting up bleachbit (4.6.0-1) ...
/usr/share/bleachbit/bleachbit/Action.py:42: SyntaxWarning: invalid escape sequence '['
return re.search('[?[]]', s) is not None
/usr/share/bleachbit/bleachbit/Cleaner.py:402: SyntaxWarning: invalid escape sequence '\W'
'$LocalAppData\Microsoft\Windows\WER\ReportQueue\
\',
/usr/share/bleachbit/bleachbit/Cleaner.py:419: SyntaxWarning: invalid escape sequence '\F'
'$windir\Microsoft.NET\Framework**.log',
/usr/share/bleachbit/bleachbit/Cleaner.py:432: SyntaxWarning: invalid escape sequence '\E'
'$windir\system32\LogFiles\WMI\RTBackup\EtwRT.etl',
/usr/share/bleachbit/bleachbit/Memory.py:67: SyntaxWarning: invalid escape sequence '\w'
ret = re.search('^swapoff (\w
)?(/[\w/.-]+)$', swapoff)
/usr/share/bleachbit/bleachbit/Memory.py:159: SyntaxWarning: invalid escape sequence '\s'
if not re.search('Filename\s+Type\s+Size', line):
/usr/share/bleachbit/bleachbit/Memory.py:162: SyntaxWarning: invalid escape sequence '\s'
ret = re.search("%s\s+\w+\s+([0-9]+)\s" % device, line)
/usr/share/bleachbit/bleachbit/Unix.py:67: SyntaxWarning: invalid escape sequence '.'
"""Adds a filter consisting of a prefix and a postfix
/usr/share/bleachbit/bleachbit/Unix.py:652: SyntaxWarning: invalid escape sequence '.'
paths = re.findall('/[/a-z.*]+', stdout)
/usr/share/bleachbit/bleachbit/Unix.py:720: SyntaxWarning: invalid escape sequence '\d'
cregex = re.compile("Freed space: ([\d.]+[\s]+[BkMG])")
/usr/share/bleachbit/bleachbit/Windows.py:21: SyntaxWarning: invalid escape sequence '\S'
"""
/usr/share/bleachbit/bleachbit/Windows.py:141: SyntaxWarning: invalid escape sequence '\ '
msg = _('The file python3.dll was found in c:\ or c:\dlls, which indicates a possible attempt at DLL search-order hijackin
g.')
/usr/share/bleachbit/bleachbit/Windows.py:157: SyntaxWarning: invalid escape sequence '\g'
for fn in glob.glob(os.path.expandvars('%TEMP%\gdbus-nonce-file-
')):
Processing triggers for gnome-menus (3.36.0-1.1ubuntu1) ...
Processing triggers for man-db (2.12.0-3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu5) ...
"

@az0 az0 added this to the 5.0 milestone Mar 3, 2024
@az0
Copy link
Member

az0 commented Mar 3, 2024

What is your Python version?

Here's what it looks like on Ubuntu 23.10

$ python3 --version
Python 3.11.6
$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=23.10
DISTRIB_CODENAME=mantic
DISTRIB_DESCRIPTION="Ubuntu 23.10"

@anthonyrevolution4
Copy link
Author

anthonyrevolution4 commented Mar 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants