You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Branko Čibej <br...@xbc.nu> on 2003/12/09 22:14:37 UTC
python bindings experts, please...
Here I am, with a newbie question. svn-0.34.0, i686-pc-linux-gnu,
config.nice says:
#! /bin/sh
#
# Created by configure
"./configure" \
"--prefix=/usr/local/subversion-0.34.0" \
"--with-berkeley-db=/usr/local/BerkeleyDB.4.2" \
"--with-dbm=db42" \
"--with-apr=/usr/local/apache-2.0.48" \
"--with-apr-util=/usr/local/apache-2.0.48" \
"--with-apxs=/usr/local/apache-2.0.48/bin/apxs" \
"--with-zlib" \
"--with-swig=/usr/local" \
"--with-ssl" \
"$@"
and I did:
$ make
$ make install
$ make swig-py
$ make install-swig-py
then symlinked $prefix/svn-python/svn and $prefix/svn-python/libsvn into
the site-python directory. The following happens when I try mailer.py
from the 0.34.0 tarball:
$ ./mailer.py /opt/repos/svn-util/repo 1 ./mailer.conf
Traceback (most recent call last):
File "./mailer.py", line 650, in ?
svn.util.run_app(main, config_fname, repos_dir, revision)
File "/usr/local/subversion-0.34.0/lib/svn-python/svn/core.py", line 35, in run_app
svn_pool_destroy(pool)
TypeError: Type error. Expected _p_apr_pool_t
Oh yes, lest I forget:
$ /usr/local/bin/swig -version
SWIG Version 1.3.19
Copyright (c) 1995-1998
University of Utah and the Regents of the University of California
Copyright (c) 1998-2002
University of Chicago
Compiled with g++
--
Brane Čibej <br...@xbc.nu> http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: python bindings experts, please...
Posted by Ben Reser <be...@reser.org>.
On Wed, Dec 10, 2003 at 07:52:15PM -0800, Justin Erenkrantz wrote:
> % ldd lib/svn-python/libsvn/_core.so | grep swig
> libswigpy.so => <swig-path>/lib/libswigpy.so
> libsvn_swig_py-1.so.0 => <svn-path>/lib/libsvn_swig_py-1.so.0
Well yeah I wasn't disputing that it needed them.
> AFAICT, the Makefile should only be installing the lib when the target is
> install-swig-py-lib. So, I'd be shocked if it's working for you. -- justin
It does indeed:
[breser@sorcerer SPECS]$ grep swig-py-lib subversion.spec
[breser@sorcerer SPECS]$
--
Ben Reser <be...@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: python bindings experts, please...
Posted by John Peacock <jp...@rowman.com>.
Justin Erenkrantz wrote:
> AFAICT, the Makefile should only be installing the lib when the target
> is install-swig-py-lib. So, I'd be shocked if it's working for you. --
> justin
I've _never_ run anything except:
make swig-py
make install-swig-py
and yet the libraries are installed. I don't even see a target for either
install-swig-py or install-swig-py-lib in the main Makefile (or any other for
that matter). Are those targets somehow created created on the fly by the Makefile?
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: python bindings experts, please...
Posted by Ben Reser <be...@reser.org>.
On Wed, Dec 10, 2003 at 10:33:18AM -0800, Justin Erenkrantz wrote:
> I think you also need:
>
> $ make swig-py-lib
> $ make install-swig-py-lib
>
> The error message you were seeing doesn't convince me that that is the
> problem, but you do need lib_svn_swig_py-1.so or whatever it's called.
Nope.
make swig-py
make install-swig-py
should be sufficient. Now the perl bindings on the other hand do need
the lib stuff. That's an inconsistency I need to figure out.
At least that's what I'm doing in the Mandrake RPMS.
--
Ben Reser <be...@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: python bindings experts, please...
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Tuesday, December 09, 2003 23:14:37 +0100 "Branko ?ibej"
<br...@xbc.nu> wrote:
> $ make
> $ make install
> $ make swig-py
> $ make install-swig-py
I think you also need:
$ make swig-py-lib
$ make install-swig-py-lib
The error message you were seeing doesn't convince me that that is the
problem, but you do need lib_svn_swig_py-1.so or whatever it's called.
HTH. -- justin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org