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

[secrets] ManyLinux wheels require LD_LIBRARY_PATH to be defined #229

Closed
t1m0thyj opened this issue Nov 20, 2023 · 1 comment · Fixed by #230
Closed

[secrets] ManyLinux wheels require LD_LIBRARY_PATH to be defined #229

t1m0thyj opened this issue Nov 20, 2023 · 1 comment · Fixed by #230
Labels
bug Something isn't working priority-high

Comments

@t1m0thyj
Copy link
Member

When the Secrets SDK is installed from PyPI in a Linux environment that uses manylinux wheels, it fails to find libsecret shared libraries. Even if the libsecret-1-0 package is installed, it will look for them in a hardcoded path.

>>> from zowe.secrets_for_zowe_sdk import keyring
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.8/dist-packages/zowe/secrets_for_zowe_sdk/__init__.py", line 5, in <module>
    from . import keyring
ImportError: libsecret-1-e4398220.so.0: cannot open shared object file: No such file or directory

The shared libraries do exist in the path "zowe.libs" (one level above "zowe/secrets_for_zowe_sdk") but the import fails at runtime. A work around is to set the LD_LIBRARY_PATH environment variable to point to the "zowe.libs" folder.

@t1m0thyj t1m0thyj added bug Something isn't working priority-high labels Nov 20, 2023
Copy link

Thank you for creating a bug report.
We will investigate the bug and evaluate its impact on the product.
If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant