Hello,
I recently upgraded my Trac to the development version 1.5.3, mainly because of the Python 3.X support. Doing this caused some grief but I managed to get it working, all but the SVN support.
I know this is missing the Subversion Python bindings, this is normally provided by the Ubuntu package python-subversion but this is a Python 2.7 package. I have been trying to find a way to get these bindings installed for Python 3.X but to no avail. See the log messages below.
What would be the way to get these bindings?
2021-07-05 14:02:26,539 Trac[env] INFO: -------------------------------- environment startup [Trac 1.5.3] --------------------------------
2021-07-05 14:02:26,721 Trac[svn_fs] INFO: Failed to load Subversion bindings
Traceback (most recent call last):
File "/usr/lib/python3.8/cmd.py", line 214, in onecmd
func = getattr(self, 'do_' + cmd)
AttributeError: 'TracAdmin' object has no attribute 'do_changeset'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/tracopt/versioncontrol/svn/svn_fs.py", line 200, in __init__
_import_svn()
File "/usr/local/lib/python3.8/dist-packages/tracopt/versioncontrol/svn/svn_fs.py", line 72, in _import_svn
from svn import fs, repos, core, delta
ModuleNotFoundError: No module named 'svn'
Hello,
I know this is missing the Subversion Python bindings, this is normally provided by the Ubuntu package python-subversion but this is a Python 2.7 package. I have been trying to find a way to get these bindings installed for Python 3.X but to no avail. See the log messages below.
As a follow up, there does appear to be a package containing alternate Subversion bindings for Python 3:however, I installed it and got the same error in Python 3,>>> from svn import core
Traceback (most recent call last):File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'svn'