Open demisjohn opened 2 years ago
Maybe needs a "." before the module name?
eg.
import Microscope_Calibrations_user_settings as sets
to
import .Microscope_Calibrations_user_settings as sets
Choose Calibration.py
is probably also broken.
Maybe FIJI updated itself to a newer python version? Not sure what broke this.
I came here to ask if this is an issue on MacOS or a change in ImageJ. Imports appear to be working with Fiji (ImageJ2) 2.3.0/1.52v
build d544a3f481
as of 2021-09-13.
On my new MacOS M2, I downloaded Fiji (imagej2) 2.14.0/1.54f
build c89e8500e4
as of 2023-07-07 and no dice. Reading the docs, seems like python is not listed anymore, or at least, when I click it, it takes my to jython or uses pyimagej.
Have you had any success?
As far as I can tell, FIJI and ImageJ still support Python. The changelog on nih.gov doesn't show any obvious python upgrade that would have broken our plugin (at least with a quick page search for "python" and "jython"). I believe technically this plugin is written in "jython" - I honestly don't know the difference between Jython and Python, it has basically worked as expected when I made this plugin.
I suspect this error is basically a "search path" issue - for some reason FIJI has changed where it searches for scripts, so my Installation instructions may need to be upgrades. For example maybe we need to put the scripts in a different folder... just guessing here.
If you have the time, can you look up instructions for manually installing a Jython plugin?
One workaround - which is NOT ideal - is to put the settings directly into the main plugin script. This would be prone to breakage of the entire script - but if you really need it working, that's one way to make it work.
When I tried to run "Draw Measurement - Line", it didn't work with the following error
Can't find the Settings file for some reason? Error message looks like it's looking for the right name, and the file appears to be in the correct location and named correctly: