Mailing List Archive

Help adding SVN repo to trac 1.6
Hi,

Can you please help me configure the SVN repo in Trac 1.6? We ported an old
Trac version to 1.6 on Oracle Linux 8.9 and although the tickets/wiki works
great, we cannot get it to recognize our svn repository. I am getting the
error: *InvalidConnector: Unsupported version control system "svn": cannot
import name 'fs'.* I have
read https://groups.google.com/g/trac-users/c/xLe5a44ekjg and (I think)
followed the suggestions in the replies.

SVN is enabled in the trac.ini. The server has python version 3.6.8 and is
running svn 1.14.1 and has the following subversion libraries installed:

- subversion-libs-1.14.1-2.module+el8.7.0+20805+939fe0ca.x86_64
- subversion-tools-1.14.1-2.module+el8.7.0+20805+939fe0ca.x86_64
- python3-subversion-1.14.1-2.module+el8.7.0+20805+939fe0ca.x86_64
- subversion-1.14.1-2.module+el8.7.0+20805+939fe0ca.x86_64

When I try to verify the loading of the bindings with the python
interpreter, I get:

$ python3
Python 3.6.8 (default, Jan 16 2024, 02:08:59)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-20.0.1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from svn import core
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'core'
>>> from libsvn import core
>>> (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, core.SVN_VER_MICRO,
core.SVN_VER_PATCH)
(1, 14, 1, 1)

The svn python3 bindings are installed here:
/usr/lib64/python3.6/site-packages/libsvn
/usr/lib64/python3.6/site-packages/libsvn/__init__.py
/usr/lib64/python3.6/site-packages/libsvn/__pycache__
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/client.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/client.cpython-36.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/core.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/core.cpython-36.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/delta.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/delta.cpython-36.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/diff.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/diff.cpython-36.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/fs.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/fs.cpython-36.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/ra.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/ra.cpython-36.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/repos.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/repos.cpython-36.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/wc.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/libsvn/__pycache__/wc.cpython-36.pyc
/usr/lib64/python3.6/site-packages/libsvn/_client.so
/usr/lib64/python3.6/site-packages/libsvn/_core.so
/usr/lib64/python3.6/site-packages/libsvn/_delta.so
/usr/lib64/python3.6/site-packages/libsvn/_diff.so
/usr/lib64/python3.6/site-packages/libsvn/_fs.so
/usr/lib64/python3.6/site-packages/libsvn/_ra.so
/usr/lib64/python3.6/site-packages/libsvn/_repos.so
/usr/lib64/python3.6/site-packages/libsvn/_wc.so
/usr/lib64/python3.6/site-packages/libsvn/client.py
/usr/lib64/python3.6/site-packages/libsvn/core.py
/usr/lib64/python3.6/site-packages/libsvn/delta.py
/usr/lib64/python3.6/site-packages/libsvn/diff.py
/usr/lib64/python3.6/site-packages/libsvn/fs.py
/usr/lib64/python3.6/site-packages/libsvn/ra.py
/usr/lib64/python3.6/site-packages/libsvn/repos.py
/usr/lib64/python3.6/site-packages/libsvn/wc.py
/usr/lib64/python3.6/site-packages/svn
/usr/lib64/python3.6/site-packages/svn/__init__.py
/usr/lib64/python3.6/site-packages/svn/__pycache__
/usr/lib64/python3.6/site-packages/svn/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/client.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/client.cpython-36.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/core.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/core.cpython-36.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/delta.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/delta.cpython-36.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/diff.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/diff.cpython-36.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/fs.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/fs.cpython-36.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/ra.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/ra.cpython-36.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/repos.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/repos.cpython-36.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/wc.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/svn/__pycache__/wc.cpython-36.pyc
/usr/lib64/python3.6/site-packages/svn/client.py
/usr/lib64/python3.6/site-packages/svn/core.py
/usr/lib64/python3.6/site-packages/svn/delta.py
/usr/lib64/python3.6/site-packages/svn/diff.py
/usr/lib64/python3.6/site-packages/svn/fs.py
/usr/lib64/python3.6/site-packages/svn/ra.py
/usr/lib64/python3.6/site-packages/svn/repos.py
/usr/lib64/python3.6/site-packages/svn/wc.py

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/c2b7e49c-7601-44da-a2ff-4d66ed4d71f6n%40googlegroups.com.
Re: Help adding SVN repo to trac 1.6 [ In reply to ]
On Fri, Mar 22, 2024 at 12:01?AM 'Steve Kreisler' via Trac Users
<trac-users@googlegroups.com> wrote:
>
> Hi,
>
> Can you please help me configure the SVN repo in Trac 1.6? We ported an old Trac version to 1.6 on Oracle Linux 8.9 and although the tickets/wiki works great, we cannot get it to recognize our svn repository. I am getting the error: InvalidConnector: Unsupported version control system "svn": cannot import name 'fs'. I have read https://groups.google.com/g/trac-users/c/xLe5a44ekjg and (I think) followed the suggestions in the replies.
>
> SVN is enabled in the trac.ini. The server has python version 3.6.8 and is running svn 1.14.1 and has the following subversion libraries installed:
>
> subversion-libs-1.14.1-2.module+el8.7.0+20805+939fe0ca.x86_64
> subversion-tools-1.14.1-2.module+el8.7.0+20805+939fe0ca.x86_64
> python3-subversion-1.14.1-2.module+el8.7.0+20805+939fe0ca.x86_64
> subversion-1.14.1-2.module+el8.7.0+20805+939fe0ca.x86_64
>
> When I try to verify the loading of the bindings with the python interpreter, I get:
>
> $ python3
> Python 3.6.8 (default, Jan 16 2024, 02:08:59)
> [GCC 8.5.0 20210514 (Red Hat 8.5.0-20.0.1)] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from svn import core
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: cannot import name 'core'
> >>> from libsvn import core
> >>> (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, core.SVN_VER_MICRO, core.SVN_VER_PATCH)
> (1, 14, 1, 1)

I just tried to reproduce it but unable to reproduce it.
The import works fine with fresh Oracle Linux 8.9 on Docker image.

I guess that your installation has something wrong. How about
reinstalling the packages?

[.[.[.
jun66j5@localhost:430$ podman run --rm -it oraclelinux:8.9 /bin/bash --login -i

[root@0c405ab6def0 /]# dnf module enable subversion:1.14
[root@0c405ab6def0 /]# dnf install -y subversion python36 python3-subversion
[root@0c405ab6def0 /]# rpm -q subversion python3-subversion
subversion-1.14.1-2.module+el8.7.0+20805+939fe0ca.x86_64
python3-subversion-1.14.1-2.module+el8.7.0+20805+939fe0ca.x86_64
[root@0c405ab6def0 /]# svn --version --quiet
1.14.1
[root@0c405ab6def0 /]# python3 -V
Python 3.6.8
[root@0c405ab6def0 /]# python3 -c 'from svn import core;
print(core.SVN_VERSION)'
b'1.14.1 (r1886195)'
]]]

--
Jun Omae <jun66j5@gmail.com> (?? ?)

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CAEVLMahmMALEWJ3LfPBdaoW5Pv1Dbpo_tFCPF2Zk3H636xMpDg%40mail.gmail.com.