Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536502 - www-apache/mod_python-3.5.0 - version = "fatal: Not a git repository (or any of the parent directories): .git
Summary: www-apache/mod_python-3.5.0 - version = "fatal: Not a git repository (or any ...
Status: RESOLVED DUPLICATE of bug 531154
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-13 16:14 UTC by Dmitry Stepankov
Modified: 2015-01-13 16:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Stepankov 2015-01-13 16:14:24 UTC
After system update all my TRAC projects on the website stopped to work, producing the following error in APACHE log:

import mod_python
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/mod_python/__init__.py", line 25, in <module>
    import version
  File "/usr/local/lib/python2.7/dist-packages/mod_python/version.py", line 3
    version = "fatal: Not a git repository (or any of the parent directories): .git

After googling I have found the following solution:

http://stackoverflow.com/questions/20021890/got-errors-when-import-mod-python 

My solution was to modify the file "/usr/lib64/python2.7/site-packages/mod_python/version.py" line 3

- FROM: version = "fatal: Not a git repository (or any of the parent
directories): .git
3.5.0-"
- TO: version = "3.5.0-"

This is also somehow mentioned here:
http://modpython.org/pipermail/mod_python/2014-March/026633.html

Hope this will help others ....
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-13 16:19:04 UTC

*** This bug has been marked as a duplicate of bug 531154 ***