clij / clijpy

GPU-accelerated image processing using CLIJ via pyimagej in python
https://clij.github.io/clijpy
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Maven error #7

Open AdvancedImagingUTSW opened 4 years ago

AdvancedImagingUTSW commented 4 years ago

Hey Robert,

Wanted to try out the new CLIJ2 python interface and test its performance. I was working through your install guide, and the demo.py routine. When I execute it in anaconda I get the following error for both my local FIJI install, as well as the one that automatically downloads the most recent JAR file.

(pyimagej) C:\Users\MicroscopyInnovation\Desktop\Python\gpuProcessing>python gpuProcessing.py Error in `C:\Users\MicroscopyInnovation\Anaconda3\envs\pyimagej\Library\bin\mvn.CMD -B -f C:\Users\MicroscopyInnovation.jgo\net.imagej\imagej\RELEASE+net.imglib2-imglib2-imglyb-0.4.0\pom.xml dependency:resolve': 1

I've had problems with Maven communicating through a proxy in the past, which which I've been able to fix by modifying the pom.xml file as follows: https://maven.apache.org/guides/mini/guide-proxies.html

When I tried my luck at adding a proxy to the pom file (...\imagej\RELEASE+net.imglib2-imglib2-imglyb-0.4.0\pom.xml), it didn't work. Looks like this file is recreated every time I run the file...

Thanks, Kevin

haesleinhuepf commented 4 years ago

Hey Kevin @AdvancedImagingUTSW,

I think I had a similar issue earlier on one of my Windows systems. Could you please check if maven is installed? You can do this by entering mvn on the anaconda prompt.

If this doesn't help, I would try to involve the pyimagej people.

Thanks for testing clijpy btw!

Cheers, Robert

haesleinhuepf commented 4 years ago

Oh, and could you please check if the JAVA_HOME environment variable is set?

It might be related to that issue

AdvancedImagingUTSW commented 4 years ago

Maven is installed within that Anaconda Environment.

(pyimagej) C:\Users\MicroscopyInnovation\Desktop\Python\gpuProcessing>mvn -version Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T13:41:47-05:00) Maven home: C:\Users\MicroscopyInnovation\Anaconda3\envs\pyimagej\Library\bin.. Java version: 1.8.0_192, vendor: Azul Systems, Inc., runtime: C:\Users\MicroscopyInnovation\Anaconda3\envs\pyimagej\Library\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

I'll chase down the JAVA_HOME variable in the morning...