Upgrading fails due to attribute error

10 views
Skip to first unread message

Ben Fogelson

unread,
May 12, 2016, 5:22:54 PM5/12/16
to sumatra-users
Hello! I'm trying to upgrade from 0.5.3 to 0.7.4. Exporting works, but when I run "smt upgrade" I get the following error:

  File "/Users/fogelson/git/stressfibermodels/newenv/bin/smt", line 31, in <module>
    main(sys.argv[2:])
  File "/Users/fogelson/git/stressfibermodels/newenv/lib/python2.7/site-packages/sumatra/commands.py", line 630, in upgrade
    project.record_store.import_(project.name, f.read())
  File "/Users/fogelson/git/stressfibermodels/newenv/lib/python2.7/site-packages/sumatra/recordstore/base.py", line 77, in import_
    records = serialization.decode_records(content)
  File "/Users/fogelson/git/stressfibermodels/newenv/lib/python2.7/site-packages/sumatra/recordstore/serialization.py", line 161, in decode_records
    return [build_record(data) for data in json.loads(content)]
  File "/Users/fogelson/git/stressfibermodels/newenv/lib/python2.7/site-packages/sumatra/recordstore/serialization.py", line 87, in build_record
    parameter_set = getattr(parameters, pdata["type"])(pdata["content"])
AttributeError: 'module' object has no attribute 'unicode'

If anyone has an idea about how to fix this, I'd really appreciate it.

Thanks,
Ben

Andrew Davison

unread,
Sep 10, 2017, 10:41:04 AM9/10/17
to sumatra-users
Dear Ben,

I'm very sorry not to have replied to this much earlier. Due to pressure of other commitments, I've had little time to dedicate to Sumatra in the last 12 months, although that is now changing.

Did you resolve this problem?

Regards,

Andrew
Reply all
Reply to author
Forward
0 new messages