Philip Martin wrote:
> It builds and installs on my Linux box. I don't really know how to
> exercise the swig stuff, but when I try to run svnlook.py I get
>
> $ python -V
> Python 2.1.3
> $ svnlook.py repo
> Traceback (most recent call last):
> File "/home/pm/sw/subversion/svn/tools/examples/svnlook.py", line
> 23, in ? from svn import core, fs, delta, repos
> File "/usr/local/subversion/lib/svn-python/svn/core.py", line 21,
> in ? from libsvn.core import *
> ImportError: dynamic module does not define init function (initcore)
Hmm, what version of swig are you using?
The SWIG docs include this compatibility note:
In SWIG-1.3.13 and earlier releases, module names did not
include the leading underscore. This is because modules were
normally created as C-only extensions without the extra
Python support file (instead, creating Python code was
supported as an optional feature). This has been changed in
SWIG-1.3.14 and is consistent with other Python extension
modules. For example, the socket module actually consists of
two files; socket.py and _socket.so. Many other built-in
Python modules follow a similar convention.
So maybe you're using an older version of swig which automatically puts in an
underscore and defines an init_core() function.
- Russ
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 24 00:07:52 2003