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

test with pyarrow installed #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joshua-gould
Copy link

No description provided.

@joshua-gould
Copy link
Author

I'm unable to read czi files on Windows when I have pyarrow installed using pip

@BrianWhitneyAI
Copy link
Contributor

Hey @joshua-gould can you provide the traceback for this issue?

@joshua-gould
Copy link
Author

I don't get a traceback-python just crashes

@joshua-gould
Copy link
Author

This is what I get:

Windows fatal exception: access violation

Current thread 0x00001208 (most recent call first):
  File "mamba\envs\test\Lib\site-packages\aicspylibczi\CziFile.py", line 63 in __init__
  File "mamba\envs\test\Lib\site-packages\aicsimageio\readers\czi_reader.py", line 98 in _is_supported_image

@BrianWhitneyAI
Copy link
Contributor

This is what I get:

Windows fatal exception: access violation

Current thread 0x00001208 (most recent call first):
  File "mamba\envs\test\Lib\site-packages\aicspylibczi\CziFile.py", line 63 in __init__
  File "mamba\envs\test\Lib\site-packages\aicsimageio\readers\czi_reader.py", line 98 in _is_supported_image

This seems like an environment issue to me. I would try creating a new environment and installing with pip. Maybe try pyenv for better env/python-version control.

@m-albert
Copy link

m-albert commented Sep 30, 2024

Just wanted to add here I'm also getting this issue in a fresh conda environment (pip installing bioio-czi). Example file tested with: https://github.com/multiview-stitcher/multiview-stitcher/blob/main/src/multiview_stitcher/test-datasets/mosaic_test.czi

@toloudis
Copy link
Contributor

Thanks for posting this issue. We will try to get a good repro over here and debug this.

It may be something in the way that AllenCellModeling/aicspylibczi is being built. If you are interested in the meantime you may try building it from source to see if that helps. That's probably one of the things I will try.

@toloudis
Copy link
Contributor

@joshua-gould @m-albert any particular Python version of interest?

@toloudis
Copy link
Contributor

This is what I get:

Windows fatal exception: access violation

Current thread 0x00001208 (most recent call first):
  File "mamba\envs\test\Lib\site-packages\aicspylibczi\CziFile.py", line 63 in __init__
  File "mamba\envs\test\Lib\site-packages\aicsimageio\readers\czi_reader.py", line 98 in _is_supported_image

I just noticed that this trace shows aicsimageio. Do you get the same thing using bioio? (They do both use aicspylibczi)

@m-albert
Copy link

Hi @toloudis, thanks a lot! Unfortunately I currently don't have access to a windows machine and will try to post a reproducer in the next days.

I did get this problem for both aicsimageio and bioio. Python version was 3.10 in both cases.

@joshua-gould
Copy link
Author

The following code works fine on Windows, however if you uncomment the pandas import it will crash (if pyarrow is installed)

# import pandas as pd
from aicspylibczi import CziFile

p = './mosaic_test.czi'
CziFile(p)
print('open')

@evamaxfield
Copy link
Contributor

This might be something we want to ask the dask / xarray folks since we aren't doing anything with pyarrow. I think dask recently switched to using parquet dtypes in their dataframe methods (specifically string methods) but I don't see how that would affect us here.

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

Successfully merging this pull request may close these issues.

5 participants