condemil / gist

Sublime Text plugin for creating new Gists from selected text
MIT License
725 stars 136 forks source link

Error while contacting GitHub - after plugin update #68

Closed contumax closed 11 years ago

contumax commented 11 years ago

Ubuntu 12.04, this is what console says:

Traceback (most recent call last):
  File "./gist.py", line 168, in _fn
  File "./gist.py", line 571, in run
  File "./gist.py", line 279, in get_gists
  File "./gist.py", line 353, in api_request_native
  File ".\urllib2.py", line 126, in urlopen
  File ".\urllib2.py", line 391, in open
  File ".\urllib2.py", line 414, in _open
  File ".\urllib2.py", line 369, in _call_chain
  File ".\urllib2.py", line 1194, in unknown_open
URLError: <urlopen error unknown url type: https>
error: Gist: Error while contacting GitHub

Thanks for looking into this issue.

benmj commented 11 years ago

I'm experiencing the same issue.

OS: Ubuntu 12.04 running Unity Sublime Text 2.0.1 Build 2217 Plugin Version: pulled from Github (although package management version receives same error).

settipalli commented 11 years ago

Hi Anton Vérinov,

I pulled in gist.py of Feb 1 commit (https://raw.github.com/condemil/Gist/e6df4f0e00a6d023a8009ea02216f7dc0c6754dc/gist.py) and things were back to normal in Sublime Text 2.

Possibly the recent changes to gist.py on Feb 3 (https://github.com/condemil/Gist/blob/28389a318f5c420e4622a5fcccf6f893497aa2a0/gist.py), that introduced updates in the usage of urllib2 in gist.py may need some attention.

Thanks, -Santhosh.

condemil commented 11 years ago

Must be fixed now

contumax commented 11 years ago

Thanks Dmitry it works again. It would be great to move user&pass/token to some "user" file so you don't have to reenter credentials every time there is an update.

condemil commented 11 years ago

You need to enter it in User Settings (Preferences -> Package Settings -> Gist -> Settings - User), not in Settings - Default.

levacic commented 10 years ago

It doesn't work for me in Sublime Text 3 (build 3061), on Linux Mint 15:

Traceback (most recent call last):
  File "gist in /home/levacic/.config/sublime-text-3/Installed Packages/Gist.sublime-package", line 105, in _fn
  File "gist in /home/levacic/.config/sublime-text-3/Installed Packages/Gist.sublime-package", line 625, in run
  File "gist in /home/levacic/.config/sublime-text-3/Installed Packages/Gist.sublime-package", line 289, in get_gists
  File "gist in /home/levacic/.config/sublime-text-3/Installed Packages/Gist.sublime-package", line 380, in api_request_native
  File "./urllib/request.py", line 156, in urlopen
  File "./urllib/request.py", line 469, in open
  File "./urllib/request.py", line 492, in _open
  File "./urllib/request.py", line 447, in _call_chain
  File "./urllib/request.py", line 1310, in unknown_open
urllib.error.URLError: <urlopen error unknown url type: https>

Some research shows that this is a bug with Sublime Text on Linux:

Sorry for dumping so many links to you, just wanted to show you that this is a known issue.

As it is, I'm unable to use this package on my home computer. But the weird thing is - I'm pretty sure it works on my work computer (unless I'm remembering incorrectly), which is also running Linux Mint 15.

I can't access my work computer now, but I'll be at the office tomorrow - is there any specific debug info I could give you to help solve this problem?

And if it's actually ST3's fault (as the links suggest), would you be interested in coding a workaround to use curl or something else that's available?

Thanks!