Custom Query (332 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (199 - 201 of 332)

Ticket Resolution Summary Owner Reporter
#103 fixed get_param of Format/DelSp returns None bas debacle@…
Description

The following two lines in email2trac fail:

format = email.Utils.collapse_rfc2231_value(part.get_param('Format')).lower()
delsp = email.Utils.collapse_rfc2231_value(part.get_param('DelSp')).lower()

This workaround helps, but I'm not sure, whether it is correct:

format = email.Utils.collapse_rfc2231_value(part.get_param('Format') or "").lower()
delsp = email.Utils.collapse_rfc2231_value(part.get_param('DelSp') or "").lower()
#302 fixed Genshi 0.6 Compatibility bas anonymous
Description

Would it be possible to add 0.6 compatibility to email2trac? Using Genshi 0.5.1 I've had success receiving emails and turning them into tickets. However trac is then unable to render inside a web browser due to the fact that our local trac environment requires Genshi 0.6. If I move over to using 0.6, email2trac then dies with the following import (using the svn version of email2trac):

>>> from trac import config as trac_config
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/trac/config.py", line 19, in <module>
    from trac.admin import IAdminCommandProvider
  File "/usr/lib/python2.6/site-packages/trac/admin/__init__.py", line 14, in <module>
    from trac.admin.api import *
  File "/usr/lib/python2.6/site-packages/trac/admin/api.py", line 19, in <module>
    from trac.util.translation import _
  File "/usr/lib/python2.6/site-packages/trac/util/__init__.py", line 35, in <module>
    from trac.util.text import to_unicode
  File "/usr/lib/python2.6/site-packages/trac/util/text.py", line 28, in <module>
    from trac.util.translation import _
  File "/usr/lib/python2.6/site-packages/trac/util/translation.py", line 19, in <module>
    from genshi.builder import tag
ImportError: No module named genshi.builder
>>> exit()

-Garrett

#298 fixed Genshi 0.5 / 0.6 bas tom.knight@…
Description
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/config.py", line 19, in
<module>
    from trac.admin import AdminCommandError, IAdminCommandProvider
  File "/usr/lib/python2.6/site-packages/trac/admin/__init__.py", line 14,
in <module>
    from trac.admin.api import *
  File "/usr/lib/python2.6/site-packages/trac/admin/api.py", line 19, in
<module>
    from trac.util.translation import _
  File "/usr/lib/python2.6/site-packages/trac/util/__init__.py", line 35, in
<module>
    from trac.util.text import to_unicode
  File "/usr/lib/python2.6/site-packages/trac/util/text.py", line 30, in
<module>
    from trac.util.translation import _
  File "/usr/lib/python2.6/site-packages/trac/util/translation.py", 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/api.py", line 441, in
send_error
    data, 'text/html')
  File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 833, in
render_template
    template = self.load_template(filename, method=method)
  File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 804, in
load_template
    return self.templates.load(filename, cls=cls)
  File "/usr/lib64/python2.6/site-packages/genshi/template/loader.py", line
227, in load
    filename, encoding=encoding)
  File "/usr/lib64/python2.6/site-packages/genshi/template/loader.py", line
265, in _instantiate
    allow_exec=self.allow_exec)
  File "/usr/lib64/python2.6/site-packages/genshi/template/base.py", line
377, in __init__
    self.stream = list(self._prepare(self._parse(source, encoding)))
  File "/usr/lib64/python2.6/site-packages/genshi/template/base.py", line
444, in _prepare
    cls=cls or self.__class__)
  File "/usr/lib64/python2.6/site-packages/genshi/template/loader.py", line
229, in load
    self.callback(tmpl)
  File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 797, in
<lambda>
    Translator(translation.get_translations()).setup(template))
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.



--

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

Note: See TracQuery for help on using queries.