Custom Query (332 matches)


Show under each result:

Results (310 - 312 of 332)

Ticket Resolution Summary Owner Reporter
#159 worksforme update ticket problem and sample solution bas tomasz.kloc@…


I'm using trunk version of Your plugin with Trac 0.11 and Postfix.

Create ticket via e-mail works great, but when i try to reply(update) ticket i got following error:

email2trac: Traceback (most recent call last):
email2trac:   File "/usr/local/bin/email2trac", line 1616, in ?     tktparser.parse(sys.stdin)
email2trac:   File "/usr/local/bin/email2trac", line 992, in parse     self.ticket_update(m,'reply'), spam_msg)
email2trac:   File "/usr/local/bin/email2trac", line 705, in ticket_update     tkt.save_changes(, body_text, when, None, str(

email2trac:   File "/usr/lib/python2.4/site-packages/trac-0.10.4-py2.4.egg/trac/ticket/", line 197, in save_changes     when = i
email2trac: TypeError: int() argument must be a string or a number

My quick fix:

$ diff
>                               try:
>                                       int(when)
>                               except ValueError:
>                                       when = time.mktime(when.timetuple())

i've used "try" block, because i wasn't sure if 'when' will always be a datetime.datetime instance.

#123 fixed NameError: global name 'parameter' is not defined bas tomasz.sterna@…

I have a Trac 0.11.1 (easy_install trac) installed and running.

I downloaded email2trac-0.70 and installed it from email2trac_0.70-1_amd64.deb. After configuring it, I get the following error in syslog when I send mails to the email2trac address:

Feb  6 13:39:50 hetzner1 email2trac: Traceback (most recent call last): 
Feb  6 13:39:50 hetzner1 email2trac:   File "/usr/bin/email2trac", line 1465, in <module>     tktparser = TicketEmailParser(env, settings, float(version)) 
Feb  6 13:39:50 hetzner1 email2trac:   File "/usr/bin/email2trac", line 228, in __init__     self.REFLOW = int(parameter['reflow']) 
Feb  6 13:39:50 hetzner1 email2trac: NameError: global name 'parameter' is not defined 
#298 fixed Genshi 0.5 / 0.6 bas tom.knight@…
Email2trac looks great, and seems to work really well. Congratulations and
thank you for making such a cool bit of software.

Naturally, I have a problem :-)

I'm using CentOS 6.2 (i.e. Redhat 6.2), and I've installed Trac
(0.12.3-3.el6) from the EPEL repository. Trac works fine with this, although
it needs the python-gensh06 (0.6-1.el6) package to work.

This is okay until I try to run email2trac - here I get the error:
-bash-4.1$ email2trac
#Traceback (most recent call last):
  File "/usr/local/bin/email2trac", line 73, in <module>
    from trac import config as trac_config
  File "/usr/lib/python2.6/site-packages/trac/", line 19, in
    from trac.admin import AdminCommandError, IAdminCommandProvider
  File "/usr/lib/python2.6/site-packages/trac/admin/", line 14,
in <module>
    from trac.admin.api import *
  File "/usr/lib/python2.6/site-packages/trac/admin/", line 19, in
    from trac.util.translation import _
  File "/usr/lib/python2.6/site-packages/trac/util/", line 35, in
    from trac.util.text import to_unicode
  File "/usr/lib/python2.6/site-packages/trac/util/", line 30, in
    from trac.util.translation import _
  File "/usr/lib/python2.6/site-packages/trac/util/", line 19,
in <module>
    from genshi.builder import tag
ImportError: No module named genshi.builder

If I install the yum package python-genshi (which gives me genshi
0.5.1-7.1.el6) then email2trac works fine, but then Trac doesn't work, thus:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/web/", line 441, in
    data, 'text/html')
  File "/usr/lib/python2.6/site-packages/trac/web/", line 833, in
    template = self.load_template(filename, method=method)
  File "/usr/lib/python2.6/site-packages/trac/web/", line 804, in
    return self.templates.load(filename, cls=cls)
  File "/usr/lib64/python2.6/site-packages/genshi/template/", line
227, in load
    filename, encoding=encoding)
  File "/usr/lib64/python2.6/site-packages/genshi/template/", line
265, in _instantiate
  File "/usr/lib64/python2.6/site-packages/genshi/template/", line
377, in __init__ = list(self._prepare(self._parse(source, encoding)))
  File "/usr/lib64/python2.6/site-packages/genshi/template/", line
444, in _prepare
    cls=cls or self.__class__)
  File "/usr/lib64/python2.6/site-packages/genshi/template/", line
229, in load
  File "/usr/lib/python2.6/site-packages/trac/web/", line 797, in
AttributeError: 'Translator' object has no attribute 'setup'

Now, I understand that this is not a problem with email2trac, but rather in
my package environment, but I'm trying to figure out a way to get email2trac
(latest) to work with trac (latest)

Have you seen this before? Have you had any experience with fixing this?

Many thanks,



Tom Knight, MCMI
IT Manager
Division of Biosciences
University College London

Note: See TracQuery for help on using queries.