Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject #10

Open
thron055 opened this issue Jan 29, 2025 · 0 comments

Comments

@thron055
Copy link

I am trying to use the nis2pyr function to convert my NIS files to ome tiff.
I keep getting the following error code:

C:\Users\thron055\Documents\20240110 DRAGA NK amfar D6PT> nis2pyr DRAGA14_6 DPT_spleen_HIVopal570_CARopal650_CD20AF488_slide20_LKT.nd2 DRAGA14_6 DPT_spleen_HIVopal570_CARopal650_CD20AF488_slide20_LKT.ome.tiff
Traceback (most recent call last):
File "C:\Users\thron055\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\thron055\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\thron055\AppData\Local\Programs\Python\Python39\Scripts\nis2pyr.exe_main
.py", line 4, in
File "C:\Users\thron055\AppData\Local\Programs\Python\Python39\lib\site-packages\nis2pyr\nis2pyr.py", line 8, in
from nis2pyr.convertor import convert_nd2_to_pyramidal_ome_tiff
File "C:\Users\thron055\AppData\Local\Programs\Python\Python39\lib\site-packages\nis2pyr\convertor.py", line 3, in
from nis2pyr.writer import write_pyramidal_ome_tiff
File "C:\Users\thron055\AppData\Local\Programs\Python\Python39\lib\site-packages\nis2pyr\writer.py", line 4, in
import tifffile # https://github.com/cgohlke/tifffile
File "C:\Users\thron055\AppData\Local\Programs\Python\Python39\lib\site-packages\tifffile_init
.py", line 3, in
from .tifffile import doc, all, version, main
File "C:\Users\thron055\AppData\Local\Programs\Python\Python39\lib\site-packages\tifffile\tifffile.py", line 15408, in
bitorder_decode = imagecodecs.bitorder_decode # noqa
File "C:\Users\thron055\AppData\Local\Programs\Python\Python39\lib\site-packages\imagecodecs\imagecodecs.py", line 514, in getattr
module = importlib.import_module('.' + module_, 'imagecodecs')
File "C:\Users\thron055\AppData\Local\Programs\Python\Python39\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "imagecodecs_imcd.pyx", line 1, in init imagecodecs._imcd
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Would greatly appreciate any tips on how to resolve this issue!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant