Bug 1160221 - Requires python-mccabe as well
Summary: Requires python-mccabe as well
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-flake8
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Runge
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-04 11:15 UTC by Matěj Cepl
Modified: 2018-04-11 12:00 UTC (History)
3 users (show)

Fixed In Version: python-flake8-2.0-5.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-22 04:15:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Matěj Cepl 2014-11-04 11:15:25 UTC
Description of problem:
When run in the git commit hook, I get

matej@mitmanek: generateReport (master +)$ git commit -a -v
Traceback (most recent call last):
  File ".git/hooks/pre-commit", line 11, in <module>
    sys.exit(git_hook(complexity=COMPLEXITY, strict=STRICT))
  File "/usr/lib/python2.7/site-packages/flake8/hooks.py", line 35, in git_hook
    config_file=DEFAULT_CONFIG, ignore=ignore, max_complexity=complexity)
  File "/usr/lib/python2.7/site-packages/flake8/engine.py", line 75, in get_style_guide
    kwargs['parser'], options_hooks = get_parser()
  File "/usr/lib/python2.7/site-packages/flake8/engine.py", line 38, in get_parser
    (extensions, parser_hooks, options_hooks) = _register_extensions()
  File "/usr/lib/python2.7/site-packages/flake8/engine.py", line 24, in _register_extensions
    checker = entry.load()
  File "/home/matej/.local/lib/python2.7/site-packages/pkg_resources.py", line 2169, in load
    self.require(env, installer)
  File "/home/matej/.local/lib/python2.7/site-packages/pkg_resources.py", line 2183, in require
    items = working_set.resolve(reqs, env, installer)
  File "/home/matej/.local/lib/python2.7/site-packages/pkg_resources.py", line 622, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: mccabe>=0.2
matej@mitmanek: generateReport (master +)$ 


Version-Release number of selected component (if applicable):
python-flake8-2.0-4.el7.noarch

Comment 1 Matěj Cepl 2014-11-04 11:17:23 UTC
Also,

matej@mitmanek: generateReport (master +)$ git commit -v -a
Traceback (most recent call last):
  File ".git/hooks/pre-commit", line 11, in <module>
    sys.exit(git_hook(complexity=COMPLEXITY, strict=STRICT))
  File "/usr/lib/python2.7/site-packages/flake8/hooks.py", line 35, in git_hook
    config_file=DEFAULT_CONFIG, ignore=ignore, max_complexity=complexity)
  File "/usr/lib/python2.7/site-packages/flake8/engine.py", line 75, in get_style_guide
    kwargs['parser'], options_hooks = get_parser()
  File "/usr/lib/python2.7/site-packages/flake8/engine.py", line 38, in get_parser
    (extensions, parser_hooks, options_hooks) = _register_extensions()
  File "/usr/lib/python2.7/site-packages/flake8/engine.py", line 24, in _register_extensions
    checker = entry.load()
  File "/home/matej/.local/lib/python2.7/site-packages/pkg_resources.py", line 2169, in load
    self.require(env, installer)
  File "/home/matej/.local/lib/python2.7/site-packages/pkg_resources.py", line 2183, in require
    items = working_set.resolve(reqs, env, installer)
  File "/home/matej/.local/lib/python2.7/site-packages/pkg_resources.py", line 622, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pyflakes>=0.6.1
matej@mitmanek: generateReport (master +)$

Comment 2 Matěj Cepl 2014-11-04 13:03:31 UTC
I see Requires in .spec, but in the end:

$ rpm -qR python-flake8
/usr/bin/python2
python(abi) = 2.7
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
$ 

Not sure what's going on

Comment 3 Matěj Cepl 2014-11-04 23:57:48 UTC
koji.fedoraproject.org/koji/taskinfo?taskID=8033873 builds correctly, but Bodhi seems to be down.

Comment 4 Fedora Update System 2014-11-05 00:08:38 UTC
python-flake8-2.0-5.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/python-flake8-2.0-5.el7

Comment 5 Fedora Update System 2014-11-05 18:46:36 UTC
Package python-flake8-2.0-5.el7:
* should fix your issue,
* was pushed to the Fedora EPEL 7 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing python-flake8-2.0-5.el7'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-3839/python-flake8-2.0-5.el7
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-11-22 04:15:42 UTC
python-flake8-2.0-5.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.