ttyridal / masterpassword-firefox

masterpassword for Firefox
GNU General Public License v3.0
33 stars 9 forks source link

pwvault_gateway_dbus.py fails with 'Failed: can't concat str to bytes' #62

Closed RubenKelevra closed 3 years ago

RubenKelevra commented 4 years ago

I tried to install the helper for kwallet / chrome and the script just fails with:

Failed: can't concat str to bytes

ttyridal commented 4 years ago

Hi, thanks for reporting this.

What was the command you issued?

Sounds like a python3 issue. The script should work in both python3 and python2, but you might have greater success forcing it to use python2

RubenKelevra commented 4 years ago

I've followed the 'help' link in the Chrome extension, this opens the page. I've selected NativeBridge Linux and downloaded the linked python script.

The command was $ python pwvault_gateway_dbus.py install kwallet chrome.

$ python --version
Python 3.8.1

Sounds like a python3 issue. The script should work in both python3 and python2, but you might have greater success forcing it to use python2

Python 2 is EOL, so it's not installed on my system.

RubenKelevra commented 4 years ago

I've updated to Python 3.8.2 and fetched the latest version, but it's still broken :/

mil2house commented 3 years ago

Hi.

I`m report the same fail on Kwallet (KDE5) and Firefox. Python 3.8.5 Failed: can't concat str to bytes

Please, is possible repare it? Thx. :)

ttyridal commented 3 years ago

So, finally had the time to look quickly into this. Have you tried it afterwards? The error reported on install is actually the very last line, just stating "install successful" - so it should work regardless.

might be other similar issues though

ttyridal commented 3 years ago

you can test without firefox by the way:

pwvault_gateway_dbus.py test kwallet pwget and pwvault_gateway_dbus.py test kwallet pwset sssh-secret-password

(a bit embarrassed to admit I don't have a linux desktop at the moment 🙄)

ttyridal commented 3 years ago

tested with kubuntu 20.04 working ok. needs python-is-python3 package