bzr-svn on mac

Adam Mercer ramercer at gmail.com
Fri Jul 27 14:40:23 BST 2007


On 27/07/07, Neil Martinsen-Burrell <nmb at wartburg.edu> wrote:

> The canonical way to tell python where to find the bindings is using a
> .pth file:
>
> echo $HOME/opt/lib/svn-python/libsvn >
> /Library/Frameworks/Python.framework/Versions/Current/lib/python2.4/site-packages/svn.pth
>
> Then try python -c "import libsvn.core" to see if python can find the
> bindings.

With /Users/ram/opt/subversion/lib/svn-python in
/opt/local/lib/python2.4/site-packages/svn.pth and without the path to
svn-python added to PYTHONPATH

$ python2.4 -c "import libsvn-core"
Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: No module named libsvn.core
$

with the svn-python directory added to PYTHONPATH

$ python2.4 -c "import libsvn.core"
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/Users/ram/opt/subversion/lib/svn-python/libsvn/core.py", line 5, in ?
    import _core
ImportError: No module named _core
$

so it seems that svn.pth is not making any difference

Cheers

Adam



More information about the bazaar mailing list