[mythtv] Question about python

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Wed Jul 10 01:07:57 UTC 2024


On Sat, Jun 29, 2024 at 09:32:55AM -0400, Peter Bennett wrote:
> I am upgrading my systems to Ubuntu 24.04 and I have a question about the
> python dependencies. Th deb-light script has a number of python dependencies
> listed, among them is python3-future. The full list is as follows
> 
>  python3-lxml, python3-mysqldb, python3-future , python3-requests,
> python3-requests-cache,
> 
> When installing the package there are a number of error messages from the
> python3-future package, see below. Do we still need python3-future? Is this
> anything to worry about?
> 
> Peter
> 
> Setting up python3-future (0.18.2-6ubuntu2) ...
> update-alternatives: using /usr/bin/python3-futurize to provide
> /usr/bin/futurize (futurize) in auto mode
> update-alternatives: using /usr/bin/python3-pasteurize to provide
> /usr/bin/pasteurize (pasteurize) in auto mode
> /usr/lib/python3/dist-packages/future/backports/email/_header_value_parser.py:662:
> SyntaxWarning: invalid escape sequence '\('
>   '(', '\(').replace(
> /usr/lib/python3/dist-packages/future/backports/email/_header_value_parser.py:663:
> SyntaxWarning: invalid escape sequence '\)'
>   ')', '\)')

Those look like the warnings you get when you have regex escapes in normal
strings in newer releases of python.  You have to either use raw strings,
or escape the \ instead so that the strings used for regex contains the
escape.  Older versions of python just ignored invalid escape sequences
and passed them through.  Now you get a warning about it and I suspect
in the future they will stop working.

python future version 1.0.0 released this year fixes this and is hence
python 3.12+ compatible.

https://python-future.org/whatsnew.html#what-s-new-in-version-1-0-0-2024-02-21

-- 
Len Sorensen


More information about the mythtv-dev mailing list