Modify

Opened 17 years ago

Closed 17 years ago

#2078 closed defect (invalid)

IntegrityError: columns ticket, time, field are not unique

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

Description (last modified by Alec Thomas)

#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 17 years ago by Alec Thomas

Component: TracHacksBugReporterPlugin
Description: modified (diff)
Resolution: invalid
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.