load https urls

556 days ago by jason3

filename='https://github.com/jasongrout/minimum_rank/raw/master/zero_forcing_64.pyx' 
       
load(filename) 
       
Compiling
https://github.com/jasongrout/minimum_rank/raw/master/zero_forcing_64.py\
x...
Error compiling cython file:
[Errno 2] No such file or directory:
'https://github.com/jasongrout/minimum_rank/raw/master/zero_forcing_64.p\
yx'
Compiling https://github.com/jasongrout/minimum_rank/raw/master/zero_forcing_64.pyx...
Error compiling cython file:
[Errno 2] No such file or directory: 'https://github.com/jasongrout/minimum_rank/raw/master/zero_forcing_64.pyx'
from sage.misc.remote_file import get_remote_file get_remote_file(filename) 
       
Attempting to load remote file:
https://github.com/jasongrout/minimum_rank/raw/master/zero_forcing_64.py\
x
Traceback (click to the left of this block for traceback)
...
IOError: [Errno url error] unknown url type: 'https'
Attempting to load remote file: https://github.com/jasongrout/minimum_rank/raw/master/zero_forcing_64.pyx
Loading: [Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_8.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("ZnJvbSBzYWdlLm1pc2MucmVtb3RlX2ZpbGUgaW1wb3J0IGdldF9yZW1vdGVfZmlsZQpnZXRfcmVtb3RlX2ZpbGUoZmlsZW5hbWUp"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmphpFksx/___code___.py", line 3, in <module>
    exec compile(u'get_remote_file(filename)
  File "", line 1, in <module>
    
  File "/home/sage/sage_install/sage-4.6.rc0/local/lib/python2.6/site-packages/sage/misc/remote_file.py", line 32, in get_remote_file
    urllib.urlretrieve(filename, temp_name, report_hook)
  File "/home/sage/sage_install/sage-4.6.rc0/local/lib/python/urllib.py", line 94, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/home/sage/sage_install/sage-4.6.rc0/local/lib/python/urllib.py", line 238, in retrieve
    fp = self.open(url, data)
  File "/home/sage/sage_install/sage-4.6.rc0/local/lib/python/urllib.py", line 203, in open
    return self.open_unknown(fullurl, data)
  File "/home/sage/sage_install/sage-4.6.rc0/local/lib/python/urllib.py", line 215, in open_unknown
    raise IOError, ('url error', 'unknown url type', type)
IOError: [Errno url error] unknown url type: 'https'
import urllib2 f = urllib2.urlopen(filename) 
       
Traceback (click to the left of this block for traceback)
...
urllib2.URLError: <urlopen error unknown url type: https>
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_10.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("aW1wb3J0IHVybGxpYjIKZiA9IHVybGxpYjIudXJsb3BlbihmaWxlbmFtZSk="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmp9ZJeYP/___code___.py", line 3, in <module>
    exec compile(u'f = urllib2.urlopen(filename)
  File "", line 1, in <module>
    
  File "/home/sage/sage_install/sage-4.6.rc0/local/lib/python/urllib2.py", line 124, in urlopen
    return _opener.open(url, data, timeout)
  File "/home/sage/sage_install/sage-4.6.rc0/local/lib/python/urllib2.py", line 389, in open
    response = self._open(req, data)
  File "/home/sage/sage_install/sage-4.6.rc0/local/lib/python/urllib2.py", line 412, in _open
    'unknown_open', req)
  File "/home/sage/sage_install/sage-4.6.rc0/local/lib/python/urllib2.py", line 367, in _call_chain
    result = func(*args)
  File "/home/sage/sage_install/sage-4.6.rc0/local/lib/python/urllib2.py", line 1179, in unknown_open
    raise URLError('unknown url type: %s' % type)
urllib2.URLError: <urlopen error unknown url type: https>