Edgewall Software

Opened 2 months ago

Closed 2 months ago

#13443 closed defect (cantfix)

Installation 1.4.3 at Debian 10

Reported by: Tomasz Brzezina <tomasz@…> Owned by:
Priority: normal Milestone:
Component: web frontend/mod_wsgi Version: 1.4.3
Severity: normal Keywords:
Cc: tomasz@… Branch:
Release Notes:
API Changes:
Internal Changes:


After some debian update I lost access to Trac (Python2.7⇒Python3 migration I suppose). So created virtual environment:

virtualenv -p /usr/bin/python2.7 env

And finally installation is succesful! (Hope this help somebody)

But… Stil can't run it by wsgi apache2:

Traceback (most recent call last):
  File "/var/lib/trac/apache/trac.wsgi", line 13, in <module>
    import trac.web.main
  File "/var/lib/trac/env/lib/python2.7/site-packages/trac/web/__init__.py", line 19, in <module>
    from trac.web.api import *
  File "/var/lib/trac/env/lib/python2.7/site-packages/trac/web/api.py", line 18, in <module>
    from BaseHTTPServer import BaseHTTPRequestHandler

I tried to install pip install http but still the same problem

my wsgi file:

import sys
sys.stdout = sys.stderr

import os

os.environ['TRAC_ENV_PARENT_DIR'] = '/var/lib/trac'
os.environ['PYTHON_EGG_CACHE'] = '/var/lib/trac/eggs'

#import trac.db.postgres_backend
#trac.db.postgres_backend.PostgreSQLConnection.poolable = False

import trac.web.main

application = trac.web.main.dispatch_request

I understand, that it is installation problem, but previously installation guide leads to success, but now - stucked. I can't use 1.5.3, because I need some plugins which are not available in 1.5 yet…

Attachments (0)

Change History (1)

comment:1 by Jun Omae, 2 months ago

Component: generalweb frontend/mod_wsgi
Resolution: cantfix
Status: newclosed


Please ask on the MailingList for support questions. Also, I think you're using libapache2-mod-wsgi-py3. Instead, use libapache2-mod-wsgi. See https://packages.debian.org/search?keywords=mod-wsgi&searchon=names&suite=oldstable&section=all.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.