Message 1 of 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
for example, this one doesn't work in 2020:
bi = python.import "__builtin__"
mystrlist = bi.str.split "an example string"
TypeError: descriptor 'split' requires a 'str' object but received a 'unicode'
-- Runtime error: TypeError: descriptor 'split' requires a 'str' object but received a 'unicode'
This of course works in MAX 2023, but I need to get working something like this in MAX 2020:
bi = python.import "builtins"
qc = python.import "PySide2.QtCore"
b = bi.str.encode "1234" "utf-8"
qc.QByteArray.fromBase64 b
Any ideas?
Solved! Go to Solution.