[EXT_EP-8937] Python 3-requiring example scripts should provide better error msg for python 2 users Created: 02/May/18  Updated: 19/Feb/20  Resolved: 02/May/18

Status: Fixed
Project: Embedded Software & Tools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: TI User Assignee: TI User
Resolution: Fixed Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Product: TIRTOS
Internal ID: TIRTOS-1506
Found In Release: 3.50.00
Fix In Release: 3.60.00
Release Notes: If a user ran the python-3-requiring networking scripts using python 2, they get an error message:

Traceback (most recent call last):
File "./packages/examples/tools/udpSendReceive.py", line 119, in <module>
buffer[-1] = (~i).to_bytes(sizeNegI + 1, byteorder='big', signed=True)[-1]
AttributeError: 'int' object has no attribute 'to_bytes'

Scripts that require Python 3 now detect if they are using python 2 and gives a more obvious message instead.

 Description   

Python 3-requiring example scripts should provide better error msg for python 2 users


Generated at Sat Dec 13 11:36:09 CST 2025 using Jira 10.3.7#10030007-sha1:a563685562f94d165eb4e158cfb2a142338d8c54.