Subversion's Python bindings fail in 1.13.0_3 or later for Python 2.7 and 3.8 #53193
Closed
3 of 4 tasks
Labels
outdated
PR was locked due to age
brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link?brew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
I'm trying to use the Subversion Python bindings installed with Brew, which I've successfully done for many years and many releases of Subversion provided by Homebrew, until recently. The Trac Project, for which I'm a developer, has some modules and a suite of tests that use the Subversion Python bindings.
Here is my
gist-logs
: https://gist.github.com/rjollos/9d21dc5316a6ab6e8650bd253cd9272aWhat happened (include command output)
Using Subversion Python bindings works prior to e073d0b. In e073d0b the dependency was changed to from Python@2 to [email protected]. The Subversion bindings in 1.13 release are not compatible with Python 3. In Subversion 1.14 the bindings have been made compatible with Python 3 (see release notes). I've tested Subversion 1.14dev built from source on my OSX computer and the bindings work fine with 1.14dev. In fact the entire Test Suite for the Trac Project passes, as further proof.
So I think you can switch the dependency to [email protected] when 1.14 is released (looks like that will be soon), but for now I believe the brew formula needs to be switched back to have a dependency on Python@2. Details below.
Command output
I add the libraries into a Python 2.7 virtualenv created using pyenv:
Using 1.13.0_3 (e073d0b) or later results in the following:
Doing the same with a Python 3.8 virtualenv also fails:
However, if I install the revision of the formulae that is the parent of e073d0b, which is b309c2e,
Then
python -c "from svn import core"
succeeds and the entire Trac Project test suite passes.What you expected to happen
The following should product no errors:
Step-by-step reproduction instructions (by running
brew install
commands)results in usable Subversion Python bindings.
However,
at present installs 1.13.0_4, for which the Subversion Python bindings fail.
The text was updated successfully, but these errors were encountered: