Pyimagej : module 'scyjava' has no attribute 'jvm_started'

Hello, I tried to install latest version of pyimageJ (GitHub - imagej/pyimagej: Use ImageJ from Python) on Windows.

conda create -n pyimagej -c conda-forge pyimagej openjdk=8
conda activate pyimagej

Then when I try to init imageJ I receive an error :

import imagej
ij = imagej.init()

> Traceback (most recent call last):
>   File "<input>", line 1, in <module>
>   File "D:\Programs\Anaconda3\envs\imagej\lib\site-packages\imagej\", line 114, in init
>     if sj.jvm_started():
> AttributeError: module 'scyjava' has no attribute 'jvm_started'

I checked JAVA_HOME variable and it seems to be bind to a working version of JAVA :


> 'C:\\Program Files\\Java\\jdk-14.0.2\\bin'

I also tried with based JAVA_HOME dir and same error

Is imageJ or scyjava changed recently or I need to install additional things on Windows ?

Thank you

@Aymeric I believe this error is from a version skew between pyimagej and its dependency, scyjava. From the command line within your pyimagej environment, can you run conda list and check the scyjava version? It should be 1.1.0.

It hasn’t changed recently and you shouldn’t need to install anything additional.

1 Like