unioslo / tsd-api-client

Command line client for the TSD HTTP API
BSD 3-Clause "New" or "Revised" License
13 stars 5 forks source link

OSError: Could not locate nacl lib #98

Closed shahramb160 closed 2 years ago

shahramb160 commented 2 years ago

Hi I tried to install tacl in NIRD and getting the following error. Anyone can help?

[shahrab@login3-nird-tos SUMSTAT]$ tacl --guide config
Traceback (most recent call last):
  File "/nird/home/shahrab/.local/bin/tacl", line 5, in <module>
    from tsdapiclient.tacl import cli
  File "/nird/home/shahrab/.local/lib/python3.9/site-packages/tsdapiclient/tacl.py", line 25, in <module>
    from tsdapiclient.fileapi import (
  File "/nird/home/shahrab/.local/lib/python3.9/site-packages/tsdapiclient/fileapi.py", line 14, in <module>
    import libnacl.public
  File "/nird/home/shahrab/.local/lib/python3.9/site-packages/libnacl/__init__.py", line 83, in <module>
    nacl = _get_nacl()
  File "/nird/home/shahrab/.local/lib/python3.9/site-packages/libnacl/__init__.py", line 79, in _get_nacl
    raise OSError(msg)
OSError: Could not locate nacl lib, searched for libsodium.so, libsodium.so.23, libsodium.so.18, libsodium.so.17, libsodium.so.13, libsodium.so.10, libsodium.so.5, libsodium.so.4, 
haatveit commented 2 years ago

You're getting this error because libsodium is not available on the system where you are running tacl. As it is for now still an optional feature we had already addressed running without libsodium available in fileapi.py previously. Perhaps there have been some upstream changes in the libnacl library recently.

I have pushed changes in #99 that should resolve this, so we can publish a new version if it passes review.

-- Regards,

Eirik Haatveit Research Services (FT/USIT) Services for sensitive data (TSD) University of Oslo

shahramb160 commented 2 years ago

Hi Erik,

Thank you very much. Just please let me know when the changes is implemented.

Best

Shahram


From: haatveit @.***> Sent: Wednesday, June 15, 2022 3:45:02 PM To: unioslo/tsd-api-client Cc: Shahram Bahrami; Author Subject: Re: [unioslo/tsd-api-client] OSError: Could not locate nacl lib (Issue #98)

You're getting this error because libsodium is not available on the system where you are running tacl. As it is for now still an optional feature we had already addressed running without libsodium available in fileapi.py previously. Perhaps there have been some upstream changes in the libnacl library recently.

I have pushed changes in #99 that should resolve this, so we can publish a new version if it passes review.

-- Regards,

Eirik Haatveit Research Services (FT/USIT) Services for sensitive data (TSD) University of Oslo

— Reply to this email directly, view it on GitHubhttps://github.com/unioslo/tsd-api-client/issues/98#issuecomment-1156494182, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIOQDHKQN3FXBCHUNRJYVT3VPHM55ANCNFSM5Y26TO7Q. You are receiving this because you authored the thread.Message ID: @.***>

haatveit commented 2 years ago

Hi. You should not be getting this error any more with version 3.5.2 which has now been published:

https://pypi.org/project/tsd-api-client/3.5.2/