Modify

Opened 7 years ago

Closed 7 years ago

#2078 closed defect (invalid)

IntegrityError: columns ticket, time, field are not unique

Reported by: yifan.liu@… Owned by: athomas
Priority: highest Component: BugReporterPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.10

Description (last modified by athomas)

#pytb
7. Import bugs and bug activity...
Traceback (most recent call last):
  File "G:\Documents and Settings\Administrator\Desktop\bugzilla2trac.py", line 895, in ?
    main()
  File "G:\Documents and Settings\Administrator\Desktop\bugzilla2trac.py", line 892, in main
    convert(BZ_DB, BZ_HOST, BZ_USER, BZ_PASSWORD, TRAC_ENV, TRAC_CLEAN)
  File "G:\Documents and Settings\Administrator\Desktop\bugzilla2trac.py", line 672, in convert
    value = desc['thetext'])
  File "G:\Documents and Settings\Administrator\Desktop\bugzilla2trac.py", line 365, in addTicketComment
    (ticket, time.strftime('%s'), author, 'comment', '', comment))
  File "G:\Python24\Lib\site-packages\trac\db\util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "G:\Python24\Lib\site-packages\trac\db\sqlite_backend.py", line 56, in execute
    args or [])
  File "G:\Python24\Lib\site-packages\trac\db\sqlite_backend.py", line 48, in _rollback_on_error
    return function(self, *args, **kwargs)
IntegrityError: columns ticket, time, field are not unique

When I transfered the data from bugzilla to the trac, I got this error all the times. Who can explain the reason?
:)

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by athomas

  • Component changed from TracHacks to BugReporterPlugin
  • Description modified (diff)
  • Resolution set to invalid
  • Status changed from new to closed

Please don't raise support requests as tickets,. Send them to the t:MailingList or t:IrcChannel.

Add Comment

Modify Ticket

Action
as closed .
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.