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 <jun6...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAEVLMahmMALEWJ3LfPBdaoW5Pv1Dbpo_tFCPF2Zk3H636xMpDg%40mail.gmail.com.

Reply via email to