Where did library function svn_diff_hunk_readline_diff_text go?

Skip to first unread message

Paul Hammant

Sep 2, 2018, 3:43:15 PM9/2/18
to selenium-developers
Hi gang,

from svn import diff

On older subversion installs this used to work. Well, not the 1,2,3
part, but it now barfs with:

Traceback (most recent call last):
File "foo.py", line 1, in <module>
from svn import diff
ImportError: cannot import name 'diff' from 'svn'

(homebrew installed Python3 and homebrew installed Subversion 1.10.2
which does the python bindings silently)

Ben Rasser had previously written a "svn-diff to JSON" thing that
worked very well -
- and now it doesn't, and I think it is because the C function and the
Swig gen'd Python for that has moved/renamed or has gone. I looked at
release notes an couldn't see a mention of that, though.


Curiously, python2 still has the diff module inside 'svn' and barfs on
the parameters to the svn_diff_hunk_readline_diff_text function. I say
that but I am not sure if the homebrew install for Subversion does the
python setup for **all** of 1) homebrew's python2 which v2.7.15 today,
2) homebrew's python3 - v3.7, and 3) the mac's python v2.7.10. I mean
versus obey some other PATH or arg setting which directs homebrew to
focus on one or more of those.

Lastly, if someone knows how to edit
https://formulae.brew.sh/formula/subversion they should perhaps remove
the obsolete args like --with-python which is now default.

- Paul

Paul Hammant

Sep 2, 2018, 3:45:53 PM9/2/18
to selenium-developers

Paul Hammant

Sep 3, 2018, 5:32:21 AM9/3/18
to selenium-developers
Dammit - wrong developer maillist - sorry!

On Sun, Sep 2, 2018 at 7:45 PM, Paul Hammant <pa...@hammant.org> wrote:

Reply all
Reply to author
0 new messages