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

RuntimeError: FileAccessException at ...libEM/io/hdfio2.cpp #571

Open
tiborauer opened this issue Jun 27, 2024 · 9 comments
Open

RuntimeError: FileAccessException at ...libEM/io/hdfio2.cpp #571

tiborauer opened this issue Jun 27, 2024 · 9 comments

Comments

@tiborauer
Copy link

The following simple code fails with the error in the title:

from libpyUtils2 import EMUtil
res = EMUtil.get_image_count("stack2.hdf")

stack2.hdf exists, and I have RW permission to it.

@tiborauer
Copy link
Author

The test below suggested in https://groups.google.com/g/eman2/c/PDdP1VrSkYE worked without any issue.

e2proc3d.py :128:128:128:0 test.hdf

@sludtke42
Copy link
Member

sludtke42 commented Jun 27, 2024 via email

@tiborauer
Copy link
Author

tiborauer commented Jun 27, 2024

Thank you for the prompt answer!

e2iminfo.py -H stack2.hdf 
stack2.hdf  is not a recognized image format
h5stat stack2.hdf 
Filename: stack2.hdf
h5stat error: unable to open file "stack2.hdf"

I am supporting one of our researchers in this. I have to ask them about the provenance.

@sludtke42
Copy link
Member

sludtke42 commented Jun 27, 2024 via email

@tiborauer
Copy link
Author

tiborauer commented Jun 27, 2024

ls -la
total 255548
drwxrwsr-x  4 abc123 abc123  261683402 Jun 27 14:12 .
drwxrwsr-x 12 abc123 abc123 1262903222 Jun 26 13:54 ..
drwxrwsr-x  2 abc123 abc123       2106 Jun 27 13:43 SPHIRE_LOG_HISTORY
drwxrwsr-x  2 abc123 abc123       3085 Jun 27 08:19 output
-rw-rw-r--  1 abc123 abc123        387 Jun 27 12:38 run_test.sh
-rwxrwxr-x  1 abc123 abc123  261677824 Jun 26 13:53 stack2.hdf

@sludtke42
Copy link
Member

sludtke42 commented Jun 27, 2024 via email

@tiborauer
Copy link
Author

tiborauer commented Jun 27, 2024

I have copied and renamed the file several times, so we can rule out any filesystem issue.

I have contacted the researcher on the file's origin. They responded by saying the original files are MRC files, which were converted into HDF using e2proc3d.py, as the GPU-isac seems to require HDF or (obsolete) bdb.

@tiborauer
Copy link
Author

Update: Something must have gone wrong with the conversion. I redid it, and now it works.

Thank you for the pointers to the sanity checks!

@sludtke42
Copy link
Member

sludtke42 commented Jun 27, 2024 via email

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

No branches or pull requests

2 participants