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 ....
*** This bug has been marked as a duplicate of bug 531154 ***