Modify

Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#57 closed defect (fixed)

attempting to update a ticket fails, unsupported operand error

Reported by: dekimsey@… Owned by: bas
Priority: major Milestone:
Component: email2trac Version: 0.9.5
Keywords: Cc:

Description

I have an email that I am attempting to load into trac from within the command line. At the moment, the email2trac script fails with the following error:

Traceback (most recent call last):
  File "./.install/bin/email2trac", line 956, in ?
    tktparser.parse(sys.stdin)
  File "./.install/bin/email2trac", line 539, in parse
    if self.ticket_update(m):
  File "./.install/bin/email2trac", line 415, in ticket_update
    tkt.save_changes(self.author, body_text, when)
  File "/home/lendor/python/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/ticket/model.py", line 211, in save_changes
    when_ts = to_timestamp(when)
  File "/home/lendor/python/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/util/datefmt.py", line 55, in to_timestamp
    diff = dt - _epoc
TypeError: unsupported operand type(s) for -: 'int' and 'datetime.datetime'

I am using trac 0.11b1 and email2trac 0.9.5.

Attachments (0)

Change History (3)

comment:1 follow-up: Changed 13 years ago by dekimsey@…

I have since stopped being stupid and upgraded to 0.13 which seems to have addressed the issue.

comment:2 Changed 13 years ago by bas

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

oke thanks for the info. Sometimes it worth to upgrade

comment:3 in reply to: ↑ 1 Changed 12 years ago by tim@…

Replying to dekimsey@gmail.com:

I have since stopped being stupid and upgraded to 0.13 which seems to have addressed the issue.

Hmmm... I have Trac 0.11.2 and have the same issue. Which version of Trac did you install to fix this?

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.