imagej / pyimagej

Use ImageJ from Python
https://pyimagej.readthedocs.io/
Other
467 stars 81 forks source link

How to add ImageJ1 support to a local installation? #112

Closed lollows closed 3 years ago

lollows commented 3 years ago

Q: I want to use the ImageJ1-based plugins for a local installation. According to the Initialization.md, I try to use ij = imagej.init([r'D:\packages\ImageJ_fiji', 'net.imagej:imagej-legacy'], headless=False). However, it gives an error as follows.

 `C:\Users\Administrator\anaconda3\envs\pyij\Library\bin\mvn.CMD -B -f C:\Users\Administrator\.jgo\net.imglib2\imglib2-imglyb\1.0.0+D-\packages\ImageJ_fiji-RELEASE+net.imagej-imagej-legacy-RELEASE\pom.xml dependency:resolve': 1

The ImageJ2 installation ij = imagej.init(r'D:\packages\ImageJ_fiji', headless=False) works fine. Please let me know if I missed something. Thank you.

imagejan commented 3 years ago

Related: https://github.com/scijava/scyjava/issues/23#issuecomment-809551112

ctrueden commented 3 years ago

@lollows You cannot mix a local installation with a remote artifact like that. Your local installation already has imagej-legacy in it, so it should already work with ImageJ1. Do not add net.imagej:imagej-legacy. If it does not work, please reopen this issue and post the console log. Thanks!