TransformationToolContest / ttc2016-live

TTC 2016 live contest materials
0 stars 4 forks source link

Mofongo: empty models are being created #12

Open agarciadom opened 8 years ago

agarciadom commented 8 years ago

Note to @arcanefoam: while the transformations seem to be running fine, the output files are left empty. I've noticed Python complains quite a bit with messages like this, and I suppose it must be related:

NewInstanceWorker failed to create instance. Cannot create a consistent method resolution
order (MRO) for bases ElementBase, Person
Traceback (most recent call last):
  File "test/test_flowm2m.py", line 237, in <module>

Is this something you can fix quickly before the end of the first coffee break?

arcanefoam commented 8 years ago

If possible, can we double check on your machine? It seems either a python version or missing module issue.

arcanefoam commented 8 years ago

On that note I am using Python 3.5.1, antlr4-python-runtime 4.5.3 and lxml 3.4.4.

agarciadom commented 8 years ago

I am using Python 3.5.1, antlr4-python3-runtime 4.5.3 and lxml 3.6.0. Let me try lxml 3.4.4 and see if it helps.

agarciadom commented 8 years ago

No, using lxml 3.4.4 didn't help. I'm running your tool with this script:

#!/bin/bash

export PYTHONPATH=.
EXDIR=/home/antonio/Documents/ttc2016-live-contest/examples/eu.ttc.dataflow.examples.families2persons

python \
    test/test_flowm2m.py \
    "$EXDIR/transformation/families2persons.dataflow" \
    Families "$EXDIR/input/familyGL.model" "$EXDIR/metamodels/Families.ecore" \
    Persons /tmp/persons.model "$EXDIR/metamodels/Persons.ecore"
arcanefoam commented 8 years ago

Hmm... wierd... I guess cross-platform compatibility is a mith :). Don't worry about it too much if you cant make it. I know Mofongo is in a very alpha stage.