r-lib / keyring

:closed_lock_with_key: Access the system credential store from R
https://keyring.r-lib.org/
Other
196 stars 28 forks source link

Error message when using Posit Cloud #147

Open theo758q opened 9 months ago

theo758q commented 9 months ago

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.

gaborcsardi commented 9 months ago

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.