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

install fail #13

Closed
AmjadHD opened this issue Nov 1, 2018 · 3 comments
Closed

install fail #13

AmjadHD opened this issue Nov 1, 2018 · 3 comments

Comments

@AmjadHD
Copy link

AmjadHD commented Nov 1, 2018

https://marketplace.visualstudio.com/_apis/public/gallery/publishers/msjsdiag/vsextensions/debugger-for-chrome/latest/vspackage
https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-python/vsextensions/python/latest/vspackage
Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Sublime Text 3\Packages\sublime_db\main\commands.py", line 180, in install
    self.download(cfg)
  File "C:\Users\User\AppData\Roaming\Sublime Text 3\Packages\sublime_db\main\commands.py", line 152, in download
    shutil.copyfileobj(response, out_file)
  File "./python3.3/shutil.py", line 68, in copyfileobj
  File "./python3.3/gzip.py", line 367, in read
  File "./python3.3/gzip.py", line 456, in _read
  File "./python3.3/gzip.py", line 488, in _read_eof
  File "./python3.3/gzip.py", line 69, in read32
struct.error: unpack requires a bytes object of length 4

os: windows

@klmp200
Copy link
Contributor

klmp200 commented Nov 1, 2018

Maybe visualstudio.com is sending a different kind of archive for windows users, I'm gonna investigate.

@daveleroy
Copy link
Owner

I believe the response is probably encoded differently for him. I added the header "Accept-Encoding" : "gzip" and only run gzip on it if the response has "Content-Encoding" : "gzip" set.

I tested on windows it was working for me (The previous version was too however)

@AmjadHD
Copy link
Author

AmjadHD commented Jan 5, 2019

since the problem is unpacking the archive, I unpacked it manually using 7-zip and it worked (using winrar however didn't).

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

3 participants