-
Notifications
You must be signed in to change notification settings - Fork 16
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
Linux library paths for libnd2readsdk-shared.so not set correctly on install #24
Comments
This is tricky. For the wheel on pypi, cibuildwheel takes care of all the relocatability issues for us... but that doesn't happen when building locally. It's "enough" for tests on CI but not super robust. Will look into it |
As a workaround, I |
@shenker was able to build locally on a linux using the following:
Since this is ultimately doesn't affect the way the package gets built and distributed on linux for either pypi or conda forge, I'm going to close this as difficult to fix. If you try again, let me know if setting the LD_LIBRARY_PATH solves it in your local dev environment |
Facing Same issue as @VolkerH , ubuntu 20.04 |
sorry about that @uthapa82. Are you trying to install for local development? Did you try @shenker's approach in #24 (comment)? |
@tlambert03 No worries, it happens. I am just trying to use it to convert nd2 to jpeg file, but can't seem to use the module. I tried adding LD_LIBRARY_PATH no luck there, I tried @shenker's approach that also didn't worked form me, for now I used the windows VM and seems to work perfectly there but not on Ubuntu 20.04 |
If you're trying to just use the library, how did you install? Installation from conda is your best bet |
Sound good, I am just trying to use to it. So probably will try with conda and see if that solves. Appreciate your information |
Description
When pulling the latest main and doing a local install with
pip install .
orpip install -e .
from thend2
folder the shared library doesn't get installed correctly.When executing code from the location of where I installed the repo, everything works fine. When executing the code from a different
working directory I get import errors.
What I Did
running my tests from the
nd2
directory works without ImportError (note that the Python Kernel dies when reading nd2, I am investigating and will open a separate issue).running my tests from some other directory fails with
ImportError
:I suspect that the issue is somewhere here:
https://github.com/tlambert03/nd2/blob/main/setup.py#L10-L13
But haven't been able to figure out exactly what goes wrong.
The text was updated successfully, but these errors were encountered: