In article <CAJT2EHpwhhwvJuWwS5A506MGTWimtM=hzy9xka+8la1f4de...@mail.gmail.com> hartman.nat...@gmail.com writes:
> On Tue, Feb 16, 2021 at 12:32 PM Lev Serebryakov <l...@serebryakov.spb.ru> > wrote: > > I found cause, but as I'm not python programmer, I don't understand it. > > > > Old "import _XXX" (like "import _core" in > > subversion/bindings/swig/python/core.py) works, new "from . import XXX" > > doesn't. > > > > I've patched these lines in 8 files (all in > > subversion/bindings/swig/python/) and it helps. But I don't know why :) > > > > Please note, that I've changed only these lines, I didn't revert whole > > changes (which is much larger) around these lines. > > > Thank you! That is immensely helpful. Now we can check when and why > that change was introduced. However, I don't think it is not an issue of Subversion release tarball but an issue of FreeBSD ports. Perhaps symbolic links were missing. "from . import XXX" specifies relative import from a module. [[[ $ ls -l subversion/bindings/swig/python/libsvn/*.so lrwxr-xr-x 1 futatuki staff7 19 Feb 17 01:34 subversion/bindings/swig/python/libsvn/_client.so@ -> ../.libs/_client.so lrwxr-xr-x 1 futatuki staff7 17 Feb 17 01:34 subversion/bindings/swig/python/libsvn/_core.so@ -> ../.libs/_core.so lrwxr-xr-x 1 futatuki staff7 18 Feb 17 01:34 subversion/bindings/swig/python/libsvn/_delta.so@ -> ../.libs/_delta.so lrwxr-xr-x 1 futatuki staff7 17 Feb 17 01:34 subversion/bindings/swig/python/libsvn/_diff.so@ -> ../.libs/_diff.so lrwxr-xr-x 1 futatuki staff7 15 Feb 17 01:34 subversion/bindings/swig/python/libsvn/_fs.so@ -> ../.libs/_fs.so lrwxr-xr-x 1 futatuki staff7 15 Feb 17 01:34 subversion/bindings/swig/python/libsvn/_ra.so@ -> ../.libs/_ra.so lrwxr-xr-x 1 futatuki staff7 18 Feb 17 01:34 subversion/bindings/swig/python/libsvn/_repos.so@ -> ../.libs/_repos.so lrwxr-xr-x 1 futatuki staff7 15 Feb 17 01:34 subversion/bindings/swig/python/libsvn/_wc.so@ -> ../.libs/_wc.so ]]] On install, *.so modules will be installed in the same directory in libsvn/*.py, so I think they works without trouble. (I'm sorry, but I didn't try fresh ports tree yet because I'm using custom ports which support both of Python 2 bindings and Python 3 bindings.) Cheers, -- Yasuhito FUTATSUKI <futat...@yf.bsdclub.org>