Modify

Opened 4 years ago

Last modified 14 months ago

#6530 new defect

Can not run the example included in the source

Reported by: anonymous Owned by: chmullig
Priority: normal Component: TracMergeScript
Severity: normal Keywords:
Cc: basv@… Trac Release: 0.12

Description

I want to merge several trac projects in one and first tried the runexample.sh but this one fails with:

Traceback (most recent call last):
  File "example.py", line 102, in <module>
    main()
  File "example.py", line 99, in main
    merge.merge()
  File "/var/tmp/tracmergescript/tracmerge.py", line 106, in merge
    self.mergeWiki()
  File "/var/tmp/tracmergescript/tracmerge.py", line 152, in mergeWiki
    newText = self._updateText(sTrac['name'], pageData[-1]['text'], pageDest)
IndexError: list index out of range

Is this a known error. I am using 0,12r9120

Attachments (0)

Change History (5)

comment:1 Changed 4 years ago by basv@…

  • Cc basv@… added

Forgot to include my email address

comment:2 Changed 4 years ago by chmullig

I haven't tested it with any version of trac in the last 18 months, so I can't say for certain what's going on. Do you have a sense of whether it's failing on the very first page, or on a specific page?

You might try inserting a logging line right before line 152 of tracmerge.py: print Trac['name'], pageData, pageDest

comment:3 Changed 4 years ago by anonymous

i just inserted the statement and pageData is empty:

Test1 [] Dest1
Traceback (most recent call last):
  File "example.py", line 102, in <module>
    main()
  File "example.py", line 99, in main
    merge.merge()
  File "/var/tmp/tracmergescript/tracmerge.py", line 106, in merge
    self.mergeWiki()
  File "/var/tmp/tracmergescript/tracmerge.py", line 153, in mergeWiki
    newText = self._updateText(sTrac['name'], pageData[-1]['text'], pageDest)
IndexError: list index out of range

comment:4 Changed 15 months ago by anonymous

I've had the same error.

comment:5 Changed 14 months ago by chmullig

Apologies, I haven't used or touched this since 2008, and haven't used trac since mid-2011. Good luck.

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.