[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN/Python/Shared Library/sccs2svn help please!

From: Max Bowsher <maxb_at_ukf.net>
Date: 2005-03-17 11:34:17 CET

Joey Mukherjee wrote:
> On Mar 16, 2005, at 11:45 AM, Max Bowsher wrote:
>
>> Joey Mukherjee wrote:
>>> I am trying out Robert Zeh's sccs2svn.py script and am having a few
>>> problems I'm hoping someone could help me with.
>>>
>>> The error message I am getting is:
>>>
>>> Traceback (most recent call last):
>>> File "sccs2svn.py", line 42, in ?
>>> from svn import fs, repos, core, client, delta
>>> File "/opt/local/subversion-1.1.3/lib/svn-python/svn/fs.py", line
>>> 28,
>>> in ?
>>> import libsvn.fs
>>> File "/opt/local/subversion-1.1.3/lib/svn-python/libsvn/fs.py", line
>>> 5, in ?
>>> import _fs
>>> ImportError: ld.so.1: python: fatal: relocation error: file
>>> /opt/local/subversion-1.1.3/lib/libsvn_swig_py-1.so.0: symbol
>>> SWIG_TypeQuery: referenced symbol not found
>>>
>>> Doing an nm on the _fs.so library shows SWIG_TypeQuery to be in there,
>>> but for some reason python can not find it.
>>>
>>> Does anyone have any ideas on how I can get this to work?
>>>
>>> I am using Python 2.3.4, swig 1.3.24, and subversion 1.1.3.
>>
>> Looks like a SWIG version mismatch, to me. I think your version of
>> libsvn_swig_py was compiled against an earlier version of swig.
>
> I never had more than one version of SWIG on here. Even so, I did a
> make distclean and remade everything. I eventually got everything
> remade and now it all seems okay, but I get the exact same error.
>
> Possibly Subversion does not work with this version of SWIG? It gave
> me a warning about the version of SWIG.

Ah, well, there's your answer, then.

Probably your best option would be to grab the patch adding support for Swig
1.3.24, which is planned for inclusion in Subversion 1.1.4:

$ svn diff
http://svn.collab.net/repos/svn/branches/1.1.x-new-swig -r13071:HEAD

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 17 11:37:52 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.