Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521132 - net-misc/httpie: Missing dependency with Python 3.x
Summary: net-misc/httpie: Missing dependency with Python 3.x
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Vikraman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-26 15:04 UTC by Christian Ruppert (idl0r)
Modified: 2014-08-27 08:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Ruppert (idl0r) gentoo-dev 2014-08-26 15:04:17 UTC
Running "httpie" on a Python 3.3 system results into:
% http -h
/usr/bin/python3.3: No module named SimpleHTTPServer

That module comes along with Python 2.x but there's no such module with 3.x (at least 3.3) it seems.
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2014-08-26 15:05:04 UTC
"The SimpleHTTPServer module has been merged into http.server"
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2014-08-26 15:23:28 UTC
It doesn't even work with
PYTHON_TARGETS="python2_7" emerge net-misc/httpie
The same error. 3.x is set as default but the wrapper of 2.x should actually be used here instead.
Comment 3 Vikraman (RETIRED) gentoo-dev 2014-08-26 16:12:50 UTC
Works fine for me.

% eix -e httpie
[I] net-misc/httpie
     Available versions:  (~)0.6.0 (~)0.7.2 (~)0.8.0 {PYTHON_TARGETS="python2_7 python3_2 python3_3"}
     Installed versions:  0.8.0(11:47:54 AM 04/17/2014)(PYTHON_TARGETS="python2_7 python3_3 -python2_6 -python3_2")
     Homepage:            http://httpie.org/ http://pypi.python.org/pypi/httpie
     Description:         A CLI, cURL-like tool for humans
% eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.3
  [3]   python3.4 *
% http -h
usage: http [--json] [--form] [--pretty {all,colors,format,none}]
            [--style STYLE] [--print WHAT] [--verbose] [--headers] [--body]
            [--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] [--verify VERIFY]
            [--timeout SECONDS] [--check-status] [--ignore-stdin] [--help]
            [--version] [--traceback] [--debug]
            [METHOD] URL [REQUEST_ITEM [REQUEST_ITEM ...]]
http: error: too few arguments

% sudo eselect python set 2
% eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.3 *
  [3]   python3.4
% http -h
usage: http [--json] [--form] [--pretty {all,colors,format,none}]
            [--style STYLE] [--print WHAT] [--verbose] [--headers] [--body]
            [--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] [--verify VERIFY]
            [--timeout SECONDS] [--check-status] [--ignore-stdin] [--help]
            [--version] [--traceback] [--debug]
            [METHOD] URL [REQUEST_ITEM [REQUEST_ITEM ...]]
http: error: the following arguments are required: URL, REQUEST_ITEM

httpie doesn't even use SimpleHTTPServer.

% qlist -e httpie | xargs ag -i simplehttp
Comment 4 Christian Ruppert (idl0r) gentoo-dev 2014-08-27 08:24:03 UTC
Sorry, my fault. For some reason I had a "http" alias ($USER only).