Opened 4 years ago

Closed 4 years ago

#12442 closed Patch - Bug Fix (Fixed)

Patch: New PROTO_TOKEN prevents Python bindings from working

Reported by: Bill Meek <keemllib@…> Owned by: Jim Stichnoth
Priority: minor Milestone: 0.28
Component: Bindings - Python Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

It appears that the '(ノಠ益ಠ)ノ彡┻━┻' PROTO_TOKEN makes Python unhappy (assuming some user decided to update the Python PROTO_VERSION to match the current version.) Maybe the correct fix belongs in the bindings, but this is at least a workaround.

v0.28-pre-2861-gbcd7d65-dirty

from MythTV import MythBE
MythBE()
 
Traceback (most recent call last):
  ...
  File "/usr/local/lib/python2.7/dist-packages/MythTV/connections.py", line 263, in check_version
    % (PROTO_VERSION, PROTO_TOKEN)).split(BACKEND_SEP)
  File "/usr/local/lib/python2.7/dist-packages/MythTV/connections.py", line 295, in backendCommand
    self.socket.sendheader(data.encode('utf-8'))

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 23: ordinal not in range(128)

Attachments (1)

proto_token.patch (2.2 KB) - added by Bill Meek <keemllib@…> 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by Bill Meek <keemllib@…>

Attachment: proto_token.patch added

comment:1 Changed 4 years ago by Jim Stichnoth

Milestone: unknown0.28
Owner: changed from Raymond Wagner to Jim Stichnoth
Status: newaccepted

comment:2 Changed 4 years ago by Jim Stichnoth

Resolution: Fixed
Status: acceptedclosed

Fixed in d116269d3a8446c648ce228a63709d8ac1bf0c74 .

This was tested using myth_find_orphans.py and a couple other random scripts from https://www.mythtv.org/wiki/Category:Python_Scripts .

Please reopen if you find more problems.

Note: See TracTickets for help on using tickets.