Edgewall Software

Opened 3 years ago

Last modified 3 years ago

#13378 closed defect

Notifications fail in Trac 1.5.2 with what appears to be a Python3 porting error — at Initial Version

Reported by: anonymous Owned by:
Priority: normal Milestone: 1.5.3
Component: notification Version: 1.5.2
Severity: blocker Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Running Trac 1.5.2 on Alpine Linux with Python3, I see the following error whenever a ticket is updated.

2021-03-26 20:02:52,029 Trac[web_ui] ERROR: Failure sending notification on change to ticket #1901: AttributeError: 'bytes' object has no attribute 'encode'

According to the following Stack Overflow post, the root cause may be a defect introduced in the Python3 port.

https://stackoverflow.com/questions/60368956/attributeerrorbytes-object-has-no-attribute-encode

# uname -a
Linux da318296525d 4.15.0-139-generic #143-Ubuntu SMP Tue Mar 16 01:30:17 UTC 2021 x86_64 Linux
# python3 --version
Python 3.7.10

I searched the open tickets and did not find this issue reported anywhere else. The only issue that manifest a similar error is #5515.

Change History (0)

Note: See TracTickets for help on using tickets.