Dear trac users,

I am currently trying to migrate an old trac 0.12.3 trac instance (www.lyx.org/trac) on CentOS 6, to something more modern.

We have elected to base our new server on Ubuntu Noble (the next LTS release), which may be a bit optimistic.

So, this is both a fresh installation and an upgrade, since I move the files to a new environment.

I did my best to follow TracInstall and TracUpgrade, and I have something that seems to work with tracd, but I get an Internal Server Error when trying to access to trac in the proper way.

My apache2 configuration snippet is:

<Location /trac>
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler trac.web.modpython_frontend
  PythonOption TracEnv /home/lyx/www/trac
  PythonOption TracUriRoot /trac
  PythonOption PYTHON_EGG_CACHE /var/trac/lyx/egg-cache
  # For Apache 2.2
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Allow from all
  </IfModule>
  # For Apache 2.4
  <IfModule mod_authz_core.c>
    Require all granted
  </IfModule>
</Location>

and when I try to load the page, I get very weird errors in apache logs, which do not make sense to me.

Does this ring a bell to anybody?
Sorry for the long message, I probably give too much information and miss the useful information at the same time.

JMarc

[Mon Mar 04 14:49:52.948702 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last): [Mon Mar 04 14:49:52.948761 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2787, in _dep_map\n return self.__dep_map\n ^^^^^^^^^^^^^^ [Mon Mar 04 14:49:52.948768 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2902, in __getattr__\n raise AttributeError(attr) [Mon Mar 04 14:49:52.948774 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: AttributeError: _Distribution__dep_map [Mon Mar 04 14:49:52.948779 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: \nDuring handling of the above exception, another exception occurred:\n [Mon Mar 04 14:49:52.948783 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last): [Mon Mar 04 14:49:52.948789 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/mod_python/apache.py", line 402, in HandlerDispatch\n result = obj(req)\n ^^^^^^^^ [Mon Mar 04 14:49:52.948797 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/trac/web/modpython_frontend.py", line 149, in handler\n pkg_resources.require('Trac==%s' % VERSION) [Mon Mar 04 14:49:52.948813 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 968, in require\n needed = self.resolve(parse_requirements(requirements))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [Mon Mar 04 14:49:52.948822 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 834, in resolve\n new_requirements = dist.requires(req.extras)[::-1]\n ^^^^^^^^^^^^^^^^^^^^^^^^^ [Mon Mar 04 14:49:52.948830 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2822, in requires\n dm = self._dep_map\n ^^^^^^^^^^^^^ [Mon Mar 04 14:49:52.948838 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2789, in _dep_map\n self.__dep_map = self._filter_extras(self._build_dep_map())\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [Mon Mar 04 14:49:52.948845 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2804, in _filter_extras\n invalid_marker(marker) or not evaluate_marker(marker)\n ^^^^^^^^^^^^^^^^^^^^^^ [Mon Mar 04 14:49:52.948853 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1459, in invalid_marker\n evaluate_marker(text) [Mon Mar 04 14:49:52.948861 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1477, in evaluate_marker\n return marker.evaluate()\n ^^^^^^^^^^^^^^^^^ [Mon Mar 04 14:49:52.948885 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/markers.py", line 243, in evaluate\n current_environment = default_environment()\n ^^^^^^^^^^^^^^^^^^^^^ [Mon Mar 04 14:49:52.948892 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/markers.py", line 186, in default_environment\n "python_full_version": platform.python_version(),\n ^^^^^^^^^^^^^^^^^^^^^^^^^ [Mon Mar 04 14:49:52.948899 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3.12/platform.py", line 1158, in python_version\n return _sys_version()[1]\n ^^^^^^^^^^^^^^ [Mon Mar 04 14:49:52.948904 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python3.12/platform.py", line 1108, in _sys_version\n raise ValueError( [Mon Mar 04 14:49:52.948910 2024] [:error] [pid 7673] [client 128.93.65.20:45406] PythonHandler trac.web.modpython_frontend: ValueError: failed to parse CPython sys.version: '3.12.2'


--
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/e5ddf977-f40e-4550-86bf-6859bd7aee23%40free.fr.

Reply via email to