Python failing to find correct Subversion libraries
Hello,
We had Subversion 1.4 installed on Fedora 6 working with WebSVN for several months. Then we upgraded to Subversion 1.5 and WebSVN started showing our repositories but not showing any data. Everything besides WebSVN concerning Subversion with 1.5 is working. So I tried to install a different repos viewing tool called ViewVC and I'm getting this error in the browser : An Exception Has Occurred Python Traceback Traceback (most recent call last): File "/usr/local/viewvc-1.0.7/lib/viewvc.py", line 3746, in main request.run_viewvc() File "/usr/local/viewvc-1.0.7/lib/viewvc.py", line 265, in run_viewvc cfg.general.svn_path) File "/usr/local/viewvc-1.0.7/lib/vclib/svn/__init__.py", line 606, in __init__ self.repos = repos.svn_repos_open(rootpath, self.pool) File "/usr/lib64/python2.4/site-packages/libsvn/repos.py", line 55, in svn_repos_open return apply(_repos.svn_repos_open, args) SubversionException: ("Expected FS format '2'; found format '3'", 160043) I think this is because Python is still bound to Subversion 1.4. We had to address this problem initially after installing 1.5 but I don't know how to fix this instance of it. I need to know how to make this incarnation of Python point to Subversion 1.5 instead of 1.4. Thanks -Adam |
Try this to see which svn library python is using:
Code:
ldd /usr/lib64/python2.4/site-packages/libsvn/_client.so | grep libsvn MWM |
Thanks for the response. Python was using the 1.4.3 libsvn bindings. I copied over the old bindings with new ones I built from SVN 1.5 source code. That caused viewVC to work except for one thing.
When I click "Annotate" I get this output. An Exception Has Occurred Python Traceback Traceback (most recent call last): File "/usr/local/viewvc-1.0.7/lib/viewvc.py", line 3746, in main request.run_viewvc() File "/usr/local/viewvc-1.0.7/lib/viewvc.py", line 403, in run_viewvc self.view_func(self) File "/usr/local/viewvc-1.0.7/lib/viewvc.py", line 2220, in view_annotate generate_page(request, "annotate", data) File "/usr/local/viewvc-1.0.7/lib/viewvc.py", line 855, in generate_page template.generate(request.server.file(), data) File "/usr/local/viewvc-1.0.7/lib/ezt.py", line 326, in generate self._execute(self.program, ctx) File "/usr/local/viewvc-1.0.7/lib/ezt.py", line 455, in _execute step[0](step[1], ctx) File "/usr/local/viewvc-1.0.7/lib/ezt.py", line 525, in _cmd_for for unused in iterator: File "/usr/local/viewvc-1.0.7/lib/ezt.py", line 715, in next self.last_item = self._iter.next() # may raise StopIteration File "/usr/local/viewvc-1.0.7/lib/blame.py", line 80, in __getitem__ item = self.annotation.__getitem__(idx) File "/usr/local/viewvc-1.0.7/lib/vclib/svn/__init__.py", line 544, in __getitem__ raise vclib.Error("Could not parse blame output at line %i\n%s" Error: Could not parse blame output at line 1 svn: Unable to open an ra_local session to URL Any ideas? |
All times are GMT -5. The time now is 07:05 AM. |