Modify ↓
Opened 9 months ago
Last modified 5 days ago
#10356 new defect
AttributeError: 'JiraDecoder' object has no attribute 'category'.
| Reported by: | support@… | Owned by: | rjollos |
|---|---|---|---|
| Priority: | high | Component: | JiraToTracIntegration |
| Severity: | normal | Keywords: | |
| Cc: | rjollos | Trac Release: | 0.11 |
Description (last modified by rjollos)
Hello thijs,
trying to use JiraToTracIntegration we unfortunately get an error:
AttributeError: 'JiraDecoder' object has no attribute 'category'.
We tried the tags and the trunk version.
Do you have any suggestions?
thank you.
Regards
Michael @ support@…
Detailed information:
d:\1\jiratotracintegration\0.11\trunk\bin>d:\opt\python\3.1\python jira2trac
INFO - 2012-09-21 16:20:35,927 - Loading Jira backup file: d:\test\test.xml (0.44 MB)
INFO - 2012-09-21 16:20:35,927 - Processing data...
DEBUG - 2012-09-21 16:20:35,927 - Start element: rss {'version': '0.92'}
DEBUG - 2012-09-21 16:20:35,944 - Character data: '\n'
DEBUG - 2012-09-21 16:20:35,944 - Character data: ' '
DEBUG - 2012-09-21 16:20:35,944 - Start element: channel {}
DEBUG - 2012-09-21 16:20:35,944 - Character data: '\n'
DEBUG - 2012-09-21 16:20:35,944 - Character data: ' '
DEBUG - 2012-09-21 16:20:35,944 - Start element: title {}
DEBUG - 2012-09-21 16:20:35,944 - Character data: 'Systems -- JIRA'
DEBUG - 2012-09-21 16:20:35,944 - Self: <jira2trac.JiraDecoder object at 0x029F15B0>
DEBUG - 2012-09-21 16:20:35,944 - End element: title
Traceback (most recent call last):
File "jira2trac", line 15, in <module>
run()
File "d:\1\jiratotracintegration\0.11\trunk\jira2trac\scripts\__init__.py", line 65, in run
startup(options)
File "d:\1\jiratotracintegration\0.11\trunk\jira2trac\scripts\__init__.py", line 84, in startup
jira.parse_backup_file()
File "d:\1\jiratotracintegration\0.11\trunk\jira2trac\__init__.py", line 78, in parse_backup_file
p.Parse(file, 1)
File "d:\1\jiratotracintegration\0.11\trunk\jira2trac\__init__.py", line 136, in _end_element
index = len(self.data[self.category]) - 1
AttributeError: 'JiraDecoder' object has no attribute 'category'
Attachments (1)
Change History (7)
comment:1 Changed 9 months ago by rjollos
- Cc rjollos added
comment:2 Changed 9 months ago by rjollos
- Description modified (diff)
Changed 9 months ago by anonymous
comment:3 Changed 9 months ago by support@…
Hello rjollos,
thank you for the kind answer.
I added a zipped xml-demo file for the jira import.
Maybe there is a solution?
thank you again for the help.
Regards
Michael @ support@…
comment:4 Changed 9 months ago by rjollos
I haven't forgotten, just give me another day or two and I'll be able to take a look.
comment:5 Changed 8 months ago by rjollos
- Owner changed from thijs to rjollos
- Priority changed from normal to high
- Status changed from new to assigned
comment:6 Changed 5 days ago by rjollos
- Status changed from assigned to new
Note: See
TracTickets for help on using
tickets.


I'm wondering if the replacement self.category -> name would fix the issue.
Do you have a small Jira backup file you could attach to this ticket so that I could experiment with this?