Opened 12 years ago

Last modified 4 years ago

#10356 new defect

AttributeError: 'JiraDecoder' object has no attribute 'category'. — at Version 2

Reported by: support@… Owned by: Thijs Triemstra
Priority: high Component: JiraToTracIntegration
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by Ryan J Ollos)

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'

Change History (3)

comment:1 Changed 12 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; anonymous removed

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?

comment:2 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)

Changed 12 years ago by anonymous

Attachment: test.zip added
Note: See TracTickets for help on using tickets.