bitwarden-keyring icon indicating copy to clipboard operation
bitwarden-keyring copied to clipboard

TypeError: a bytes-like object is required, not 'str'

Open rashed-c opened this issue 6 years ago • 2 comments

I was getting the following error when trying to run it. I noticed the issue was caused by line 93-95 in init.py. Could be due to me using Windows/Python3.7.

I was able to fix the issue by setting encoding for subprocess and removing encoding for stdout.

https://github.com/steamer739/bitwarden-keyring/commit/11d624eb4ccff1bea5aaf2754798f2ae7011d379

However, I am still a bit confused about how to pull credentials properly. Can you please give me an example on how you would use bitwarden-keyring?

Thanks.

rashed-c avatar Feb 25 '19 23:02 rashed-c

@steamer739

I was able to run " /usr/local/bin/pytest tests/test_bitwarden_keyring.py". On a Centos 7.6 with python36 installed. I am still trying to figure out how to really use this python module by a python script.

tjyang avatar Aug 26 '19 23:08 tjyang

I just realized I forgot to watch this repo. Sorry for the 2 year lag...

So... Yeah. I use this project via twine, which was my main usecase.

I'll welcome improvements to the lib, now that I'm watching the project 😓

ewjoachim avatar Sep 25 '21 17:09 ewjoachim