Skip to content

Conversation

@zivy
Copy link
Member

@zivy zivy commented Jun 10, 2025

Newer versions of the Fiji distribution (5/2025 and later) now install in a directory called Fiji and the executable is
fiji-windows-x64.exe. Adding to the image viewer's default-executables list.

@zivy zivy requested review from blowekamp and dave3d June 10, 2025 17:04
Newer versions of the Fiji distribution (5/2025 and later) now install
in a directory called Fiji and the executable is
fiji-windows-x64.exe. Adding to the image viewer's default-executables
list.
@zivy zivy force-pushed the updateFijiSearch branch from 598e2fd to 211201b Compare June 10, 2025 17:10
@dave3d
Copy link
Member

dave3d commented Jun 11, 2025

So I built and tried out this PR on my Windows system. When I tryed to do a Show command, it did have the proper path to point to Fiji. But I got an exception when it tried to launch Fiji. Here's the output:

(base) PS C:\sitk-build\SimpleITK-build\Testing\Installation\pyvenv> Scripts/python.exe
Python 3.11.8 | packaged by Anaconda, Inc. | (main, Feb 26 2024, 21:34:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import SimpleITK as sitk
>>> img = sitk.Image(100,100,sitk.sitkUInt8)
>>> sitk.Show(img)

==========================================================
WARNING: GUI program launched from unknown parent process.
Console output may be unreliable.
==========================================================
Failed to locate the jaunch configurator program.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\sitk-build\SimpleITK-build\Testing\Installation\pyvenv\Lib\site-packages\SimpleITK\SimpleITK.py", line 7794, in Show
    return _SimpleITK.Show(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Exception thrown in SimpleITK Show: C:\SimpleITK\Code\IO\src\sitkImageViewer.cxx:670:
sitk::ERROR: Process returned 13.
Command line: 'C:/Users/dave/Fiji/fiji-windows-x64.exe' '-eval' 'open("C:\\Users\\dave\\AppData\\Local\\Temp\\TempFile-7116-0.mha"); rename("C:\\Users\\dave\\AppData\\Local\\Temp\\TempFile-7116-0.mha");'

I'll try and figure out what's going on.

@zivy
Copy link
Member Author

zivy commented Jun 11, 2025

@dave3d, Thanks for working on this. Which version of the Fiji distribution did you install, the JDK or JRE? It shouldn't matter, as both should work, but just that we know which.

@dave3d
Copy link
Member

dave3d commented Jun 11, 2025

@dave3d, Thanks for working on this. Which version of the Fiji distribution did you install, the JDK or JRE? It shouldn't matter, as both should work, but just that we know which.

JRE

@dave3d
Copy link
Member

dave3d commented Jun 11, 2025

Ah-ha! I had installed ImageJ's latest build. When I changed to the stable version it worked fine.

@zivy zivy merged commit a0b4608 into SimpleITK:master Jun 11, 2025
8 checks passed
@zivy zivy deleted the updateFijiSearch branch June 11, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants