jeffkowalski / geeknote

Console client for Evernote.
GNU General Public License v3.0
393 stars 50 forks source link

TypeError: encoding without a string argument #137

Open vitaly-zdanevich opened 1 year ago

vitaly-zdanevich commented 1 year ago

$ geeknote show pgp

: Connecting to Evernote...Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/geeknote/geeknote.py", line 1766, in main Notes().show(**ARGS) File "/usr/lib/python3.11/site-packages/geeknote/geeknote.py", line 1241, in show self.connectToEvernote() File "/usr/lib/python3.11/site-packages/geeknote/geeknote.py", line 643, in connectToEvernote self.evernote = GeekNote() ^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/geeknote/geeknote.py", line 99, in init self.getUserStore() File "/usr/lib/python3.11/site-packages/geeknote/geeknote.py", line 182, in getUserStore self.checkVersion() File "/usr/lib/python3.11/site-packages/geeknote/geeknote.py", line 198, in checkVersion versionOK = self.getUserStore().checkVersion( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/evernote/edam/userstore/UserStore.py", line 490, in checkVersion self.send_checkVersion(clientName, edamVersionMajor, edamVersionMinor) File "/usr/lib/python3.11/site-packages/evernote/edam/userstore/UserStore.py", line 499, in send_checkVersion args.write(self._oprot) File "/usr/lib/python3.11/site-packages/evernote/edam/userstore/UserStore.py", line 1460, in write oprot.writeString(self.clientName.encode('utf-8')) File "/usr/lib/python3.11/site-packages/thrift/protocol/TProtocol.py", line 122, in writeString self.writeBinary(str_to_binary(str_val)) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/thrift/compat.py", line 43, in str_to_binary return bytes(str_val, 'utf8') ^^^^^^^^^^^^^^^^^^^^^^ TypeError: encoding without a string argument