IQAndreas/github-issues-import

urllib unknown url type

brainstorm opened this issue · 0 comments

After tweaking the config.ini like so:

[login]
username = brainstorm
password = somepwd

[source]
repository = INCF/biostar-central

[target]
repository = ialbert/biostar-central

I am getting the following traceback:

Loaded options from default config file in '/Users/roman/tmp/github-issues-import/config.ini'
Traceback (most recent call last):
  File "gh-issues-import.py", line 431, in <module>
    issues += get_issues_by_id('source', issue_ids)
  File "gh-issues-import.py", line 237, in get_issues_by_id
    issues.append(get_issue_by_id(which, int(issue_id)))
  File "gh-issues-import.py", line 231, in get_issue_by_id
    return send_request(which, "issues/%d" % issue_id)
  File "gh-issues-import.py", line 207, in send_request
    response = urllib.request.urlopen(req)
  File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 153, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 455, in open
    response = self._open(req, data)
  File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 478, in _open
    'unknown_open', req)
  File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 433, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 1257, in unknown_open
    raise URLError('unknown url type: %s' % type)
urllib.error.URLError: <urlopen error unknown url type: https>