#6900 Trac ticket import failure

v1.1.0
closed
General
2015-08-20
2013-11-20
No

Importing https://sourceforge.net/apps/trac/sivic:

Importing the Tickets data from the sivic Trac project to the sivic SourceForge project failed with the error: 'ascii' codec can't decode byte 0xe2 in position 57: ordinal not in range(128)

Traceback (most recent call last):
  File "/home/tvansteenburgh/tvansteenburgh-1024/forge/ForgeImporters/forgeimporters/base.py", line 122, in import_tool
    mount_point=mount_point, mount_label=mount_label, **kw)
  File "/home/tvansteenburgh/tvansteenburgh-1024/forge/ForgeImporters/forgeimporters/trac/tickets.py", line 124, in import_tool
    json.dumps(export(trac_url), cls=DateJSONEncoder),
  File "/home/tvansteenburgh/tvansteenburgh-1024/forge/Allura/allura/scripts/trac_export.py", line 290, in export
    doc = [t for t in islice(ex, limit)]
  File "/home/tvansteenburgh/tvansteenburgh-1024/forge/Allura/allura/scripts/trac_export.py", line 271, in next
    return self.get_ticket(id, extra)
  File "/home/tvansteenburgh/tvansteenburgh-1024/forge/Allura/allura/scripts/trac_export.py", line 219, in get_ticket
    t = self.parse_ticket(id)
  File "/home/tvansteenburgh/tvansteenburgh-1024/forge/Allura/allura/scripts/trac_export.py", line 166, in parse_ticket
    c['comment'] = html2text.html2text(changes + body)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 57: ordinal not in range(128)

Discussion

  • Tim Van Steenburgh

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,6 +2,7 @@
    
     Importing the Tickets data from the sivic Trac project to the sivic SourceForge project failed with the error: 'ascii' codec can't decode byte 0xe2 in position 57: ordinal not in range(128)
    
    +~~~~
     Traceback (most recent call last):
       File "/home/tvansteenburgh/tvansteenburgh-1024/forge/ForgeImporters/forgeimporters/base.py", line 122, in import_tool
         mount_point=mount_point, mount_label=mount_label, **kw)
    @@ -16,3 +17,4 @@
       File "/home/tvansteenburgh/tvansteenburgh-1024/forge/Allura/allura/scripts/trac_export.py", line 166, in parse_ticket
         c['comment'] = html2text.html2text(changes + body)
     UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 57: ordinal not in range(128)
    +~~~~
    
     
  • Dave Brondsema

    Dave Brondsema - 2013-11-20
    • labels: --> trac, import
     
  • Tim Van Steenburgh

    • status: open --> in-progress
    • assigned_to: Tim Van Steenburgh
    • Size: --> 1
     
  • Tim Van Steenburgh

    • status: in-progress --> code-review
     
  • Tim Van Steenburgh

    allura:tv/6900

    I re-ran the sivic ticket import successfully.

     
  • Dave Brondsema

    Dave Brondsema - 2013-11-20
    • status: code-review --> closed
    • QA: Dave Brondsema
     

Log in to post a comment.