Mailing List Archive

trac fails when upgrading to Fedora 37
Been running flawlessly for a while until upgrading to Fedora 37. I'm
getting the error messages listed below. I looked online and some places
with similar errors (but different programs) said to do: pip install
markupsafe==2.0.1

After doing that, I get no error messages but when trying to load the trac
login page, get an error. Is there another package or version of jinja
that needs to be loaded?

I've looked in the log/ directory and log.txt and see nothing. I see that
log.txt is getting a new time stamp to show it's at least getting touched
but there is no text in log.txt. Is there another location where errors
might be going?

initial error
--------------------------------------------

File "/usr/sbin/tracd", line 33, in <module>
sys.exit(load_entry_point('Trac==1.5.3', 'console_scripts', 'tracd')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/sbin/tracd", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/importlib/metadata/__init__.py", line 198, in
load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in
import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in
_find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in
_call_with_frames_removed
File "/usr/lib/python3.11/site-packages/trac/web/standalone.py", line 35,
in <module>
from trac.web.auth import BasicAuthentication, DigestAuthentication
File "/usr/lib/python3.11/site-packages/trac/web/auth.py", line 29, in
<module>
from trac.web.chrome import Chrome, INavigationContributor
File "/usr/lib/python3.11/site-packages/trac/web/chrome.py", line 40, in
<module>
from trac.mimeview.api import RenderingContext, get_mimetype
File "/usr/lib/python3.11/site-packages/trac/mimeview/__init__.py", line
14, in <module>
from trac.mimeview.api import *
File "/usr/lib/python3.11/site-packages/trac/mimeview/api.py", line 70,
in <module>
from trac.resource import Resource
File "/usr/lib/python3.11/site-packages/trac/resource.py", line 21, in
<module>
from trac.util.presentation import classes
File "/usr/lib/python3.11/site-packages/trac/util/presentation.py", line
26, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe'
(/usr/lib64/python3.11/site-packages/markupsafe/__init__.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/5f82866b-674b-4164-a5ce-928093079514n%40googlegroups.com.
Re: trac fails when upgrading to Fedora 37 [ In reply to ]
On Wed, Nov 30, 2022 at 6:29 AM Ard Vilken <ardvilken@gmail.com> wrote:
> File "/usr/lib/python3.11/site-packages/trac/resource.py", line 21, in <module>
> from trac.util.presentation import classes
> File "/usr/lib/python3.11/site-packages/trac/util/presentation.py", line 26, in <module>
> from markupsafe import soft_unicode
> ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/lib64/python3.11/site-packages/markupsafe/__init__.py)

The error has been reported [1] and fixed in trunk.
Try to upgrade to trunk [2].

[1] https://trac.edgewall.org/ticket/13404
[2] https://svn.edgewall.org/repos/trac/trunk/

--
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/CAEVLMajyi%2Bu0L5jgy7EkeZ9vxqOxcqO_7y2cqRkWnZq0Wz2QtQ%40mail.gmail.com.