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

Unpack requires a bytes object of length 1 #216

Closed
ghost opened this issue Jun 4, 2020 · 9 comments
Closed

Unpack requires a bytes object of length 1 #216

ghost opened this issue Jun 4, 2020 · 9 comments
Labels

Comments

@ghost
Copy link

ghost commented Jun 4, 2020

Hi,

today I started getting an error. On the console I get this output:

Evernote plugin error: unpack requires a bytes object of length 1
	Last command:  {}
	BEFORE SUBMITTING AN ISSUE (https://github.com/bordaigorl/sublime-evernote/issues):
	  1. Enable the `debug` setting in your Evernote.sublime-settings file and try again. If the problem persists take a note of the output in the console.
	     Make sure you delete personal information (e.g. Developer Token) from the output before posting it in an issue.
	  2. Check the wiki at https://github.com/bordaigorl/sublime-evernote/wiki
	  3. Search for similar issues at https://github.com/bordaigorl/sublime-evernote/issues?q=is%3Aissue
	(Evernote plugin v2.7.2, ST 3208, Python 3.3.6, windows x32)
error: Evernote plugin error, please see the console for more details.
Then contact developer at
https://github.com/bordaigorl/sublime-evernote/issues

I have the problem on a Linux machine and a Windows machine (output above). I am not behind a proxy and the problem happens on different wi-fis & my mobile phone hotspot. I re-configured authorisation as suggested in #127 - no change. I un-installed and re-installed the plugin - no change.

I also tried these two commands; they both work:

>>> import Evernote.lib.thrift as t; t.__file__
'{removed}\\Sublime Text\\Data\\Installed Packages\\Evernote.sublime-package\\lib/thrift/__init__.py'
>>> sublime.find_resources("Thrift.py")
['Packages/Evernote/lib/thrift/Thrift.py']

Any ideas what I could do?

Thank you!

@callumgwtaylor
Copy link

Just commenting to say this issue is also happening for me. I've also tried revoking and reinstalling developer tokens with no joy.

@alexcthompson
Copy link

I'm having the same problem.

@qunwang6
Copy link

qunwang6 commented Jun 5, 2020

me too

@bordaigorl bordaigorl added the bug label Jun 5, 2020
@bordaigorl
Copy link
Owner

I can confirm this is happening to me as well. I will try to investigate the issue in the weekend.
From a preliminary inspection, it seems that the Evernote server is not sending data and the protocol parser chokes on some handshaking.
The issue is not in how the plugin uses the Evernote SDK/API but in the communication between their servers and the SDK they provide (which is experimental for Python3 anyway).
If this is confirmed I am a bit worried that it would not be an easy thing to fix without their collaboration.

@bordaigorl
Copy link
Owner

Confirming my suspicion:
Evernote/evernote-sdk-python3#27
They have a workaround which I am going to push soon.
Let's hope Evernote get their act together and properly support Python3 with up-to-date SDK since Python2 is now deprecated anyway.

@bordaigorl
Copy link
Owner

Latest release fixes it for me.
Let me know if it worked.

@rdhyee
Copy link

rdhyee commented Jun 5, 2020

@bordaigorl https://github.com/bordaigorl/sublime-evernote/tree/2.7.3 fixed the problem for me -- I updated the package on SublimeText 3 and after restarting ST3, the problem went away. thank you

@sangkong
Copy link

sangkong commented Jun 5, 2020

works!

@alexcthompson
Copy link

ty for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants