Project-MONAI / SlicerMONAIViz

MONAIViz - 3D Slicer Extension
Apache License 2.0
22 stars 7 forks source link

[Linux] cannot edit transform #32

Open che85 opened 12 months ago

che85 commented 12 months ago

I was able to install it on Linux, but when trying to edit transform, I am getting the following error:

image

Selected Transform for Edit: 0
Traceback (most recent call last):
  File "/home/herzc/Slicer-5.4.0-linux-amd64/slicer.org/Extensions-31938/MONAIViz/lib/Slicer-5.4/qt-scripted-modules/MONAIViz.py", line 398, in onEditTransform
    with open(doc_html, "wb", encoding="utf-8") as fp:
ValueError: binary mode doesn't take an encoding argument
SachidanandAlle commented 12 months ago

Can you try the fix by removing encoding? If that works, please raise a PR support the fix for other users.

phcerdan commented 8 months ago

Hitting this in latest release of Slicer, Linux (5.6.1)

ayggunman commented 8 months ago

@phcerdan Worked for me by removing the encoding for slicer 5.4.0. Thanks @SachidanandAlle