-
Notifications
You must be signed in to change notification settings - Fork 6
Issue with reading n5 array #93
Comments
I get the same exception when running the example from https://rust-pyn5.readthedocs.io/en/latest/usage.html#differences-from-h5py |
I'll take a look at this today. We made a big change to the way wheels are built and deployed to pypi for this release so there might be some issues surrounding that which CI didn't pick up. |
I managed to replicate the behavior pretty easily, and it only seems to be a problem with the version on pypi. |
I was going to suggest an install from sdist as a workaround, but I can't do that either... There seems to be a dependency on setuptools, which I guess isn't included by default in the temporary env. EDIT: Nope that's just the pypa not having their shit together. The entire point of PEP517 is to allow people to install from sdists where the sdist describes how it wants to be built. The entire point of |
I tried this and it failed - for me, |
The problem seems to be in the optimised binaries. |
Ah, yeah I didn't use the --release tag when I ran maturin build, and I it makes sense that publish uses the optimized version. |
Bumping pyo3 and numpy(rust) didn't help. Seems to be related to PyO3/rust-numpy#97 , which was resolved by a new nightly toolchain. The toolchain they specified isn't compatible with pyo3 any more, but If only we could have anticipated the difficulties of relying on a nightly toolchain. I have little interest in bisecting compiler releases to find the top range so I'll just stick that working version in the docs and travis and call it done. I've kept the bumped pyo3 and numpy(rust) too. Hopefully pyo3 will be able to use a stable compiler soon, but it doesn't look likely (PyO3/pyo3#5 , rust-lang/rust#31844). |
Fix merged but not released yet |
I released v1.0.1 that should have fixed this. |
Thanks for the quick fix! This works now for me too. |
Description
I get an exception when reading a n5 file that I just created with pyn5
What I Did
First create an n5
Then, in a new Python session, read the file
I get the traceback
The text was updated successfully, but these errors were encountered: