Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2328 closed defect (invalid)

Trac web unaccessable since debian system upgrade

Reported by: oliviez@… Owned by: Jonas Borgström
Priority: high Milestone:
Component: general Version: 0.8.4
Severity: major Keywords: trac.cgi, python, platform independent libraries, SyntaxError, Premature end of script headers
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hi,

I recently updated my debian system, and python's librairies have changed (but it's still python2.3); since I got issues when trying to access my trac system web site : I got the following error message in apache2 error log :

[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx] Could not find platform independent libraries <prefix>
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx] Could not find platform dependent libraries <exec_prefix>
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx] Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx] 'import site' failed; use -v for traceback
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx] File "
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx] /usr/share/trac/cgi-bin/trac.cgi
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx] ", line
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx] 2
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx]
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx] SyntaxError
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx] :
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx] "no codec search functions registered: can't find encoding"
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx]
[Mon Nov 07 12:04:31 2005] [error] [client 82.238.xxx.xxx] Premature end of script headers: trac.cgi


Below is the releases i'm using :

Name / Release / Description

$$::dpkg -l trac

ii trac / 0.8.4-2 / Enhanced wiki and issue tracking system for software development p

$$:: dpkg -l subversion

ii subversion / 1.1.4-2 / advanced version control system (aka. svn)

$$:: dpkg -l apache2

ii apache2 / 2.0.54-5 / next generation, scalable, extendable web server

$$:: dpkg -l python

ii python / 2.3.5-3 / An interactive high-level object-oriented language (default versio



The software was correctly running before that damn apt-get upgrade on my testing debian… I previously followed your TracOnDebian guide to install it.



The Trac web site can still be accessed using the tracd standalone server with following command : nohup tracd —port 8000 /<path_to_my_project> &

But there is no user right management with it (can't login) so I can't really use it that way now.



I made a quick search on Trac's ticket history but haven't found any useful information related to my problem… I'm pretty sure that's it's due to python but don't know what to do to resolve that… probably an env variable to set somewhere…



Thanks for your help.

Olivier

Attachments (0)

Change History (4)

comment:1 by dserodio@…, 18 years ago

Did you try setting $PYTHONHOME as suggested by the error message?

comment:2 by anonymous, 18 years ago

No because I don't really know what values to set instead of "<prefix>[:<exec_prefix>]" , what can you suggest me ?

comment:3 by mark@…, 18 years ago

This seems to be related to my problem where the trac debian package depends on python2.3-subversion (≥ 0.37) … That package no longer exists because it was renamed to python2.3-svn (if I'm correct).

comment:4 by Matthew Good, 18 years ago

Resolution: invalid
Status: newclosed

No, python2.3-svn is unrelated to python2.3-subversion, which still exists in all versions of Debian: http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=python2.3-subversion

This problem seems to be that Python cannot find a codec for the "iso8859-1" coding specified for trac.cgi. This is not a Trac problem, but would be a packaging problem in Debian if this is missing. The relevant files would be "codecs.py" and "locale.py" in "/usr/lib/python2.3", which should be included in the "python2.3" package. If this is still a problem please file a bug report in Debian.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.