SlicerMONAIViz icon indicating copy to clipboard operation
SlicerMONAIViz copied to clipboard

[Linux] cannot edit transform

Open che85 opened this issue 2 years ago • 3 comments

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

che85 avatar Oct 12 '23 17:10 che85

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

SachidanandAlle avatar Oct 12 '23 18:10 SachidanandAlle

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

phcerdan avatar Jan 17 '24 17:01 phcerdan

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

ayggunman avatar Feb 07 '24 12:02 ayggunman