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
httpie not working anymore on Mac OS X 10.10.2 #316
Comments
This looks to have been installed with brew. I'm not certain how likely it is that this will be easy to debug. |
Interesting. The formula specifies Requests 2.5.2 as a dependency which includes |
@janten what output do these two commands give you? $ grep __version__ /usr/local/Cellar/httpie/0.9.2/libexec/vendor/lib/python2.7/site-packages/requests/__init__.py $ grep disable_warnings /usr/local/Cellar/httpie/0.9.2/libexec/vendor/lib/python2.7/site-packages/requests/packages/urllib3/__init__.py |
Hello everyone and thanks for your help. @sigmavirus24 is correct, I installed
|
@janten thanks, that looks good. The externally installed Requests should normally not collide, because the script Homebrew installs sets the correct Would you also show the output of: $ echo $PYTHONPATH $ which http $ cat "`which http`" |
$ echo $PYTHONPATH
(seems like $PYTHONPATH is not set) $ which http
/usr/local/bin/http $ cat "`which http`"
#!/bin/bash
PYTHONPATH="/usr/local/Cellar/httpie/0.9.2/libexec/lib/python2.7/site-packages:/usr/local/Cellar/httpie/0.9.2/libexec/vendor/lib/python2.7/site-packages" exec "/usr/local/Cellar/httpie/0.9.2/libexec/bin/http" "$@" |
I'm having the same issue, with similar results: pip freeze | grep requests
requests==2.3.0
grep __version__ /usr/local/Cellar/httpie/0.9.2_1/libexec/vendor/lib/python2.7/site-packages/requests/__init__.py
__version__ = '2.6.0'
grep disable_warnings /usr/local/Cellar/httpie/0.9.2_1/libexec/vendor/lib/python2.7/site-packages/requests/packages/urllib3/__init__.py
def disable_warnings(category=exceptions.HTTPWarning):
echo $PYTHONPATH
which http
/usr/local/bin/http
cat "`which http`"
#!/bin/bash
PYTHONPATH="/usr/local/Cellar/httpie/0.9.2_1/libexec/lib/python2.7/site-packages:/usr/local/Cellar/httpie/0.9.2_1/libexec/vendor/lib/python2.7/site-packages" exec "/usr/local/Cellar/httpie/0.9.2_1/libexec/bin/http" "$@" Anything else I can do to help debug this? |
@jm3 could you try to uninstall the globally-installed Requests and try it again? $ sudo pip uninstall requests |
@jakubroztocil that did the trick, thanks! /cc @janten |
Great. I wonder if it would be possible to prevent this from happening by tweaking the formula. |
I'm getting this error without any homebrew install (pip installed, inside a virtualenv) According to pip, httpie requires I have requests 2.3.0 installed and it doesn't work doing a does the setup.py need updating? |
I am getting the same error, also installed with pip in a virtualenv:
|
@anentropic may you have an older version of urllib3 without disable_warnings method and using it instead? |
@hangtwenty if installing everything from pip, then that will not help anyone. |
@sigmavirus24 OK nevermind, I was trying to relay something said by someone at work using Windows. I don't use Windows myself so I couldn't validate. Deleted comment so it won't mislead anyone |
This issue should be fixed in 0.9.3. |
locking httpie to 0.9.4 resolves this issue
|
The text was updated successfully, but these errors were encountered: