FYI: Trac 0.11.5 available on Debian

18 views
Skip to first unread message

W. Martin Borgert

unread,
Oct 11, 2009, 10:40:28 AM10/11/09
to trac-...@googlegroups.com
Hi,

this is just a note to Trac users who run it on Debian or
derived distributions such as Ubuntu.

If you run Debian testing ("squeeze") or unstable ("sid"), you
can install Trac 0.11.5. If you run stable 5.0 ("lenny"), just
wait a couple of days (hopefully) and install it from Debian
backports.org. Please test this version and report any problems.

The following Trac plugins are currently packaged in Debian:

trac-accountmanager - account management plugin for Trac
trac-authopenid - OpenID authentication plugin for Trac
trac-bzr - Bazaar version control (bzr) backend for Trac
trac-email2trac - Creates and amends Trac tickets from e-mail
trac-git - Git version control backend for Trac
trac-ja-resource - Japanese resources for trac
trac-mercurial - Mercurial version control backend for Trac
trac-spamfilter - Spam-prevention plugin for Trac

On the Debian todo list are Bitten, CustomFieldAdmin, Graphviz,
MasterTickets, TagsPlugin, WikiTicketCalendar, WYSIWYG, and
XML-RPC. No promises, however.

Thanks for your attention.

Jens Peter Secher

unread,
Nov 12, 2009, 3:13:22 AM11/12/09
to trac-...@googlegroups.com
2009/10/11 W. Martin Borgert <deb...@debian.org>:

>
> this is just a note to Trac users who run it on Debian or
> derived distributions such as Ubuntu.
>
[...]

I have put some additional *experimental* Debian packages in
http://people.debian.org/~jps/squeeze/ :

trac-burndown
trac-timingandestimation

Cheers,
--
Jens Peter Secher.
_DD6A 05B0 174E BFB2 D4D9 B52E 0EE5 978A FE63 E8A1 jpsecher gmail com_.
A. Because it breaks the logical sequence of discussion.
Q. Why is top posting bad?

brice

unread,
Nov 18, 2009, 9:48:05 AM11/18/09
to Trac Users

HELP REQUIRED ON THIS ERROR :
accessing a trac project through Apache/2.2.11 (Ubuntu) DAV/2 SVN/
1.5.4 mod_python/3.3.1 Python/2.6.2 PHP/5.2.6-3ubuntu4.2 with Suhosin-
Patch mod_ssl/2.2.11 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0

Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/trac/web/api.py", line 339,
in send_error
'text/html')
[...]
File "/usr/lib/python2.6/dist-packages/trac/db/api.py", line 97, in
_get_connector
raise TracError('Unsupported database type "%s"' % scheme)
TracError: Unsupported database type "sqlite"
-----
easy_install trac
Searching for trac
Best match: Trac 0.11.5
Processing Trac-0.11.5-py2.6.egg
Trac 0.11.5 is already the active version in easy-install.pth
Installing trac-admin script to /usr/local/bin
Installing tracd script to /usr/local/bin

Using /usr/local/lib/python2.6/dist-packages/Trac-0.11.5-py2.6.egg
Processing dependencies for trac
Finished processing dependencies for trac

trac-admin - The Trac Administration Console 0.11.5

trac-admin /etc/apache2/trac upgrade
Database is up to date, no upgrade necessary.



>>> import trac.db.sqlite_backend as tets
>>> tets._ver
(3, 6, 10)
>>> tets.have_pysqlite
2
>>> tets.sqlite.version
'2.5.0'
>>> import sqlite3
>>> sqlite3.version
'2.4.1'
$:sqlite db/trac.db
Unable to open database "db/trac.db": file is encrypted or is not a
database
$:/etc/apache2/trac# sqlite3 db/trac.db
SQLite version 3.6.10
sqlite> PRAGMA integrity_check;
ok
sqlite>
----

It looks to me as if trac, through apache, was looking for sqlite
module to manage the database, whereas it should use sqlite3, isn't
it ?

On Nov 12, 9:13 am, Jens Peter Secher <jpsec...@gmail.com> wrote:
> 2009/10/11 W. Martin Borgert <deba...@debian.org>:
>
> > this is just a note to Trac users who run it on Debian or
> > derived distributions such as Ubuntu.
>
> [...]
>
> I have put some additional *experimental* Debian packages inhttp://people.debian.org/~jps/squeeze/:

