I just started to work with RhinoInside Revit recently. I’d like to reuse my python scripts (work perfectly with Rhino6, Rhino7 WIP) but ran into some problems while importing standard modules like random, json.
Would someone have an idea of what’s happening? I’d love to know the reason behind this and how I can work around it. My apologies if the question is silly.
import random Message: sequence item 0: expected bytes or byte array, str found Traceback: line 160, in <module>, "C:\Program Files\Rhino 7 WIP\Plug-ins\IronPython\Lib\hashlib.py" line 49, in <module>, "C:\Program Files\Rhino 7 WIP\Plug-ins\IronPython\Lib\random.py"
import json Message: expected str, got bytes Traceback: line 18, in _floatconstants, "C:\Program Files\Rhino 7 WIP\Plug-ins\IronPython\Lib\json\decoder.py" line 22, in <module>, "C:\Program Files\Rhino 7 WIP\Plug-ins\IronPython\Lib\json\decoder.py" line 108, in <module>, "C:\Program Files\Rhino 7 WIP\Plug-ins\IronPython\Lib\json\__init__.py"