Keyring apparently not installed correctly with pip macos

157
September 01, 2021, at 12:20 PM

I want to use the Python package keyring to avoid exposing passwords in my Python scripts. According to what I've read, all you need to do is pip install keyring and then start storing and retrieving credentials. I've done this on both my Mac laptop (Big Sur) and a CentOS 7 box. On my Mac, pip list shows that version 23.1.0 of keyring is installed, and the command line utility is available. However, when I try to set a password using the command line or in python use keyring.set_password(...) I get the following error:

File "/lib/python3.7/site-packages/keyring/backends/macOS/init.py", line 38, in set_password api.set_generic_password(self.keychain, service, username, password) NameError: name 'api' is not defined

Line 12 of the init.py is a simple import of the api module:

    from . import api

and then line 38, where the error is reported, tries to set the password:

    api.set_generic_password(self.keychain, service, username, password)

Why am I getting this error? I read somewhere that you shouldn't install keyring in a venv with pip but I'm not certain why not. Any help is appreciated.

Rent Charter Buses Company
READ ALSO
Jetpack Compose transparent NavBackStackEntry

Jetpack Compose transparent NavBackStackEntry

When I use Compose Navigation library, even if I set my root view and NavHost to have transparent background color, I see white background

144
How do I make my bot automatically create the channels and roles required for my bot to work as soon as it joins a server?

How do I make my bot automatically create the channels and roles required for my bot to work as soon as it joins a server?

So I do know how to make my bot create a role and a channelBut what is the event called when my bot is added to a server? thats all I want to know (the event name when my bot joins a server) I tried searching up in the documentations of discord

145
How can I update Text column that represents JSON in MySQL

How can I update Text column that represents JSON in MySQL

I have a column (TEXT) which stores json textI need to update the data

122