Olemis Lang

unread,
Nov 18, 2009, 10:06:40 AM11/18/09
to trac-...@googlegroups.com
I'm just curious : Did you use the Debian pkg ? Does it rely on
`easy_install` (/me not understanding why ...) ?

If true that means there's something wrong with the deb . Otherwise ,
don't see the relation with this thread, thus probably a separate
thread would be better to talk about this (and therefore /me invites
everybody to reply in a separate thread ;o) .

--
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

brice

unread,
Nov 18, 2009, 11:56:49 AM11/18/09
to Trac Users
I believe I did, as I'm running Trac on Ubuntu :

The error comes since an update, but the question is which update :
trac (previous to 0.11.5), python (2.5 to 2.6), apache (2.0 to 2.2),
system (came from 7.10 Gutsy Gibbon to 9.04 Jaunty Jackalope) ?

dpkg -l trac gives
ii trac 0.11.1-2.1 Enhanced wiki
and issue tracking system for software development projects



On Nov 18, 4:06 pm, Olemis Lang <ole...@gmail.com> wrote:

Olemis Lang

unread,
Nov 18, 2009, 3:54:46 PM11/18/09
to trac-...@googlegroups.com
On Wed, Nov 18, 2009 at 11:56 AM, brice <bri...@gmail.com> wrote:
> I believe I did, as I'm running Trac on Ubuntu :
>

But you can install it directly (i.e. without using the apt system ;o)
and if you do it then there's noting wrong with the deb pkg

> The error comes since an update, but the question is which update :
> trac (previous to 0.11.5),  python (2.5 to 2.6), apache (2.0 to 2.2),
> system (came from 7.10 Gutsy Gibbon to 9.04 Jaunty Jackalope) ?
>
> dpkg -l trac gives
> ii  trac                      0.11.1-2.1

Are you sure ?

0.11.5 > 0.11.1-2.1

:P

brice

unread,
Nov 19, 2009, 5:49:23 AM11/19/09
to Trac Users
This is it !
Firstly Trac has been installed through apt-get, then, due to an
optimistic behavior, I might have launched the python 'easy_install
install Trac' to update it, without any parameter whereas I shoud have
had some '--prefix=/usr', I now believe. On the contrary, easy_install
could also check dpkg.

Here is where I am :
some directories under /usr/lib/python2.5/site-packages/ :
Trac-0.11.1.egg-info
TracWebAdmin-0.1.2dev_r5911-py2.5.egg
trac

and some eggs under /usr/local/lib/python2.6/dist-packages/:
Genshi-0.5.1-py2.6-linux-i686.egg
Trac-0.11.5-py2.6.egg

what's your opinion, Doc ?

On Nov 18, 9:54 pm, Olemis Lang <ole...@gmail.com> wrote:

Olemis Lang

unread,
Nov 19, 2009, 8:17:20 AM11/19/09
to trac-...@googlegroups.com
That's the *current* madness inherent to Pyland pkg management .

No further comments

:-/

W. Martin Borgert

unread,
Nov 19, 2009, 8:25:27 AM11/19/09
to trac-...@googlegroups.com, brice
Quoting brice <bri...@gmail.com>:
> Firstly Trac has been installed through apt-get, then, due to an
> optimistic behavior, I might have launched the python 'easy_install
> install Trac' to update it,
...
> what's your opinion, Doc ?

Please, never ever overwrite dpkg-installed packages (be it via apt-get
or dpkg or aptitude) with manually installed software. If you really
want to have Trac (or any other software on a Debian or Ubuntu system)
manually installed, make sure that you install it in another path (e.g.
/usr/local) than the packaged software (which does never install in
/usr/local). Or, even safer, remove the package first ("dpkg -r trac").
Otherwise, the package manager and the actually installed software do
conflict badly.

Olemis Lang

