Skip to content

Build broken with new PyYaml==4.1 (or 4.1b1) #161

@altendky

Description

@altendky

https://travis-ci.org/ebroecker/canmatrix/jobs/397500683

5.98s$ source ./test.sh
Obtaining file:///home/travis/build/ebroecker/canmatrix
Requirement already satisfied: future in /home/travis/virtualenv/python3.5.5/lib/python3.5/site-packages (from canmatrix==0.6.post58+gdd34a77)
Requirement already satisfied: lxml in /home/travis/virtualenv/python3.5.5/lib/python3.5/site-packages (from canmatrix==0.6.post58+gdd34a77)
Requirement already satisfied: xlrd in /home/travis/virtualenv/python3.5.5/lib/python3.5/site-packages (from canmatrix==0.6.post58+gdd34a77)
Requirement already satisfied: xlwt in /home/travis/virtualenv/python3.5.5/lib/python3.5/site-packages (from canmatrix==0.6.post58+gdd34a77)
Requirement already satisfied: xlsxwriter in /home/travis/virtualenv/python3.5.5/lib/python3.5/site-packages (from canmatrix==0.6.post58+gdd34a77)
Requirement already satisfied: pyyaml in /home/travis/virtualenv/python3.5.5/lib/python3.5/site-packages (from canmatrix==0.6.post58+gdd34a77)
Installing collected packages: canmatrix
  Running setup.py develop for canmatrix
Successfully installed canmatrix
arxml -> ['csv', 'dbc', 'dbf', 'json', 'kcd', 'sym', 'xls', 'xlsx', 'xml', 'yaml']
Traceback (most recent call last):
  File "./test.py", line 85, in <module>
    canmatrix.convert.convert(in_file, out_file)
  File "/home/travis/build/ebroecker/canmatrix/canmatrix/convert.py", line 198, in convert
    canmatrix.formats.dumpp(outdbs, outfileName, **options)
  File "/home/travis/build/ebroecker/canmatrix/canmatrix/formats.py", line 113, in dumpp
    dump(db, fileObject, exportType, **options)
  File "/home/travis/build/ebroecker/canmatrix/canmatrix/formats.py", line 89, in dump
    moduleInstance.dump(canMatrixOrCluster, fileObject, **options)
  File "/home/travis/build/ebroecker/canmatrix/canmatrix/yaml.py", line 68, in dump
    f.write(yaml.dump(newdb).encode('utf8'))
  File "/home/travis/virtualenv/python3.5.5/lib/python3.5/site-packages/yaml/__init__.py", line 217, in dump
    return dump_all([data], stream, Dumper=Dumper, **kwds)
  File "/home/travis/virtualenv/python3.5.5/lib/python3.5/site-packages/yaml/__init__.py", line 196, in dump_all
    dumper.represent(data)
  File "/home/travis/virtualenv/python3.5.5/lib/python3.5/site-packages/yaml/representer.py", line 26, in represent
    node = self.represent_data(data)
  File "/home/travis/virtualenv/python3.5.5/lib/python3.5/site-packages/yaml/representer.py", line 57, in represent_data
    node = self.yaml_representers[None](self, data)
  File "/home/travis/virtualenv/python3.5.5/lib/python3.5/site-packages/yaml/representer.py", line 229, in represent_undefined
    raise RepresenterError("cannot represent an object", data)
yaml.representer.RepresenterError: ('cannot represent an object', <canmatrix.canmatrix.CanMatrix object at 0x7fc24d0a3ef0>)

Nothing jumps out to me as an obvious cause in the announcements. Maybe the 'safe by default' aspect though?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions