Modify

Opened 8 years ago

Closed 8 years ago

#302 closed enhancement (fixed)

Genshi 0.6 Compatibility

Reported by: anonymous Owned by: bas
Priority: major Milestone:
Component: email2trac Version: 2.6.0
Keywords: genshi, python, 1.0.0 support Cc: gmcgrath@…

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

Attachments (0)

Change History (5)

comment:1 Changed 8 years ago by anonymous

update, I believe I've resolved that issue by removing the local .rpm version of trac that we were using and moving to the easy_install version. However now I'm saddled with trac version 1.0 which email2trac doesn't seem to recognize. -Garrett

comment:2 Changed 8 years ago by anonymous

Updating again, I've actually worked around this problem by tweaking line 2664 elif version in ['0.11', '0.12', '0.13']: of the python.in file to allow version '0.0'. All appears to be working for now.

comment:3 Changed 8 years ago by bas

  • Keywords 1.0.0 support added
  • Status changed from new to assigned
  • Type changed from defect to enhancement

I have to add version 1.0 to allowed versions. Can you execute these code:

python
from trac import __version__ as trac_version
print trac_version

comment:4 Changed 8 years ago by gmcgrath@…

I've actually got it working by just adding 0.0 as an allowed version after
the 0.12 version number.  This seems to be tied to how you process version
numbers but 1.0 comes up as 0.0 and seems to work like 0.12 for most
purposes.
-Garrett

email2trac <email2trac@sara.nl> wrote:


#302: Genshi 0.6 Compatibility
--------------------------+-------------------------------------------
  Reporter:  anonymous    |      Owner:  bas
      Type:  enhancement  |     Status:  assigned
  Priority:  major        |  Milestone:
 Component:  email2trac   |    Version:  2.6.0
Resolution:               |   Keywords:  genshi, python, 1.0.0 support
--------------------------+-------------------------------------------
Changes (by bas):

 * keywords:  genshi, python => genshi, python, 1.0.0 support
 * status:  new => assigned
 * type:  defect => enhancement


Comment:

 I have to add version 1.0 to allowed versions. Can you execute these code:
 {{{
 python
 from trac import __version__ as trac_version
 print trac_version
 }}}

--
Ticket URL: <https://subtrac.sara.nl/oss/email2trac/ticket/302#comment:3>
email2trac <https://subtrac.sara.nl/oss/email2trac>
Documentation server for email2trac

comment:5 Changed 8 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed

see #303,

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.