unread,
Nov 19, 2009, 8:42:34 AM11/19/09
to trac-...@googlegroups.com, brice
+1 ... Most of the time I try to avoid Python pkg management (mainly
because it has many problems and also 'cause apt is awesome :o). These
days I use to build deb source pkgs using `stdeb` (not perfect but apt
gets involved ;o)

brice

unread,
Nov 19, 2009, 9:55:31 AM11/19/09
to Trac Users
thanks for your comments, I won't do it anymore, promess you.
Now, where's the reverse way ?

mv trac bad_trac_old; ln -s /usr/local/lib/python2.6/dist-packages/
Trac-0.11.5-py2.6.egg/trac
changes the error into :
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/trac/web/api.py", line 339,
in send_error
File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line
683, in render_template
File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line
667, in load_template
File "build/bdist.linux-i686/egg/genshi/template/loader.py", line
237, in load
raise TemplateNotFound(filename, search_path)
TemplateNotFound: Template "error.html" not found

any trick for genshi ?-)
Of course I would dislike to loose existing trac project !

On Nov 19, 2:42 pm, Olemis Lang <ole...@gmail.com> wrote:
> On Thu, Nov 19, 2009 at 8:25 AM, W. Martin Borgert <deba...@debian.org> wrote:

brice

unread,
Nov 19, 2009, 10:35:48 AM11/19/09
to Trac Users
or may be a preferred way : Could I get this one
http://packages.debian.org/lenny-backports/trac
on Ubuntu with apt-get ?


On Nov 19, 3:55 pm, brice <bric...@gmail.com> wrote:
> thanks for your comments, I won't do it anymore, promess you.
> Now, where's the reverse way ?
>
> mvtracbad_trac_old; ln -s /usr/local/lib/python2.6/dist-packages/Trac-0.11.5-py2.6.egg/trac
> changes the error into :
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/dist-packages/trac/web/api.py", line 339,
> in send_error
>   File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line
> 683, in render_template
>   File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line
> 667, in load_template
>   File "build/bdist.linux-i686/egg/genshi/template/loader.py", line
> 237, in load
>     raise TemplateNotFound(filename, search_path)
> TemplateNotFound: Template "error.html" not found
>
> any trick for genshi ?-)
> Of course I would dislike to loose existingtracproject !
>
> On Nov 19, 2:42 pm, Olemis Lang <ole...@gmail.com> wrote:
>
> > On Thu, Nov 19, 2009 at 8:25 AM, W. Martin Borgert <deba...@debian.org> wrote:
>
> > > Quoting brice <bric...@gmail.com>:
> > >> FirstlyTrachas been installed through apt-get, then, due to an
> > >> optimistic behavior, I might have launched the python 'easy_install
> > >> installTrac' to update it,
> > > ...
> > >> what's your opinion, Doc ?
>
> > > Please, never ever overwrite dpkg-installed packages (be it via apt-get
> > > or dpkg or aptitude) with manually installed software. If you really
> > > want to haveTrac(or any other software on aDebianor Ubuntu system)
> > > manually installed, make sure that you install it in another path (e.g.
> > > /usr/local) than the packaged software (which does never install in
> > > /usr/local). Or, even safer, remove the package first ("dpkg -rtrac").

brice

unread,
Nov 27, 2009, 3:06:50 AM11/27/09
to Trac Users
OK, I found the reverse way : stop trac; dpkg -P trac; rm -rf on the
python directories, apt-get install trac; start trac.
Hopefully, it works.
I won't use the last version, too tricky.

On 19 nov, 16:35, brice <bric...@gmail.com> wrote:
> or may be a preferred way : Could I get this onehttp://packages.debian.org/lenny-backports/trac
> on Ubuntu with apt-get ?
>
> On Nov 19, 3:55 pm,brice<bric...@gmail.com> wrote:
>
> > thanks for your comments, I won't do it anymore, promess you.
> > Now, where's the reverse way ?
>
> > mvtracbad_trac_old; ln -s /usr/local/lib/python2.6/dist-packages/Trac-0.11.5-py2.6.egg/trac
> > changes the error into :
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.6/dist-packages/trac/web/api.py", line 339,
> > in send_error
> >   File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line
> > 683, in render_template
> >   File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line
> > 667, in load_template
> >   File "build/bdist.linux-i686/egg/genshi/template/loader.py", line
> > 237, in load
> >     raise TemplateNotFound(filename, search_path)
> > TemplateNotFound: Template "error.html" not found
>
> > any trick for genshi ?-)
> > Of course I would dislike to loose existingtracproject !
>
> > On Nov 19, 2:42 pm, Olemis Lang <ole...@gmail.com> wrote:
>
> > > On Thu, Nov 19, 2009 at 8:25 AM, W. Martin Borgert <deba...@debian.org> wrote:
>
Reply all
Reply to author
Forward
0 new messages