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

--spec with absolute local file path crashes on Windows #116

Closed
eliangcs opened this issue Apr 18, 2017 · 0 comments
Closed

--spec with absolute local file path crashes on Windows #116

eliangcs opened this issue Apr 18, 2017 · 0 comments
Labels

Comments

@eliangcs
Copy link
Contributor

>http-prompt --spec "C:\test.json"
Version: 0.10.0
Traceback (most recent call last):
  File "C:\Users\IEUser\venv\Scripts\http-prompt-script.py", line 11, in <module>
    load_entry_point('http-prompt==0.10.0', 'console_scripts', 'http-prompt')()
  File "c:\users\ieuser\venv\lib\site-packages\click\core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\ieuser\venv\lib\site-packages\click\core.py", line 697, in main
    rv = self.invoke(ctx)
  File "c:\users\ieuser\venv\lib\site-packages\click\core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\ieuser\venv\lib\site-packages\click\core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "c:\users\ieuser\venv\lib\site-packages\http_prompt\cli.py", line 107, in cli
    f = urlopen(spec)
  File "c:\python35\Lib\urllib\request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "c:\python35\Lib\urllib\request.py", line 466, in open
    response = self._open(req, data)
  File "c:\python35\Lib\urllib\request.py", line 489, in _open
    'unknown_open', req)
  File "c:\python35\Lib\urllib\request.py", line 444, in _call_chain
    result = func(*args)
  File "c:\python35\Lib\urllib\request.py", line 1324, in unknown_open
    raise URLError('unknown url type: %s' % type)
urllib.error.URLError: <urlopen error unknown url type: c>
@eliangcs eliangcs added the bug label Apr 18, 2017
eliangcs added a commit that referenced this issue May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant