Opened 15 years ago
Last modified 7 years ago
#4486 new defect
Possible bug related to "packages.pth" — at Version 4
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | TracSvnPoliciesPlugin |
| Severity: | major | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description (last modified by )
What version are you using?
Checkout revision 5144 for Trac 0.11.
What were you doing when the problem occured?
- edit
svnpolicy.conf python setup.py bdist_eggcp dist/TracSVNPoliciesPlugin-0.2-py2.5.egg /path/to/tracroot/plugins- edit
/path/to/tracroot/conf/trac.ini - enable "Require log messages for commits" on the Administration UI
- try to commit something without a log message
What happened? What did you expect to happen instead?
Traceback (most recent call last): File "./hooks/pre-commit", line 3, in <module> from loader import * File "./.egg-cache/TracSVNPoliciesPlugin-0.2-py2.5.egg-tmp/svnpolicies/hooks/loader.py", line 39, in <module> from svnpolicies import api ImportError: No module named svnpolicies
instead of
the log message isn't conform to the project policy!
Any additional info?
Patch the following file like this:
-
svnpolicies/api.py
15 15 'get_site_packages'] 16 16 17 17 def get_site_packages(): 18 return path.sep.join(__file__.split(path.sep)[:- 3])18 return path.sep.join(__file__.split(path.sep)[:-2]) 19 19 20 20 def validate_email(email): 21 21 """
or change
/path/to/tracroot/plugins
manually to something like this
/path/to/tracroot/plugins/TracSVNPoliciesPlugin-0.2-py2.5.egg
Change History (4)
comment:1 Changed 14 years ago by
| Owner: | changed from Culapov Andrei to Robert Corsaro |
|---|
comment:2 Changed 14 years ago by
comment:3 Changed 8 years ago by
| Owner: | Robert Corsaro deleted |
|---|
comment:4 Changed 7 years ago by
| Description: | modified (diff) |
|---|
Note: See
TracTickets for help on using
tickets.



Just tried to adapt the above patch but it failed. Message on commits remains the same. Config is the same, as above. What else to try?