IPY340 MWrite.pushbutton pickle module TypeError #1704
Labels
Bug
Bug that stops user from using the tool or a major portion of pyRevit functionality [class]
IronPython
Issues related to standalone IronPython installation [subsystem]
Describe the bug
With IronPython 3.4 engine pressing on MWrite.pushbutton, MRead.pushbutton or MAppend.pushbutton rises
TypeError: must be unicode, not bytes
Error traceback
To Reproduce
Steps to reproduce the behavior:
MWrite
push buttonExpected behavior
Add current selection to memory
Screenshots
no
Desktop (please complete the following information):
OS: Windows 11
pyRevit Version 4.8.13:16d0938
pyRevit Environment:
pyrevit env
Additional context
I assume the reason is that in Python 3, binary modes
'wb'
and'rb'
must be specified during theopen
operation.Changing
'w'
,'r'
to'wb'
,'rb'
in MWrite.pushbutton, MRead.pushbutton and MAppend.pushbutton solved the issue for me.The text was updated successfully, but these errors were encountered: