Opened 3 years ago
Closed 3 years ago
#13443 closed defect (cantfix)
Installation 1.4.3 at Debian 10
Reported by: | 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: |
Description
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['PKG_RESOURCES_CACHE_ZIP_MANIFESTS'] = '1' 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 , 3 years ago
Component: | general → web frontend/mod_wsgi |
---|---|
Resolution: | → cantfix |
Status: | new → closed |
InstallationIssue.
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§ion=all.