Bug 1299241

Summary: Backport fix for upstream issue #117 into f22 && f23
Product: [Fedora] Fedora Reporter: Pavel Raiskup <praiskup>
Component: python-requests-toolbeltAssignee: Parag Nemade <pnemade>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: pnemade
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-requests-toolbelt-0.4.0-3.fc22 python-requests-toolbelt-0.4.0-3.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-28 18:23:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1299243    
Attachments:
Description Flags
Backported fix. none

Description Pavel Raiskup 2016-01-17 17:47:45 UTC
Created attachment 1115640 [details]
Backported fix.

https://github.com/sigmavirus24/requests-toolbelt/issues/117

This breaks file uploads for (not yet released) copr-cli.  Can be tested with
packages from [1] copr.  100% reproducible for uploads of SRPMS > 9kB:

    $ copr build YOUR_PROJECT YOUR_SRCRPM

[1] https://copr.fedoraproject.org/coprs/praiskup/copr-dev/

Comment 1 Parag Nemade 2016-01-18 06:44:06 UTC
All I get from installing copr-cli from above your repository is
Traceback (most recent call last):
  File "/usr/bin/copr", line 9, in <module>
    load_entry_point('copr-cli==1.46', 'console_scripts', 'copr-cli')()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2355, in load
    return self.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/site-packages/copr_cli/main.py", line 27, in <module>
    import copr.exceptions as copr_exceptions
ImportError: No module named exceptions

Comment 2 Parag Nemade 2016-01-18 07:14:55 UTC
Okay I got it I need to update all other 2 dependencies as well. I am able to reproduce this. Let me apply the patch attached here and build in F23 and F22. 
I was waiting for a month for a python-betamax package review for python-requests-toolbelt-0.5.1 update. I just got it approved finally. I will build that update in rawhide directly.

Comment 3 Pavel Raiskup 2016-01-18 07:29:36 UTC
(In reply to Parag Nemade from comment #1)
> All I get from installing copr-cli from above your repository is
> Traceback (most recent call last):
> ImportError: No module named exceptions

Maybe we should consider explicit 'Require:' in spec file, thanks for the
hint:
https://git.fedorahosted.org/cgit/copr.git/commit/?id=f5741fe267

(In reply to Parag Nemade from comment #2)
> Okay I got it I need to update all other 2 dependencies as well. I am able
> to reproduce this. Let me apply the patch attached here and build in F23 and
> F22. 
> I was waiting for a month for a python-betamax package review for
> python-requests-toolbelt-0.5.1 update. I just got it approved finally. I
> will build that update in rawhide directly.

Thanks!

Comment 4 Fedora Update System 2016-01-18 08:04:01 UTC
python-requests-toolbelt-0.4.0-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5f5984ecde

Comment 5 Fedora Update System 2016-01-18 08:06:48 UTC
python-requests-toolbelt-0.4.0-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5a56ce8d8a

Comment 6 Fedora Update System 2016-01-20 03:54:17 UTC
python-requests-toolbelt-0.4.0-3.fc22 has been pushed to the Fedora 22 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-2016-5a56ce8d8a

Comment 7 Fedora Update System 2016-01-20 03:55:28 UTC
python-requests-toolbelt-0.4.0-3.fc23 has been pushed to the Fedora 23 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-2016-5f5984ecde

Comment 8 Fedora Update System 2016-01-28 18:23:17 UTC
python-requests-toolbelt-0.4.0-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2016-01-28 18:29:38 UTC
python-requests-toolbelt-0.4.0-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.