honglianglv / reviewboard-svn-hooks

Automatically exported from code.google.com/p/reviewboard-svn-hooks
0 stars 0 forks source link

SVN hook report:pkg_resources.DistributionNotFound: reviewboard-svn-hooks==0.2.1-r20 #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download the install package, and install.py, set the config, setup the 
pre-commit hook
2. change code at local development environment.
3. svn commit -m "test" 

What is the expected output? What do you see instead?
The commit should be block because the hook, but it report:
Sending        catch\index.php
Sending        new\trad.txt
Transmitting file data ..svn: E165001: Commit failed (details follow):
svn: E165001: Commit blocked by pre-commit hook (exit code 1) with output:
Traceback (most recent call last):
  File "/usr/bin/strict_review", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2710, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 687, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 585, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: reviewboard-svn-hooks==0.2.1-r20

What version of the product are you using? On what operating system?
uname -a : Linux svn 2.6.32-hardened-r22-nsfocus #1 SMP Wed Nov 24 14:31:08 CST 
2010 i686 Intel(R) Xeon(R) CPU E5606 @ 2.13GHz GenuineIntel GNU/Linux
Gentoo linux.
product version: reviewboard-svn-hooks-0.2.1-r20

Please provide any additional information below.
Run the command "/usr/bin/strict_review" as root, it show :
list index out of range
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/reviewboard_svn_hooks-0.2.1_r20-py2.7.egg/reviewboardsvnhooks/strict_review.py", line 198, in main
    _main()
  File "/usr/lib/python2.7/site-packages/reviewboard_svn_hooks-0.2.1_r20-py2.7.egg/reviewboardsvnhooks/strict_review.py", line 175, in _main
    repos = sys.argv[1]
IndexError: list index out of range

Original issue reported on code.google.com by moun...@gmail.com on 6 May 2014 at 2:15