Bug 1321133

Summary: install_requires contains forward-incompatible "PEAK-Rules>=0.5a1.dev-r2562,==dev" specification
Product: Red Hat Enterprise Linux 6 Reporter: Jan Pokorný [poki] <jpokorny>
Component: python-prioritized-methodsAssignee: Charalampos Stratakis <cstratak>
Status: CLOSED ERRATA QA Contact: Jan Kepler <jkejda>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.8CC: bnater, ccheney, cstratak, hhorak, jkejda, pviktori
Target Milestone: rcKeywords: EasyFix, FastFix, Patch
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: python-prioritized-methods-0.2.1-5.2.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-21 09:59:33 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1356061, 1373251    
Attachments:
Description Flags
prioritized_methods-fix-requires.patch none

Description Jan Pokorný [poki] 2016-03-24 18:21:14 UTC
Created attachment 1140096 [details]
prioritized_methods-fix-requires.patch

This gets exposed with luci when user deliberately updates setuptools:

# rpm -q python-setuptools || yum install python-setuptools
# easy_install -U setuptools
# yum install luci
# luci-h
> Usage: luci [paster_options] COMMAND [command_options]
> 
> Options:
>   --version         show program's version number and exit
>   --plugin=PLUGINS  Add a plugin to the list of commands (plugins are Egg
>                     specs; will also require() the Egg)
>   -h, --help        Show this help message
> 
> Cannot load command tginfo:
>   (PEAK-Rules 0.5a1.dev-r2582 (/usr/lib/python2.6/site-packages),
>    Requirement.parse('PEAK-Rules==dev,>=0.5a1.dev-r2562'),
>    set(['prioritized-methods']))
> Commands:
>   create       Create the file layout for a Python distribution
>   help         Display help
>   make-config  Install a package and create a fresh config file/directory
>   points       Show information about entry points
>   post         Run a request for the described application
>   request      Run a request for the described application
>   serve        Serve the described application
>   setup-app    Setup an application, given a config file

After the attached fix[*]:
> Usage: luci [paster_options] COMMAND [command_options]
> 
> Options:
>   --version         show program's version number and exit
>   --plugin=PLUGINS  Add a plugin to the list of commands (plugins are Egg
>                     specs; will also require() the Egg)
>   -h, --help        Show this help message
> 
> /usr/lib/python2.6/site-packages/tw/core/view.py:223:
>   DeprecationWarning: object.__new__() takes no parameters
>   obj = object.__new__(cls, *args, **kw)
> Commands:
>   create       Create the file layout for a Python distribution
>   help         Display help
>   make-config  Install a package and create a fresh config file/directory
>   points       Show information about entry points
>   post         Run a request for the described application
>   request      Run a request for the described application
>   serve        Serve the described application
>   setup-app    Setup an application, given a config file
> 
> TurboGears2:
>   tginfo       Show TurboGears 2 related projects and their versions

NOTE: the warning is actually harmless.


[*] or when running following as a workaround:
sed -i.bck 's|,==dev||' \
  /usr/lib/python2.6/site-packages/prioritized_methods-*-py2.6.egg-info/requires.txt

Comment 10 errata-xmlrpc 2017-03-21 09:59:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0636.html