Modify ↓
Opened 16 years ago
Last modified 13 years 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: | Bas van der Vlies | 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 16 years ago by
| Cc: | Bas van der Vlies added; anonymous removed |
|---|
comment:2 Changed 16 years ago by
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 16 years ago by
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:5 Changed 13 years ago by
Apologies, I haven't used or touched this since 2008, and haven't used trac since mid-2011. Good luck.
Note: See
TracTickets for help on using
tickets.



Forgot to include my email address