-
Notifications
You must be signed in to change notification settings - Fork 48
Question: Error messages when trying to read and image #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi Sebi - it looks like there's something wrong with the loci_tools.jar file that you're using. You've obviously used the right class path (e.g. Christoph Gohlke is kindly building bioformats for us, so the packages should be roughly equivalent. Perhaps he's a day or two behind. You can test whether the Bio-Formats JAR loads your image directly from Java. Navigate to the directory containing the JAR (on my system, If your file doesn't load, it's probably something we have to figure out with Bio-Formats. |
Hi Lee, well on my PC I have: C:\Python27\Lib\site-packages\python_bioformats-0.0.0-py2.7.egg\bioformats\jars\loci_tools.jar When I try java -cp loci_tools.jar loci.formats.tools.ImageInfo I get the follwoing error: Error: could not open `C:\Program Files By the way, inside Fiji and ImageJ the loci_tools.far was replaced by the When do: java -cp loci_tools.jar loci.formats.tools.ImageInfo I get the exact same error message... My JAVA_HOME is C:\Program Files\Java\jdk1.7.0_21 I found one jvm.cfg here: C:\Program and also here: C:\Program Files\Java\jre7\lib\amd64\jvm.cfg Cheers, Sebi 2014-03-17 13:29 GMT+01:00 LeeKamentsky notifications@github.com:
Dr. Sebastian Rhode |
It sure looks like a 32-bit / 64-bit problem. I'm wondering if CP picked a On Mon, Mar 17, 2014 at 12:45 PM, sebi06 notifications@github.com wrote:
|
Any news on this issue yet? |
Sorry to have taken so long, my fault for not remembering to get back to it. We've included an older version of loci_tools.jar which is why it's smaller than Fiji's. I am a bit confused about Looking at the code and at the loci_tools.jar that's included with Bio-Formats, I am guessing that loci_tools is having some problem opening your file and, in the course of reporting the problem, it tries to use a Java class that's not present in the loci_tools.jar. So what it reports on is not finding the Java class and not on why you couldn't open the file. I'll fix the bug that prevents it from reporting, but I think I still need an example file to determine why we can't open your file. |
Hi Lee, my Fiji on a Windows7, 64bit is using BioFormats 5.0.0 (see attached screen shot). The File open without any problems there. You can download it with this link: https://dl.dropboxusercontent.com/u/623476/Count_Cells_DAPI_10_Frames_with_Fiji.czi Sebi |
Hi Sebi, Here's a script that will start bioformats appropriately:
|
Hi Lee, thanks a lot. Now it works fine. Sebi |
Hi guys,
I just tried to test the python-bioformats library and got stuck with I problem. I am not a programmer, so my question might be silly ...
When I open the file inside Fiji using the BioFormats Importer it works fine, so the file itself is ok. And I also managed to read it using: http://www.lfd.uci.edu/~gohlke/pythonlibs/#bioformats
But when I use python-bioformats I get those error messages:
java.lang.IllegalArgumentException: 0.0 must not be null and positive.
at ome.xml.model.primitives.PositiveFloat.(PositiveFloat.java:41)
at loci.formats.in.MRCReader.initFile(MRCReader.java:286)
at loci.formats.FormatReader.setId(FormatReader.java:1072)
java.lang.NoClassDefFoundError: Glacier2/PermissionDeniedException
Caused by: java.lang.ClassNotFoundException: Glacier2.PermissionDeniedException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\lib\site-packages\python_bioformats-0.0.0-py2.7.egg\bioformats\formatreader.py", line 908, in load_using_bioformats
with ImageReader(path=path) as rdr:
File "C:\Python27\lib\site-packages\python_bioformats-0.0.0-py2.7.egg\bioformats\formatreader.py", line 634, in init
self.init_reader()
File "C:\Python27\lib\site-packages\python_bioformats-0.0.0-py2.7.egg\bioformats\formatreader.py", line 675, in init_reader
je, "Glacier2/PermissionDeniedException"):
File "C:\Python27\lib\site-packages\javabridge\jutil.py", line 811, in is_instance_of
raise JavaException(jexception)
javabridge.jutil.JavaException: Glacier2/PermissionDeniedException
Thanks for the help,
Sebastian
The text was updated successfully, but these errors were encountered: