r-lib / keyring

:closed_lock_with_key: Access the system credential store from R

Home Page:https://keyring.r-lib.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error message when using Posit Cloud

theo758q opened this issue · comments

I am coding using the Posit Cloud (former RStudio Cloud).
Following error message comes up, when using the "air" package and more special the "set_key" command:

Error trying to set your secure OPENAI_KEY:
Error in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/cloud/lib/x86_64-pc-linux-gnu-library/4.3/keyring/libs/keyring.so':
libsecret-1.so.0: cannot open shared object file: No such file or directory

Error setting your key: please submit an issue with details

After many hours of research I couldn't find any solution for this problem. Maybe it's a specific problem related to Posit Cloud. I am no expert, so any help is very much appreciated.

A system library is missing for this build of the keyring package to work. If you can install system packages, you need to install the libsecret (or similar) package.

An alternative is to compile keyring from source, then it'll not use that system library.