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

Problem with the svn python bindings

From: ryan <ryan_at_netidea.com>
Date: 2003-03-31 09:26:59 CEST

Hi,

I've taken most of the weekend to install Subversion. Several problems and
solutions:
1. if you want to install into /usr/local/stow instead of plain /usr/local,
you cannot use make install to install the subprojects such as apr,
apr-util, neon, db4. Do those seperately instead. Or use the debian
packages for everything but neon.
2. While make install, do this first:
Export LD_LIBRARY_PATH=/usr/local/stow/subversion/lib
Export LIBRARY_PATH=/usr/local/stow/subversion/lib

This worked for me.

3. make swig-py
- had a hard time finding this out. I didnšt read INSTALL in the
bindings/swig directory :-)
- make sure you already stow'ed subversion before you make install-swig-py

Finally, I downloaded a cvs version of viewcvs, but I get this thrown python
error:
An Exception Has Occurred

Python Traceback

Traceback (most recent call last):
  File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 3037, in main
    run_viewcvs(server)
  File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 3007, in
run_viewcvs
    view_diff(request)
  File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 2705, in view_diff
    fp = diffobj.get_pipe()
  File "/usr/local/stow/subversion/lib/svn-python/svn/fs.py", line 103, in
get_pipe
    self.get_files()
  File "/usr/local/stow/subversion/lib/svn-python/svn/fs.py", line 84, in
get_files
    len = file_length(self.root1, self.path1, self.pool)
TypeError: svn_fs_file_length() takes exactly 4 arguments (3 given)

I looked in the code, and indeed, this is the case... File_length() is
giving 3 args, when 4 is expected.

I looked into it, and it looks like the 3rd argument should be a char * of
some sort, not the pool which it is now. I tried a few things, but not
being a Python expert nor really knowing what I'm doing, I had to give up
:-)

I'm not really familiar with SWIG or Python binding, so I'm stuck.
Hopefully someone out in svn land knows what's going on here.

PS: svn rules. Good job.

Regards,
-ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 31 09:27:33 2003

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

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