LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-18-2008, 10:33 AM   #1
HowitZer
LQ Newbie
 
Registered: Mar 2007
Distribution: Fedora Core 6, Fedora Core 4
Posts: 22

Rep: Reputation: 0
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
 
Old 11-19-2008, 04:08 PM   #2
mmarshall
Member
 
Registered: Apr 2004
Location: Bedford, Texas (DFW area)
Distribution: ArchLinux
Posts: 41

Rep: Reputation: 15
Try this to see which svn library python is using:

Code:
ldd /usr/lib64/python2.4/site-packages/libsvn/_client.so | grep libsvn
(It's also possible that your _client.so file is in a different spot. Some distros mix those things around.)

MWM
 
Old 11-21-2008, 04:35 PM   #3
HowitZer
LQ Newbie
 
Registered: Mar 2007
Distribution: Fedora Core 6, Fedora Core 4
Posts: 22

Original Poster
Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
3x+1 in python, correct? raskol Programming 5 03-30-2008 08:04 PM
C++ Shared Libraries Failing SJD Programming 2 08-17-2007 02:08 AM
Python Libraries phantom_cyph Programming 2 08-02-2007 11:00 PM
KDE: Subversion Libraries? Kenji Miyamoto Slackware 1 05-26-2005 04:16 AM
No python 2.3 development libraries RPM a monkey Mandriva 3 02-24-2005 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration