Skip to content
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

Getting "Unsupported or missing image file" on a .mrxs picture #453

Closed
AlgorithmesAndCo opened this issue May 31, 2023 · 5 comments
Closed
Labels

Comments

@AlgorithmesAndCo
Copy link

AlgorithmesAndCo commented May 31, 2023

Operating system

Windows 10

Platform

64-bit

OpenSlide version

openslide-python 1.2.0

Slide format

MRXS

Issue details

Hello,

We are using openslide to open MRXS pictures, and it is working very well, ...

Except, we just received a set of pictures that don't seem to work! The message is the following:
Unsupported or missing image file

Stack logs:
[...]
File "D:\Ludo\git\morehistoClassic\build\lib\bioimg\io\image.py", line 992, in init
img = openslide.OpenSlide(f)
File "C:\Users\Tristan\AppData\Roaming\Python\Python37\site-packages\openslide_init_.py", line 166, in init
self._osr = lowlevel.open(str(filename))
File "C:\Users\Tristan\AppData\Roaming\Python\Python37\site-packages\openslide\lowlevel.py", line 195, in _check_open
raise OpenSlideUnsupportedFormatError("Unsupported or missing image file")
openslide.lowlevel.OpenSlideUnsupportedFormatError: Unsupported or missing image file

Of course I checked that the file was present and that the filename was 100% correct!

I was able to open the pictures in ImageJ (at lowest resolution, of course)

I can provide one of these pictures, but they're fairly big, and I don't want to the link to be public, if you don't mind...

I hope you'll be able to help us...

Thanks in advance

@bgilbert
Copy link
Member

Could you set the OPENSLIDE_DEBUG environment variable to detection, try to load the slide, and post the output?

Also, what build of the OpenSlide binaries are you using?

You can upload a sample slide here. If you select "Share this slide only with OpenSlide maintainers", only the maintainers will have access to it.

@AlgorithmesAndCo
Copy link
Author

Hello Gilbert,

I uploaded one of my faulty files, added an env. var. OPENSLIDE_DEBUG=detection, but I can't see any additional debug, I get an exception as soon as the file is opened.

For the exact version of openslide-python I'm using, please find attached a text file containing the result of "pip debug --verbose openslide-python". I guess that should be what you want, but feel free to come back to me for even more details.

Regards,

Ludo

openslide-install-details.txt

@bgilbert
Copy link
Member

bgilbert commented Jun 5, 2023

I uploaded one of my faulty files, added an env. var. OPENSLIDE_DEBUG=detection, but I can't see any additional debug, I get an exception as soon as the file is opened.

You'd need to set that environment variable before doing import openslide. I'll take a look at your sample.

For the exact version of openslide-python I'm using, please find attached a text file containing the result of "pip debug --verbose openslide-python". I guess that should be what you want, but feel free to come back to me for even more details.

That gives the version of OpenSlide Python, not of OpenSlide. You previously downloaded and unpacked an openslide-win64 ZIP, right? What is the date code on that build?

@bgilbert
Copy link
Member

bgilbert commented Jun 6, 2023

The name of the slide's data directory should be equal to the name of the .mrxs file without the .mrxs extension. That's not true for your sample slide, so OpenSlide can't locate the slide data. On my machine, if I rename your data directory to match the .mrxs file, OpenSlide is able to read the slide.

@AlgorithmesAndCo
Copy link
Author

Of course! Our cloud tool is adding a prefix to directories, and I didn't see it! It just perfectly works now! Thanks so much for your help!

@bgilbert bgilbert closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants