Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looks like a bug: oprot.writeString() accept bytes #41

Open
vitaly-zdanevich opened this issue Apr 7, 2024 · 0 comments
Open

Looks like a bug: oprot.writeString() accept bytes #41

vitaly-zdanevich opened this issue Apr 7, 2024 · 0 comments

Comments

@vitaly-zdanevich
Copy link

vitaly-zdanevich commented Apr 7, 2024

oprot.writeString(self.clientName.encode('utf-8'))

$ geeknote find
>>  : Connecting to Evernote...Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/geeknote/geeknote.py", line 1769, in main
    Notes().find(**ARGS)
  File "/usr/lib/python3.11/site-packages/geeknote/geeknote.py", line 1463, in find
    result = self.getEvernote().findNotes(
             ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/geeknote/geeknote.py", line 649, in getEvernote
    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
vitaly-zdanevich referenced this issue in gentoo/guru Apr 24, 2024
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
vitaly-zdanevich referenced this issue in gentoo/guru Apr 26, 2024
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant