httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
33.37k stars 3.67k forks source link

Python 3.6.4, httpie-0.9.9: ModuleNotFoundError: No module named 'httpie' #646

Closed brianbruggeman closed 6 years ago

brianbruggeman commented 6 years ago

Steps to reproduce:

$ python3 -m venv httpie-test
$ $WORKON_HOME/httpie-test/bin/activate
(httpie-test) $ pip install httpie
(httpie-test) $ http
Traceback (most recent call last):
  File "<redacted>/httpie-test/bin/http", line 7, in <module>
    from httpie.__main__ import main
ModuleNotFoundError: No module named 'httpie'
sigmavirus24 commented 6 years ago
~ ❯❯❯ python3 -m venv httpie
~ ❯❯❯ source httpie/bin/activate
(httpie) ~ ❯❯❯ pip install httpie
Collecting httpie
  Downloading httpie-0.9.9-py2.py3-none-any.whl (74kB)
    100% |████████████████████████████████| 81kB 293kB/s
Collecting Pygments>=2.1.3 (from httpie)
  Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB)
    100% |████████████████████████████████| 849kB 1.3MB/s
Collecting requests>=2.11.0 (from httpie)
  Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.11.0->httpie)
  Using cached chardet-3.0.4-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests>=2.11.0->httpie)
  Using cached certifi-2017.11.5-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests>=2.11.0->httpie)
  Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests>=2.11.0->httpie)
  Using cached idna-2.6-py2.py3-none-any.whl
Installing collected packages: Pygments, chardet, certifi, urllib3, idna, requests, httpie
Successfully installed Pygments-2.2.0 certifi-2017.11.5 chardet-3.0.4 httpie-0.9.9 idna-2.6 requests-2.18.4 urllib3-1.22
(httpie) ~ ❯❯❯ http
zsh: correct http to httpd [nyae]? n
usage: http [--json] [--form] [--pretty {all,colors,format,none}]
            [--style STYLE] [--print WHAT] [--headers] [--body] [--verbose]
            [--all] [--history-print WHAT] [--stream] [--output FILE]
            [--download] [--continue]
            [--session SESSION_NAME_OR_PATH | --session-read-only SESSION_NAME_OR_PATH]
            [--auth USER[:PASS]] [--auth-type {basic,digest}]
            [--proxy PROTOCOL:PROXY_URL] [--follow]
            [--max-redirects MAX_REDIRECTS] [--timeout SECONDS]
            [--check-status] [--verify VERIFY]
            [--ssl {ssl2.3,ssl3,tls1,tls1.1,tls1.2}] [--cert CERT]
            [--cert-key CERT_KEY] [--ignore-stdin] [--help] [--version]
            [--traceback] [--default-scheme DEFAULT_SCHEME] [--debug]
            [METHOD] URL [REQUEST_ITEM [REQUEST_ITEM ...]]
http: error: the following arguments are required: URL

(httpie) ~ ❯❯❯

You've included far too little detail and this isn't reproducible. That leads me to believe this is a problem with what you're doing.

houko commented 6 years ago

649

sigmavirus24 commented 6 years ago

@xiaomoinfo This is emphatically not the same problem as what you encountered. Further, provided @brianbruggeman hasn't responded in almost a month, I suspect that @jakubroztocil can close this

brianbruggeman commented 6 years ago

Sorry for the delay; I ended up with a newborn. At this point, I'm probably not going to get back to it until March at the earliest. I'll close it for now and reopen if I still have problems.

sigmavirus24 commented 6 years ago

Congrats on the newborn @brianbruggeman :) 🎉