Red Hat Bugzilla – Bug 1247973
httpie: ImportError: cannot import name is_windows
Last modified: 2016-02-16 20:56:30 EST
Description of problem:
# rpm -ql httpie | grep /bin/
Traceback (most recent call last):
File "/usr/bin/http", line 9, in <module>
load_entry_point('httpie==0.8.0', 'console_scripts', 'http')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/httpie/__main__.py", line 5, in <module>
from .core import main
File "/usr/lib/python2.7/site-packages/httpie/core.py", line 21, in <module>
from .compat import str, is_py3
File "/usr/lib/python2.7/site-packages/httpie/compat.py", line 6, in <module>
from requests.compat import (
ImportError: cannot import name is_windows
Version-Release number of selected component (if applicable):
# rpm -q httpie
I think it is fixed upstream: https://github.com/jkbrzt/httpie/issues/314. Please update.
0.9.2 works fine.
0.9.2 depends on a fairly new version of python-requests that RHEL7 doesn't ship. However, httpie 0.8 (what I currently ship in EPEL7) depends on requests >= 2.0 but seems to work fine with 1.1, and I currently do this in the spec file: sed -i 's/requests>=2.0.0/requests>=1.1.0/' setup.py
So -- I wonder if we can do the same thing and fake the dependency for 0.9.2. I'll do a scratch build for now and see what happens. Would you be willing to test it out?
Here's a scratch build, if you're able to test it out. http://koji.fedoraproject.org/koji/taskinfo?taskID=10663702
Hm - looking closer, I am wrong. RHEL 7 ships a newer python-requests than I thought. Sorry! I'll submit this to epel 7 testing.
Sorry fore the delay.
Unfortunately scratch built rpms soes not accessible anymore.
Ricky do you plan post update?
Ricky, do you have any problem with it? Could I help? I may update and build that package if you wishes.
I long time serve it from my repository http://rpm.hubbitus.info/epel7/httpie/ and do not found any problems on several servers.
httpie-0.9.3-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-f8401c3784
httpie-0.9.3-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-f8401c3784
httpie-0.9.3-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.