Ticket #10356 (assigned defect)

Opened 8 months ago

Last modified 7 months ago

AttributeError: 'JiraDecoder' object has no attribute 'category'.

Reported by: support@gbtec.de Assigned to: rjollos (accepted)
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@gbtec.de

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

test.zip (42.5 kB) - added by anonymous on 09/24/12 16:02:26.

Change History

09/21/12 23:48:38 changed by rjollos

  • cc set to rjollos.

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?

09/21/12 23:53:45 changed by rjollos

  • description changed.

09/24/12 16:02:26 changed by anonymous

  • attachment test.zip added.

09/24/12 16:11:26 changed by support@gbtec.de

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@gbtec.de

10/02/12 23:48:24 changed by rjollos

I haven't forgotten, just give me another day or two and I'll be able to take a look.

10/19/12 10:18:46 changed by rjollos

  • owner changed from thijs to rjollos.
  • status changed from new to assigned.
  • priority changed from normal to high.

Add/Change #10356 (AttributeError: 'JiraDecoder' object has no attribute 'category'.)




Change Properties
Action