Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
1 replies
93 views

I'm trying to find a secure way to store token for my cli application. In the app I take the token from ms entra id and I want to store this token in user computer so that user can use it again until ...
Jantoma21's user avatar
  • 495
1 vote
1 answer
109 views

I am able to install my python package from GCP Artifactory. Authenticate to GCP. % gcloud auth application-default login Your browser has been opened to visit: https://accounts.google.com/o/...
NPatel's user avatar
  • 21.4k
0 votes
1 answer
279 views

I used the keyring library in Python to store a password needed to logon to an external service. import keyring keyring.set_password("service_name", "username", "my_password&...
Stevoisiak's user avatar
  • 27.8k
0 votes
2 answers
106 views

Context Imagine I have a application with a Python server running as user 'python-app' on Linux and a Python client also running as user 'python-app'. The user 'python-app' does not have root ...
sbanders's user avatar
  • 853
3 votes
1 answer
472 views

I'm having trouble with the python keyring library. I want to extract passwords from an entry in the windows credential manager. After that I want to overwrite the password of that specific entry. ...
Godzy's user avatar
  • 93
0 votes
1 answer
463 views

When importing keyring, import keyring for some reason I keep on getting error message: "AttributeError: module 'io' has no attribute 'text_encoding' " the line preceding the error refers ...
user17312322's user avatar
1 vote
1 answer
596 views

I am trying to use the keyring library from Python 3 to store and retrieve credentials for a user. The following simple example should store a password, read it back, and then read both the username ...
rdanter's user avatar
  • 141
1 vote
1 answer
287 views

I’m trying to compile a small python file which sends email based on the yagmail library, which itself relies on the keyring library. Compiling works fine. Executing with dry-run options works fine. ...
Louis's user avatar
  • 341
1 vote
0 answers
1k views

"Keeping credentials safe in Jupyter Notebooks" (https://towardsdatascience.com/keeping-credentials-safe-in-jupyter-notebooks-fbd215a8e311) says that "Keyring integrates with your OS ...
Tom Lever's user avatar
  • 447
0 votes
1 answer
579 views

I want a python script to automatically start after boot on a linux computer. To achieve this I set up a systemd service: [Unit] Description=My Script Service Wants=network-online.target After=network-...
masterofpuppets's user avatar
12 votes
4 answers
6k views

I have a Python library hosted in Google Cloud Platform Artifact Registry. Besides, I have a Python project, using Poetry, that depends on the library. This is my project file pyproject.toml: [tool....
logoff's user avatar
  • 3,452
0 votes
1 answer
793 views

I have upgrade from python 3.9.6 to 3.10.5 and kept thankfully the old version. This is on a Win-64 machine so should be using the WinVault backend (default) I have copied all the site_packages from 3....
Sam's user avatar
  • 117
2 votes
1 answer
521 views

I'm trying to run a instance of a flask project with gunicorn on supervisor and I'm facing a issue where I'm not able to retrieve passwords from keyring after the first get_password() is called. After ...
davis's user avatar
  • 1,336
1 vote
0 answers
679 views

I'm trying to implement a systemd hook (systemd-sleep) to connect and disconnect from protonvpn. However, these scripts are executed as root and do not have access to the keyring. The backend is ...
crapula's user avatar
  • 81
4 votes
2 answers
1k views

On my OSX M1 Mac I have the following keyring setup which works with Google Artifact Repository to resolve dependencies when using python on the command line shell. Refer to https://cloud.google.com/...
Phil's user avatar
  • 50.9k
3 votes
2 answers
9k views

I see this in the help keyring -h usage: keyring [-h] [-p KEYRING_PATH] [-b KEYRING_BACKEND] [--list-backends] [--disable] [operation] [service] [username] positional arguments: ...
MiniMe's user avatar
  • 1,295
0 votes
0 answers
258 views

I have got keyring concept. And I'm trying to get the username list from it. Unfortunately it seems there is no function for get saved username list. I hope to show the saved list and choose one for ...
user avatar
2 votes
1 answer
952 views

I have a Python application that has a file containing several hardcoded databases credentials. I have to find a way to hide these information, because keeping usernames and passwords in the code is ...
Borgesj's user avatar
  • 41
0 votes
1 answer
916 views

I'm using python 3.10 and the following code works once after startup, but then if I try and set any new password to the keyring, the following errors are thrown. import keyring keyring.set_password(&...
DirectiveAthena's user avatar
0 votes
1 answer
865 views

I am making a series of API calls using Python similar to the following: response = requests.post('https://httpbin.org/post', data = {'key':'value'}) When my API call is successful, I am able to view ...
John Doebrek's user avatar
1 vote
1 answer
986 views

My GitHub action would try to get a python package from Azure DevOps Artifacts. It needs Azure DevOps credentials to access that package. I made it work using Basic HTTP Authentication. https://...
MAK's user avatar
  • 2,313
0 votes
1 answer
210 views

I want to get the pw value from python, something like spawn python3 $pscript expect "password:" send "$enc_password\r" set outcome $expect_out(buffer) --getting empty array in ...
deba prasad nayak's user avatar
2 votes
1 answer
2k views

I noticed this issue when trying to run pip commands on my WSL2 Ubuntu-20.04 machine that it would take a long time to run anything. I finally narrowed it down to when pip is importing the keyring ...
CasualDemon's user avatar
  • 6,208
0 votes
1 answer
4k views

I'm trying to use the keyring module in jupyter notebook. import keyring keyring.set_password('system', 'test', '1234') I got the following output: -----------...
Mentoldo's user avatar
16 votes
3 answers
8k views

Under WSL2 running Ubuntu 20.04 I've tried to install virtualenv with pip running pip install virtualenv but the command just hangs printing nothing. I terminated it and ran it again with python3 -v -...
Ivan Vnucec's user avatar
3 votes
2 answers
1k views

I have created a PoC Azure pipeline to create a package in a feed, as below: trigger: - master pool: vmImage: 'ubuntu-latest' steps: - task: UsePythonVersion@0 inputs: versionSpec: '3.7' ...
user11185808's user avatar
1 vote
2 answers
1k views

I've been using keyring reliably for months. All of a sudden, a bunch of scripts failed because my code to pull keys is returning nothing. I had a named keyring with a passcode. It appears to be gone. ...
Chris Umphlett's user avatar
0 votes
1 answer
370 views

I am looking for a way to share my app with my coworkers without giving them the credentials for the database that the app accesses. I found keyring (https://pypi.org/project/keyring/) and thought ...
NMALM's user avatar
  • 438
0 votes
1 answer
911 views

import keyring keyring.set_password('test_db','louis','secret123') keyring.get_password('test_db','louis') 'secret123'
Siddartha Kandukury's user avatar
0 votes
1 answer
2k views

I'm using knockknock to email myself when training a model is complete. I am using VS Code. The first time I use the @email_sender(recipient_emails=email_address), it prompted me for a password, ...
JohnnyUtah's user avatar
0 votes
1 answer
296 views

I need to develope a python cgi script for a server run on Windows+IIS. The cgi script is run from a web page with Windows authentification. It means the script is run under different users from ...
Skalozub's user avatar
  • 549
19 votes
1 answer
18k views

I've been trying to run pip list -o and pip list --outdated to see if any packages need to be updated but it enters a loop of printing: WARNING: Keyring is skipped due to an exception: Failed to ...
Lauren's user avatar
  • 193
0 votes
1 answer
2k views

I have existing windows credentials in the credential manager with a blank username. It doesn't appear that the keyring package can read these: import keyring keyring.set_password("test", "", "...
cory's user avatar
  • 6,681
0 votes
1 answer
934 views

I can add passwords to Ubuntu's system keyring, retrievable by Ansible, with the command keyring set myservice username by installingsudo apt install python-keyring. This password is then retrievable ...
user2066480's user avatar
  • 1,425
0 votes
1 answer
746 views

Having recently upgraded to Spyder 4 on Anaconda, I am getting this Error message: I am aware of this question, but that relates to Spyder 3, and is not working in my case. My system runs on Linux ...
Partha D.'s user avatar
  • 326
6 votes
2 answers
23k views

I have a program which uses Yagmail and the keyring package to safley store email credentials. When I run this script in atom.io and idle it works. However, after I packaged it with pyinstaller it is ...
rmcknst2's user avatar
  • 307
0 votes
0 answers
482 views

I'm trying to figure out on how to set expiration of the password on the keyring. Example: I want the password to be automatically deleted after 24hours or once the system is rebooted. I just ...
arjay0601's user avatar
  • 475
6 votes
1 answer
4k views

Problem: I would like to use python's keyring library in a headless Linux environment, specifically a Debian 9 GCP compute instance. I have a cron job that wakes up every so often to run a python ...
S. Bogdan's user avatar
0 votes
1 answer
2k views

I'm trying to write a python application that can unlock gnome-keyring from a text-only system (headless machine) and retrieve the credentials. I have the gnome-keyring package installed in this ...
SilleBille's user avatar
25 votes
1 answer
15k views

I'm fairly new to programming and such. I'm trying to use Spyder3, and I keep getting this error (below). I am using Geforce 1080ti, Ubuntu 18.04.01, python3.3.6, python2 is not installed. I tried $ ...
Yume's user avatar
  • 446
1 vote
1 answer
788 views

I am trying to read and write username and password in a secured manner. With my current implementation I am following AES-CBC encryption/decryption but storing the encrypted username the with random ...
Auto-learner's user avatar
  • 1,521
1 vote
3 answers
5k views

Running into issue with keyring: RuntimeError: Unable to initialize SecretService: Environment variable DBUS_SESSION_BUS_ADDRESS is unset SecretService is installed. OS is RHEL Running: python -c &...
Alex F's user avatar
  • 33
5 votes
2 answers
9k views

I am getting these two messages when running a command line utility (in the case pgcli) in an headless Linux running in Docker: No handlers could be found for logger "keyring.backend" Please enter ...
mljrg's user avatar
  • 4,698
4 votes
0 answers
1k views

The following is what I see when I import keyring in Python 3 on a macOS 10.13 system: # python3 ...
mhucka's user avatar
  • 2,509
5 votes
2 answers
2k views

I have the following python test code: import keyring print(keyring.get_keyring()) keyring.set_password("a","b","c") print(keyring.get_password("a","b")) If I run this code using a 32 bit python or a ...
Daniele Milani's user avatar
1 vote
2 answers
2k views

I am trying to build an exe file using cx_Freeze from target.py which has an import of keyring in the code. I succeeded in building the exe file, but calls an error saying "No recommended backend was ...
tokawa's user avatar
  • 11
5 votes
0 answers
229 views

I try to use SecretStorage in 2 Python processes, but when I try to update my Gtk.Window I get this message most of the time: RuntimeError: Unable to initialize SecretService: Did not receive a ...
oxidworks's user avatar
  • 1,652
2 votes
1 answer
664 views

I'm pretty new to Python and programming and I am trying to figure out how to automate the box.com authentication process and it's kicking my butt. Any help would be appreciated! I have this code ...
JacobElliott's user avatar
5 votes
1 answer
4k views

I install the following packages (not all can be install on both platform) : Python 3.5.4 :: Anaconda custom (64-bit) keyring 9.3.1 keyring_jeepney 0.2 keyrings.alt 1.2 SecretStorage 2.3.1 on both a ...
Dr. Fabien Tarrade's user avatar
0 votes
0 answers
170 views

I have a config file like this: user=cn=read-only-admin,dc=example,dc=com password=somepassword I want to save password to keyring. I can use keyrin password in python files with keyring library : ...
jojo's user avatar
  • 165