SublimePythonCoverage icon indicating copy to clipboard operation
SublimePythonCoverage copied to clipboard

Problem initializing?

Open miketwo opened this issue 11 years ago • 6 comments

Came across this error when trying to load it:

Reloading plugin /home/cosmogia/.config/sublime-text-2/Packages/Python Coverage/SublimePythonCoverage.py SublimePythonCoverage installing coverage.py. Traceback (most recent call last): File "./sublime_plugin.py", line 62, in reload_plugin File "./SublimePythonCoverage.py", line 16, in payload = urllib.urlopen(SOURCE).read() File ".\urllib.py", line 86, in urlopen File ".\urllib.py", line 205, in open File ".\urllib.py", line 360, in open_http File ".\urllib.py", line 373, in http_error File ".\urllib.py", line 657, in http_error_301 File ".\urllib.py", line 638, in http_error_302 File ".\urllib.py", line 653, in redirect_internal File ".\urllib.py", line 202, in open File ".\urllib.py", line 214, in open_unknown IOError: [Errno url error] unknown url type: 'https'

miketwo avatar Jul 16 '13 03:07 miketwo

I have the same problem

monostop avatar Dec 17 '13 13:12 monostop

Sounds like the Python used by Sublime isn't compiled with SSL support.

davisagli avatar Dec 17 '13 17:12 davisagli

I think that's the case for linux. But on the other hand, the source is a http url so I don't understand why this is a problem.

monostop avatar Dec 18 '13 11:12 monostop

PyPI now only supports downloading packages over https, so it's redirecting to an https url.

davisagli avatar Dec 18 '13 18:12 davisagli

Maybe it would be better to just bundle the coverage tarball with this plugin.

davisagli avatar Dec 18 '13 18:12 davisagli

Can workaround this on Linux by fetching the package via shell, e.g:

cd ~/.config/sublime-text-2/Packages/Python\ Coverage
wget http://pypi.python.org/packages/source/c/coverage/coverage-3.5.2.tar.gz
tar -xzvf coverage-3.5.2.tar.gz coverage-3.5.2
mv coverage-3.5.2/coverage/ .
rm -rf coverage-3.5.2*
touch SublimePythonCoverage.py # Tell Sublime to reload the plugin

nathforge avatar Jan 13 '14 15:01 nathforge