-
Notifications
You must be signed in to change notification settings - Fork 49
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
Comments
The test below suggested in https://groups.google.com/g/eman2/c/PDdP1VrSkYE worked without any issue.
|
What do you get from
e2iminfo.py -H stack2.hdf
?
(I’m assuming the same error)
If so, try running
h5stat stack2.hdf
this program comes from the HDF5 library itself, not EMAN2, and should tell you if there is some structural problem with the file.
Where did stack2.hdf come from?
… On Jun 27, 2024, at 3:58 PM, Tibor Auer ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub <#571 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACPKF2QJSZVSQLJRBGMCFPLZJQK77AVCNFSM6AAAAABJ77XUCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUG42TSMBQGA>.
You are receiving this because you are subscribed to this thread.
|
Thank you for the prompt answer!
I am supporting one of our researchers in this. I have to ask them about the provenance. |
If you type “ls -al” do you see stack2.hdf in the folder you’re running the program from?
… On Jun 27, 2024, at 4:07 PM, Tibor Auer ***@***.***> wrote:
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"
—
Reply to this email directly, view it on GitHub <#571 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACPKF2R4CT3T3RYC6DFDZHDZJQMDXAVCNFSM6AAAAABJ77XUCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUG44TCMBYG4>.
You are receiving this because you commented.
|
|
You can do one last test just to make sure it isn’t a filesystem issue:
cp stack2.hdf x.hdf
if that works, as I expect it will, the implication is that this file is not in HDF5 format. Where did this file come from? I see a SPHIRE logfile there, and certainly SPHIRE will have EMAN2 compatible HDF5 files since they use the same library for I/O. Did this file come from SPHIRE or are you trying to use it with SPHIRE and it came from somewhere else? If it came from somewhere else, exactly how was it generated?
… On Jun 27, 2024, at 4:13 PM, Tibor Auer ***@***.***> wrote:
ls -la
total 255548
drwxrwsr-x 4 usq33871 usq33871 261683402 Jun 27 14:12 .
drwxrwsr-x 12 usq33871 usq33871 1262903222 Jun 26 13:54 ..
drwxrwsr-x 2 usq33871 usq33871 2106 Jun 27 13:43 SPHIRE_LOG_HISTORY
drwxrwsr-x 2 usq33871 usq33871 3085 Jun 27 08:19 output
-rw-rw-r-- 1 usq33871 usq33871 387 Jun 27 12:38 run_test.sh
-rwxrwxr-x 1 usq33871 usq33871 261677824 Jun 26 13:53 stack2.hdf
—
Reply to this email directly, view it on GitHub <#571 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACPKF2W7JV5DHQZPROFPEA3ZJQM2NAVCNFSM6AAAAABJ77XUCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUHAYTOMRUHA>.
You are receiving this because you commented.
|
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 |
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! |
Glad you sorted it.Sent from my iPhoneOn Jun 27, 2024, at 6:45 PM, Tibor Auer ***@***.***> wrote:
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!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
The following simple code fails with the error in the title:
stack2.hdf exists, and I have RW permission to it.
The text was updated successfully, but these errors were encountered: