Bug 2260646 - TMUX_VAR_RE does not use raw string, leading to SyntaxWarning with python 3.12
Summary: TMUX_VAR_RE does not use raw string, leading to SyntaxWarning with python 3.12
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: powerline
Version: 39
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Christoph Erhardt
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/powerline/powerlin...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-27 17:40 UTC by Alex Haydock
Modified: 2024-02-09 01:51 UTC (History)
3 users (show)

Fixed In Version: powerline-2.8.3-14.fc40 powerline-2.8.3-14.el9 powerline-2.8.3-14.fc39 powerline-2.8.3-14.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-01-31 21:43:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alex Haydock 2024-01-27 17:40:03 UTC
I'm seeing the bug in the linked GitHub issue on Fedora Silverblue 39 with the powerline and powerline-fonts package added.

An example, that turns up upon every shell start:

```
/usr/lib/python3.12/site-packages/powerline/bindings/config.py:179: SyntaxWarning: invalid escape sequence '\$'
  TMUX_VAR_RE = re.compile('\$(_POWERLINE_\w+)')
/usr/lib/python3.12/site-packages/powerline/bindings/config.py:179: SyntaxWarning: invalid escape sequence '\$'
  TMUX_VAR_RE = re.compile('\$(_POWERLINE_\w+)')
/usr/lib/python3.12/site-packages/powerline/bindings/config.py:179: SyntaxWarning: invalid escape sequence '\$'
  TMUX_VAR_RE = re.compile('\$(_POWERLINE_\w+)')
user@framework:~$
```

There doesn't seem to have been an upstream tagged release of Powerline for a while, but there is a one line fix available which might be easy enough to cherry-pick the commit from and pull into the Fedora package: https://github.com/powerline/powerline/pull/2245/files

Reproducible: Always

Steps to Reproduce:
1. Install Fedora Silverblue 39
2. Install the powerline and powerline-fonts packages
3. Add the Powerline start script to .bashrc or to /etc/profile.d as described in: https://fedoramagazine.org/add-power-terminal-powerline/
4. Open a terminal and observe the error above
Actual Results:  
The error above, reproducible by others as described in the GitHub issue (not my own) and fixed upstream already.

Expected Results:  
No Python errors when opening a new terminal.

Comment 1 Fedora Update System 2024-01-31 21:40:39 UTC
FEDORA-2024-6a97625bab has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-6a97625bab

Comment 2 Fedora Update System 2024-01-31 21:43:20 UTC
FEDORA-2024-6a97625bab has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2024-01-31 22:02:13 UTC
FEDORA-2024-8150243988 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-8150243988

Comment 4 Fedora Update System 2024-01-31 22:13:24 UTC
FEDORA-2024-786b7be5fa has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-786b7be5fa

Comment 5 Fedora Update System 2024-01-31 22:26:02 UTC
FEDORA-EPEL-2024-dffc62beeb has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-dffc62beeb

Comment 6 Fedora Update System 2024-02-01 01:31:21 UTC
FEDORA-2024-786b7be5fa has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-786b7be5fa`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-786b7be5fa

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-02-01 02:08:28 UTC
FEDORA-EPEL-2024-dffc62beeb has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-dffc62beeb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-02-01 02:46:22 UTC
FEDORA-2024-8150243988 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8150243988`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8150243988

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2024-02-09 01:01:59 UTC
FEDORA-EPEL-2024-dffc62beeb (powerline-2.8.3-14.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2024-02-09 01:25:19 UTC
FEDORA-2024-8150243988 (powerline-2.8.3-14.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2024-02-09 01:51:05 UTC
FEDORA-2024-786b7be5fa (powerline-2.8.3-14.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.