-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
Comments
What is your Python version? Here's what it looks like on Ubuntu 23.10
|
Updating Your Bug Report with Additional Information
Hi Andrew,
I'm writing to provide an update on the BleachBit bug I previously reported. I've updated my Python version from 3.7 to 3.11.5, and I'm still encountering issues.
System Information:
* Operating System: Ubuntu 24.03 Desktop
* Python Version: 3.11.5
Error Message:
I'm still encountering the following error messages when running BleachBit:
/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'
Terminal Output:
I've attached a copy of my terminal output showing the update process and the error messages I'm encountering.
Explanation:
The error messages seem to indicate that there are invalid escape sequences present in the BleachBit code. These escape sequences are used to represent special characters within strings, and the syntax used here is not valid for Python 3.11.5.
Next Steps:
I would appreciate it if you could investigate this issue further and provide any suggestions on how to resolve it. I'm happy to provide any additional information that you may need.
Attached Files:
* Terminal-output.txt
Thank you for your time and assistance.
Sincerely,
Anthony Autore LLB Syd. Cert & Diploma Information Technology UOW
From: Andrew Ziem ***@***.***>
Sent: Monday, March 4, 2024 8:44 AM
To: bleachbit/bleachbit ***@***.***>
Cc: Anthony Autore ***@***.***>; Author ***@***.***>
Subject: Re: [bleachbit/bleachbit] Syntax warnings in BleachBit 4.6.0-1 on Ubuntu 24.03 (Issue #1642)
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"
-
Reply to this email directly, view it on GitHub<#1642 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AY5S5I6R47DIFQOP6CHH4TTYWOKSHAVCNFSM6AAAAABEAP5CMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZVGM3DSMBVGE>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-headers-6.8.0-11 linux-headers-6.8.0-11-generic linux-image-6.8.0-11-generic
linux-modules-6.8.0-11-generic linux-modules-extra-6.8.0-11-generic
The following packages will be upgraded:
cpp-12 fonts-urw-base35 g++-12 gcc-12 gcc-12-base gsfonts-x11 libb-hooks-endofscope-perl
libgcc-12-dev libnvidia-compute-535 libstdc++-12-dev libsysmetrics1 linux-generic
linux-generic-hwe-22.04 linux-headers-generic linux-headers-generic-hwe-22.04
linux-image-generic linux-image-generic-hwe-22.04 linux-libc-dev python3-pip python3-pip-whl
python3-rich ubuntu-report unrar
23 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 294 MB of archives.
After this operation, 281 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://au.archive.ubuntu.com/ubuntu noble/main amd64 python3-rich all 13.7.0-1 [189 kB]
Get:2 http://au.archive.ubuntu.com/ubuntu noble/universe amd64 g++-12 amd64 12.3.0-15ubuntu1 [12.1 MB]
Get:3 http://au.archive.ubuntu.com/ubuntu noble/universe amd64 gcc-12 amd64 12.3.0-15ubuntu1 [21.6 MB]
Get:4 http://au.archive.ubuntu.com/ubuntu noble/universe amd64 libstdc++-12-dev amd64 12.3.0-15ubuntu1 [2,184 kB]
Get:5 http://au.archive.ubuntu.com/ubuntu noble/universe amd64 libgcc-12-dev amd64 12.3.0-15ubuntu1 [2,574 kB]
Get:6 http://au.archive.ubuntu.com/ubuntu noble/universe amd64 cpp-12 amd64 12.3.0-15ubuntu1 [10.8 MB]
Get:7 http://au.archive.ubuntu.com/ubuntu noble/universe amd64 gcc-12-base amd64 12.3.0-15ubuntu1 [45.5 kB]
Get:8 http://au.archive.ubuntu.com/ubuntu noble/main amd64 fonts-urw-base35 all 20200910-8 [11.0 MB]
Get:9 http://au.archive.ubuntu.com/ubuntu noble/universe amd64 gsfonts-x11 all 2:20200910-8 [17.0 kB]
Get:10 http://au.archive.ubuntu.com/ubuntu noble/main amd64 libb-hooks-endofscope-perl all 0.28-1 [15.8 kB]
Get:11 http://au.archive.ubuntu.com/ubuntu noble/restricted amd64 libnvidia-compute-535 amd64 535.161.07-0ubuntu3 [40.3 MB]
Get:12 http://au.archive.ubuntu.com/ubuntu noble/main amd64 libsysmetrics1 amd64 1.7.3 [2,119 kB]
Get:13 http://au.archive.ubuntu.com/ubuntu noble/main amd64 linux-modules-6.8.0-11-generic amd64 6.8.0-11.11 [38.2 MB]
Get:14 http://au.archive.ubuntu.com/ubuntu noble/main amd64 linux-image-6.8.0-11-generic amd64 6.8.0-11.11 [14.6 MB]
Get:15 http://au.archive.ubuntu.com/ubuntu noble/main amd64 linux-modules-extra-6.8.0-11-generic amd64 6.8.0-11.11 [114 MB]
Get:16 http://au.archive.ubuntu.com/ubuntu noble/main amd64 linux-generic amd64 6.8.0-11.11+1 [1,708 B]
Get:17 http://au.archive.ubuntu.com/ubuntu noble/main amd64 linux-image-generic amd64 6.8.0-11.11+1 [9,454 B]
Get:18 http://au.archive.ubuntu.com/ubuntu noble/main amd64 linux-headers-6.8.0-11 all 6.8.0-11.11 [13.6 MB]
Get:19 http://au.archive.ubuntu.com/ubuntu noble/main amd64 linux-headers-6.8.0-11-generic amd64 6.8.0-11.11 [3,869 kB]
Get:20 http://au.archive.ubuntu.com/ubuntu noble/main amd64 linux-headers-generic amd64 6.8.0-11.11+1 [9,330 B]
Get:21 http://au.archive.ubuntu.com/ubuntu noble/main amd64 linux-generic-hwe-22.04 amd64 6.8.0-11.11+1 [1,684 B]
Get:22 http://au.archive.ubuntu.com/ubuntu noble/main amd64 linux-image-generic-hwe-22.04 amd64 6.8.0-11.11+1 [9,478 B]
Get:23 http://au.archive.ubuntu.com/ubuntu noble/main amd64 linux-headers-generic-hwe-22.04 amd64 6.8.0-11.11+1 [9,358 B]
Get:24 http://au.archive.ubuntu.com/ubuntu noble/main amd64 linux-libc-dev amd64 6.8.0-11.11 [1,595 kB]
Get:25 http://au.archive.ubuntu.com/ubuntu noble/universe amd64 python3-pip all 24.0+dfsg-1 [1,316 kB]
Get:26 http://au.archive.ubuntu.com/ubuntu noble/universe amd64 python3-pip-whl all 24.0+dfsg-1 [1,702 kB]
Get:27 http://au.archive.ubuntu.com/ubuntu noble/main amd64 ubuntu-report amd64 1.7.3 [2,570 kB]
Get:28 http://au.archive.ubuntu.com/ubuntu noble/multiverse amd64 unrar amd64 1:7.0.7-1 [178 kB]
Fetched 294 MB in 50s (5,891 kB/s)
(Reading database ... 224159 files and directories currently installed.)
Preparing to unpack .../00-python3-rich_13.7.0-1_all.deb ...
Unpacking python3-rich (13.7.0-1) over (13.3.1-2) ...
Preparing to unpack .../01-g++-12_12.3.0-15ubuntu1_amd64.deb ...
Unpacking g++-12 (12.3.0-15ubuntu1) over (12.3.0-14ubuntu1) ...
Preparing to unpack .../02-gcc-12_12.3.0-15ubuntu1_amd64.deb ...
Unpacking gcc-12 (12.3.0-15ubuntu1) over (12.3.0-14ubuntu1) ...
Preparing to unpack .../03-libstdc++-12-dev_12.3.0-15ubuntu1_amd64.deb ...
Unpacking libstdc++-12-dev:amd64 (12.3.0-15ubuntu1) over (12.3.0-14ubuntu1) ...
Preparing to unpack .../04-libgcc-12-dev_12.3.0-15ubuntu1_amd64.deb ...
Unpacking libgcc-12-dev:amd64 (12.3.0-15ubuntu1) over (12.3.0-14ubuntu1) ...
Preparing to unpack .../05-cpp-12_12.3.0-15ubuntu1_amd64.deb ...
Unpacking cpp-12 (12.3.0-15ubuntu1) over (12.3.0-14ubuntu1) ...
Preparing to unpack .../06-gcc-12-base_12.3.0-15ubuntu1_amd64.deb ...
Unpacking gcc-12-base:amd64 (12.3.0-15ubuntu1) over (12.3.0-14ubuntu1) ...
Preparing to unpack .../07-fonts-urw-base35_20200910-8_all.deb ...
Unpacking fonts-urw-base35 (20200910-8) over (20200910-7) ...
Preparing to unpack .../08-gsfonts-x11_2%3a20200910-8_all.deb ...
Unpacking gsfonts-x11 (2:20200910-8) over (2:20200910-7) ...
Preparing to unpack .../09-libb-hooks-endofscope-perl_0.28-1_all.deb ...
Unpacking libb-hooks-endofscope-perl (0.28-1) over (0.26-1) ...
Preparing to unpack .../10-libnvidia-compute-535_535.161.07-0ubuntu3_amd64.deb ...
Unpacking libnvidia-compute-535:amd64 (535.161.07-0ubuntu3) over (535.146.02-0ubuntu1) ...
Preparing to unpack .../11-libsysmetrics1_1.7.3_amd64.deb ...
Unpacking libsysmetrics1:amd64 (1.7.3) over (1.7.2ubuntu0.1) ...
Selecting previously unselected package linux-modules-6.8.0-11-generic.
Preparing to unpack .../12-linux-modules-6.8.0-11-generic_6.8.0-11.11_amd64.deb ...
Unpacking linux-modules-6.8.0-11-generic (6.8.0-11.11) ...
Selecting previously unselected package linux-image-6.8.0-11-generic.
Preparing to unpack .../13-linux-image-6.8.0-11-generic_6.8.0-11.11_amd64.deb ...
Unpacking linux-image-6.8.0-11-generic (6.8.0-11.11) ...
Selecting previously unselected package linux-modules-extra-6.8.0-11-generic.
Preparing to unpack .../14-linux-modules-extra-6.8.0-11-generic_6.8.0-11.11_amd64.deb ...
Unpacking linux-modules-extra-6.8.0-11-generic (6.8.0-11.11) ...
Preparing to unpack .../15-linux-generic_6.8.0-11.11+1_amd64.deb ...
Unpacking linux-generic (6.8.0-11.11+1) over (6.6.0-14.14) ...
Preparing to unpack .../16-linux-image-generic_6.8.0-11.11+1_amd64.deb ...
Unpacking linux-image-generic (6.8.0-11.11+1) over (6.6.0-14.14) ...
Selecting previously unselected package linux-headers-6.8.0-11.
Preparing to unpack .../17-linux-headers-6.8.0-11_6.8.0-11.11_all.deb ...
Unpacking linux-headers-6.8.0-11 (6.8.0-11.11) ...
Selecting previously unselected package linux-headers-6.8.0-11-generic.
Preparing to unpack .../18-linux-headers-6.8.0-11-generic_6.8.0-11.11_amd64.deb ...
Unpacking linux-headers-6.8.0-11-generic (6.8.0-11.11) ...
Preparing to unpack .../19-linux-headers-generic_6.8.0-11.11+1_amd64.deb ...
Unpacking linux-headers-generic (6.8.0-11.11+1) over (6.6.0-14.14) ...
Preparing to unpack .../20-linux-generic-hwe-22.04_6.8.0-11.11+1_amd64.deb ...
Unpacking linux-generic-hwe-22.04 (6.8.0-11.11+1) over (6.6.0-14.14) ...
Preparing to unpack .../21-linux-image-generic-hwe-22.04_6.8.0-11.11+1_amd64.deb ...
Unpacking linux-image-generic-hwe-22.04 (6.8.0-11.11+1) over (6.6.0-14.14) ...
Preparing to unpack .../22-linux-headers-generic-hwe-22.04_6.8.0-11.11+1_amd64.deb ...
Unpacking linux-headers-generic-hwe-22.04 (6.8.0-11.11+1) over (6.6.0-14.14) ...
Preparing to unpack .../23-linux-libc-dev_6.8.0-11.11_amd64.deb ...
Unpacking linux-libc-dev:amd64 (6.8.0-11.11) over (6.6.0-14.14) ...
Preparing to unpack .../24-python3-pip_24.0+dfsg-1_all.deb ...
Unpacking python3-pip (24.0+dfsg-1) over (23.3+dfsg-1) ...
Preparing to unpack .../25-python3-pip-whl_24.0+dfsg-1_all.deb ...
Unpacking python3-pip-whl (24.0+dfsg-1) over (23.3+dfsg-1) ...
Preparing to unpack .../26-ubuntu-report_1.7.3_amd64.deb ...
Unpacking ubuntu-report (1.7.3) over (1.7.2ubuntu0.1) ...
Preparing to unpack .../27-unrar_1%3a7.0.7-1_amd64.deb ...
Unpacking unrar (1:7.0.7-1) over (1:7.0.6-1) ...
Setting up linux-headers-6.8.0-11 (6.8.0-11.11) ...
Setting up python3-pip-whl (24.0+dfsg-1) ...
Setting up python3-rich (13.7.0-1) ...
Setting up libsysmetrics1:amd64 (1.7.3) ...
Setting up linux-libc-dev:amd64 (6.8.0-11.11) ...
Setting up unrar (1:7.0.7-1) ...
Setting up fonts-urw-base35 (20200910-8) ...
Setting up gcc-12-base:amd64 (12.3.0-15ubuntu1) ...
Setting up libgcc-12-dev:amd64 (12.3.0-15ubuntu1) ...
Setting up python3-pip (24.0+dfsg-1) ...
Setting up linux-headers-6.8.0-11-generic (6.8.0-11.11) ...
Setting up ubuntu-report (1.7.3) ...
Setting up libnvidia-compute-535:amd64 (535.161.07-0ubuntu3) ...
Setting up linux-modules-6.8.0-11-generic (6.8.0-11.11) ...
Setting up linux-headers-generic-hwe-22.04 (6.8.0-11.11+1) ...
Setting up libb-hooks-endofscope-perl (0.28-1) ...
Setting up linux-modules-extra-6.8.0-11-generic (6.8.0-11.11) ...
Setting up cpp-12 (12.3.0-15ubuntu1) ...
Setting up libstdc++-12-dev:amd64 (12.3.0-15ubuntu1) ...
Setting up linux-headers-generic (6.8.0-11.11+1) ...
Setting up gsfonts-x11 (2:20200910-8) ...
Setting up linux-image-6.8.0-11-generic (6.8.0-11.11) ...
I: /boot/vmlinuz is now a symlink to vmlinuz-6.8.0-11-generic
I: /boot/initrd.img is now a symlink to initrd.img-6.8.0-11-generic
Setting up gcc-12 (12.3.0-15ubuntu1) ...
Setting up g++-12 (12.3.0-15ubuntu1) ...
Setting up linux-image-generic-hwe-22.04 (6.8.0-11.11+1) ...
Setting up linux-generic-hwe-22.04 (6.8.0-11.11+1) ...
Setting up linux-image-generic (6.8.0-11.11+1) ...
Setting up linux-generic (6.8.0-11.11+1) ...
Processing triggers for man-db (2.12.0-3) ...
Processing triggers for fontconfig (2.15.0-1ubuntu1) ...
Processing triggers for libc-bin (2.39-0ubuntu2) ...
Processing triggers for linux-image-6.8.0-11-generic (6.8.0-11.11) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.8.0-11-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-11-generic
Found initrd image: /boot/initrd.img-6.8.0-11-generic
Found linux image: /boot/vmlinuz-6.6.0-14-generic
Found initrd image: /boot/initrd.img-6.6.0-14-generic
Found memtest86+ 64bit EFI image: /memtest86+x64.efi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
(base) ***@***.***:~$ sudo apt update
[sudo] password for anthony:
Hit:1 http://au.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://au.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://au.archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 https://packages.microsoft.com/ubuntu/20.04/mssql-server-2022 focal InRelease
Hit:5 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
Hit:6 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:7 https://packages.microsoft.com/ubuntu/22.04/mssql-server-2022 jammy InRelease
Hit:8 https://repo.radeon.com/amdgpu/5.7.3/ubuntu jammy InRelease
Hit:9 https://repo.radeon.com/rocm/apt/5.7.3 jammy InRelease
Hit:10 https://ppa.launchpadcontent.net/gerardpuig/ppa/ubuntu mantic InRelease
Ign:11 https://ppa.launchpadcontent.net/openjdk-r/ppa/ubuntu noble InRelease
Err:12 https://ppa.launchpadcontent.net/openjdk-r/ppa/ubuntu noble Release
404 Not Found [IP: 185.125.190.80 443]
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/openjdk-r/ppa/ubuntu noble Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://packages.microsoft.com/ubuntu/20.04/mssql-server-2022 focal InRelease' doesn't support architecture 'i386'
(base) ***@***.***:~$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
language-pack-gnome-en libpython3-dev libpython3-stdlib python3 python3-dev python3-minimal
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 255 kB of archives.
After this operation, 195 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://au.archive.ubuntu.com/ubuntu noble/main amd64 libpython3-dev amd64 3.12.1-0ubuntu2 [9,998 B]
Get:2 http://au.archive.ubuntu.com/ubuntu noble/main amd64 python3-dev amd64 3.12.1-0ubuntu2 [26.7 kB]
Get:3 http://au.archive.ubuntu.com/ubuntu noble/main amd64 python3-minimal amd64 3.12.1-0ubuntu2 [27.0 kB]
Get:4 http://au.archive.ubuntu.com/ubuntu noble/main amd64 python3 amd64 3.12.1-0ubuntu2 [24.1 kB]
Get:5 http://au.archive.ubuntu.com/ubuntu noble/main amd64 libpython3-stdlib amd64 3.12.1-0ubuntu2 [9,738 B]
Get:6 http://au.archive.ubuntu.com/ubuntu noble/main amd64 language-pack-gnome-en all 1:24.04+20240302 [158 kB]
Fetched 255 kB in 0s (937 kB/s)
(Reading database ... 262111 files and directories currently installed.)
Preparing to unpack .../libpython3-dev_3.12.1-0ubuntu2_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.12.1-0ubuntu2) over (3.12.1-0ubuntu1) ...
Preparing to unpack .../python3-dev_3.12.1-0ubuntu2_amd64.deb ...
Unpacking python3-dev (3.12.1-0ubuntu2) over (3.12.1-0ubuntu1) ...
Preparing to unpack .../python3-minimal_3.12.1-0ubuntu2_amd64.deb ...
Unpacking python3-minimal (3.12.1-0ubuntu2) over (3.12.1-0ubuntu1) ...
Setting up python3-minimal (3.12.1-0ubuntu2) ...
(Reading database ... 262111 files and directories currently installed.)
Preparing to unpack .../python3_3.12.1-0ubuntu2_amd64.deb ...
running python pre-rtupdate hooks for python3.12...
Unpacking python3 (3.12.1-0ubuntu2) over (3.12.1-0ubuntu1) ...
Preparing to unpack .../libpython3-stdlib_3.12.1-0ubuntu2_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.12.1-0ubuntu2) over (3.12.1-0ubuntu1) ...
Preparing to unpack .../language-pack-gnome-en_1%3a24.04+20240302_all.deb ...
Unpacking language-pack-gnome-en (1:24.04+20240302) over (1:24.04+20240224) ...
Replacing files in old package language-pack-gnome-en-base (1:24.04+20231202) ...
Setting up language-pack-gnome-en (1:24.04+20240302) ...
Setting up libpython3-dev:amd64 (3.12.1-0ubuntu2) ...
Setting up libpython3-stdlib:amd64 (3.12.1-0ubuntu2) ...
Setting up python3 (3.12.1-0ubuntu2) ...
running python rtupdate hooks for python3.12...
/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 hijacking.')
/usr/share/bleachbit/bleachbit/Windows.py:157: SyntaxWarning: invalid escape sequence '\g'
for fn in glob.glob(os.path.expandvars('%TEMP%\gdbus-nonce-file-*')):
/usr/share/gdebi/GDebi/GDebiCli.py:159: SyntaxWarning: invalid escape sequence '\S'
c = findall("[[(](\S+)/\S+[])]", msg)[0].lower()
/usr/share/hplip/base/LedmWifi.py:34: SyntaxWarning: invalid escape sequence '\d'
http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I)
/usr/share/hplip/base/device.py:49: SyntaxWarning: invalid escape sequence '\d'
http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I)
/usr/share/hplip/base/g.py:304: SyntaxWarning: invalid escape sequence '\|'
spinner = "\|/-\|/-"
/usr/share/hplip/base/g.py:354: SyntaxWarning: invalid escape sequence '\d'
m = re.search('python(\d(\.\d){0,2})', ext_path) #get the python version where the .s
o file is found
/usr/share/hplip/base/imagesize.py:186: SyntaxWarning: invalid escape sequence '\#'
re.compile('\#define\s+\S+\s+\d+') : ('image/x-xbitmap', xbmsize),
/usr/share/hplip/base/imagesize.py:187: SyntaxWarning: invalid escape sequence '\/'
re.compile('\/\* XPM \*\/') : ('image/x-xpixmap', xpmsize),
/usr/share/hplip/base/imagesize.py:189: SyntaxWarning: invalid escape sequence '\*'
re.compile('^II\*\x00') : ('image/tiff', tiffsize),
/usr/share/hplip/base/logger.py:439: SyntaxWarning: invalid escape sequence '\<'
elem_start = re.findall("(\<\W{0,1}\w+) ?", line)[0]
/usr/share/hplip/base/logger.py:440: SyntaxWarning: invalid escape sequence '\]'
elem_finished = re.findall("([?|\]\]]*\>)", line)[0]
/usr/share/hplip/base/logger.py:442: SyntaxWarning: invalid escape sequence '\S'
attrs = re.findall("(\S*?\=\".*?\")", line)
/usr/share/hplip/base/models.py:37: SyntaxWarning: invalid escape sequence '\d'
pat_prod_num = re.compile("""(\d+)""", re.I)
/usr/share/hplip/base/models.py:428: SyntaxWarning: invalid escape sequence '\d'
re.compile('^r(\d+)-agent(\d+)-kind', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:429: SyntaxWarning: invalid escape sequence '\d'
re.compile('^r(\d+)-agent(\d+)-type', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:430: SyntaxWarning: invalid escape sequence '\d'
re.compile('^r(\d+)-agent(\d+)-sku', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:431: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-desc', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:432: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-virgin', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:433: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-dvc', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:434: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-kind', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:435: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-type', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:436: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-id', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:437: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-hp-ink', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:438: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-health-desc', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:439: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-health$', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:440: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-known', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:441: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-level', re.IGNORECASE) : TYPE_INT,
/usr/share/hplip/base/models.py:442: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-ack', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:443: SyntaxWarning: invalid escape sequence '\d'
re.compile('^agent(\d+)-sku', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/models.py:444: SyntaxWarning: invalid escape sequence '\d'
re.compile('^in-tray(\d+)', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:445: SyntaxWarning: invalid escape sequence '\d'
re.compile('^out-tray(\d+)', re.IGNORECASE) : TYPE_BOOL,
/usr/share/hplip/base/models.py:446: SyntaxWarning: invalid escape sequence '\d'
re.compile('^model(\d+)', re.IGNORECASE) : TYPE_STR,
/usr/share/hplip/base/password.py:212: SyntaxWarning: invalid escape sequence '\['
cb = cb.replace("[", "\[")
/usr/share/hplip/base/password.py:213: SyntaxWarning: invalid escape sequence '\]'
cb = cb.replace("]", "\]")
/usr/share/hplip/base/queues.py:48: SyntaxWarning: invalid escape sequence '\*'
NICKNAME_PATTERN = re.compile(b'''\*NickName:\s*\"(.*)"''', re.MULTILINE)
/usr/share/hplip/base/status.py:1335: SyntaxWarning: invalid escape sequence '\s'
pjl_code_pat = re.compile("""^CODE\s*=\s*(\d.*)$""", re.IGNORECASE)
/usr/share/hplip/base/tui.py:220: SyntaxWarning: invalid escape sequence '\|'
self.spinner = "\|/-\|/-*"
/usr/share/hplip/base/utils.py:150: SyntaxWarning: invalid escape sequence '\w'
lis = ((re.findall('SystemGroup [\w* ]*',fp.read()))[0].replace('SystemGroup ','')).split(' ')
/usr/share/hplip/base/utils.py:1584: SyntaxWarning: invalid escape sequence '\*'
USAGE_LOGGING2 = ("", "<level>: none, info\*, error, warn, debug (\*default)", "option", False)
/usr/share/hplip/base/utils.py:1592: SyntaxWarning: invalid escape sequence '\*'
USAGE_BUS2 = ("", "<bus>: cups\*, usb\*, net, bt, fw, par\* (\*defaults) (Note: bt and fw not su
pported in this release.)", 'option', False)
/usr/share/hplip/base/utils.py:1598: SyntaxWarning: invalid escape sequence '\*'
USAGE_STD_NOTES2 = ("If -p\* is specified, the default CUPS printer will be used.", "", "note",
False)
/usr/share/hplip/base/utils.py:1826: SyntaxWarning: invalid escape sequence '\-'
log.info(".SH NAME\n%s \- %s" % (crumb, title))
/usr/share/hplip/base/utils.py:1925: SyntaxWarning: invalid escape sequence '\w'
return re.sub("&#?\w+;", fixup, text)
/usr/share/hplip/base/utils.py:1978: SyntaxWarning: invalid escape sequence '\d'
pat=re.compile('''(\d{1,})([a-z]{1,})''')
/usr/share/hplip/check.py:630: SyntaxWarning: invalid escape sequence '\s'
lsusb_pat = re.compile("""^Bus\s([0-9a-fA-F]{3,3})\sDevice\s([0-9a-fA-F]{3,3}):\sID\s([0-9a-fA-F
]{4,4}):([0-9a-fA-F]{4,4})(.*)""", re.IGNORECASE)
/usr/share/hplip/fax/ledmfax.py:46: SyntaxWarning: invalid escape sequence '\d'
http_result_pat = re.compile(b"""HTTP/\d.\d\s(\d+)""", re.I)
/usr/share/hplip/fax/soapfax.py:44: SyntaxWarning: invalid escape sequence '\d'
http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I)
/usr/share/hplip/installer/dcheck.py:35: SyntaxWarning: invalid escape sequence '\d'
ver1_pat = re.compile("""(\d+\.\d+\.\d+)""", re.IGNORECASE)
/usr/share/hplip/installer/dcheck.py:36: SyntaxWarning: invalid escape sequence '\d'
ver_pat = re.compile("""(\d+\.\d+)""", re.IGNORECASE)
/usr/share/hplip/installer/dcheck.py:360: SyntaxWarning: invalid escape sequence '\d'
xsane_ver_pat =re.compile('''xsane-(\d{1,}\.\d{1,}).*''')
/usr/share/hplip/makeuri.py:49: SyntaxWarning: invalid escape sequence '\*'
("To specify the port on a multi-port JetDirect:", "-p<port> or --port=<port> (Valid values are
1\*, 2, and 3. \*default)", "option", False),
/usr/share/hplip/prnt/cups.py:170: SyntaxWarning: invalid escape sequence '\s'
pat_cups_error_log = re.compile("""^loglevel\s?(debug|debug2|warn|info|error|none)""", re.I)
/usr/share/hplip/probe.py:45: SyntaxWarning: invalid escape sequence '\*'
("", "<bus>: cups, usb\*, net, bt, fw, par (\*default) (Note: bt and fw not supported in this re
lease.)", "option", False),
/usr/share/hplip/probe.py:49: SyntaxWarning: invalid escape sequence '\*'
("", "<filter list>: comma separated list of one or more of: scan, pcard, fax, copy, or none\*.
(\*none is the default)", "option", False),
/usr/share/hplip/scan.py:254: SyntaxWarning: invalid escape sequence '\*'
("Scan mode:", "-m<mode> or --mode=<mode>. Where <mode> is 'gray'\*, 'color' or 'lineart'.", "op
tion", False),
/usr/share/hplip/scan.py:271: SyntaxWarning: invalid escape sequence '\*'
("", "where <units> is 'mm'\*, 'cm', 'in', 'px', or 'pt' ('mm' is default).", "option", False),
/usr/share/hplip/setup.py:82: SyntaxWarning: invalid escape sequence '\*'
("To specify the port on a multi-port JetDirect:", "--port=<port> (Valid values are 1\*, 2, and
3. \*default)", "option", False),
/usr/share/hplip/setup.py:86: SyntaxWarning: invalid escape sequence '\*'
("Type of queue(s) to install:", "-t<typelist> or --type=<typelist>. <typelist>: print*, fax\* (
\*default) (-i mode only)", "option", False),
/usr/lib/rhythmbox/plugins/alternative-toolbar/alttoolbar_plugins.py:171: SyntaxWarning: invalid e
scape sequence '\('
translation = re.sub('\(..\)', '', translation, flags=re.DOTALL)
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/AstrawebParser.py:64: SyntaxWarning: invalid es
cape sequence '\/'
url = re.split('(\/display[^"]*)', entry)[1]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/AstrawebParser.py:66: SyntaxWarning: invalid es
cape sequence '\/'
title = re.split('(\/display[^>]*)([^<]*)', entry)[2][1:].strip()
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/AstrawebParser.py:97: SyntaxWarning: invalid es
cape sequence '\/'
lyrics = re.split('(<font face=arial size=2>)(.*)(<\/font><br></td><td*)', result)[2]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/JetlyricsParser.py:50: SyntaxWarning: invalid e
scape sequence '\.'
m = re.search('<a href=\'(http://jetlyrics\.com/viewlyrics\.php\?id=[0-9]*)\'>', result)
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/JlyricParser.py:49: SyntaxWarning: invalid esca
pe sequence '\.'
m = re.search('<div class=\'title\'><a href=\'(/artist/[^\.]*\.html)\'>', result)
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/TerraParser.py:39: SyntaxWarning: invalid escap
e sequence '\w'
pattern = re.compile("&(#?\w+?);")
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/WinampcnParser.py:87: SyntaxWarning: invalid es
cape sequence '\['
lrcplaintext = re.sub('\[.*?\]', '', lrcplaintext)
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning: invalid escape seq
uence '\('
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)", "\([^\)]*version\)",
"\([^\)]*edit\)", "\(feat[^\)]*\)"]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning: invalid escape seq
uence '\('
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)", "\([^\)]*version\)",
"\([^\)]*edit\)", "\(feat[^\)]*\)"]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning: invalid escape seq
uence '\('
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)", "\([^\)]*version\)",
"\([^\)]*edit\)", "\(feat[^\)]*\)"]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning: invalid escape seq
uence '\('
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)", "\([^\)]*version\)",
"\([^\)]*edit\)", "\(feat[^\)]*\)"]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning: invalid escape seq
uence '\('
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)", "\([^\)]*version\)",
"\([^\)]*edit\)", "\(feat[^\)]*\)"]
/usr/lib/x86_64-linux-gnu/rhythmbox/plugins/lyrics/lyrics.py:44: SyntaxWarning: invalid escape seq
uence '\('
LYRIC_TITLE_STRIP=["\(live[^\)]*\)", "\(acoustic[^\)]*\)", "\([^\)]*mix\)", "\([^\)]*version\)",
"\([^\)]*edit\)", "\(feat[^\)]*\)"]
running python post-rtupdate hooks for python3.12...
Setting up python3-dev (3.12.1-0ubuntu2) ...
Processing triggers for man-db (2.12.0-3) ...
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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) ...
"
The text was updated successfully, but these errors were encountered: