bzr-svn on mac
Neil Martinsen-Burrell
nmb at wartburg.edu
Fri Jul 27 22:01:30 BST 2007
bazaar-request at lists.canonical.com wrote:
> Subject: Re: bzr-svn on mac
> 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
According to subversion-1.4.3/subversion/bindings/swig/INSTALL, the
appropriate path to put in the .pth file is
/Users/ram/opt/subversion/lib/svn-python and the import to try is
"import svn.core" rather than my earlier "import libsvn.core". Can you
also give an "ls" of the two directories under .../svn-python and check
that the path in the svn.pth file does appear in sys.path? I'm really
not sure why the import isn't working correctly. Peace,
-Neil
--
Neil Martinsen-Burrell
nmb at wartburg.edu
More information about the bazaar
mailing list