You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exporting a parsed model that contains non-unicode strings causes the following error on Python2
>>> my_string = "value + value2"
>>> parsed = example_meta.model_from_str(my_string)
>>> from textx.export import model_export
>>> model_export(parsed, "my_file.dot")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/textx/export.py", line 163, in model_export
model_export_to_file(f, model, repo)
File "/usr/local/lib/python2.7/site-packages/textx/export.py", line 267, in model_export_to_file
_export(model)
File "/usr/local/lib/python2.7/site-packages/textx/export.py", line 222, in _export
_export(list_obj)
File "/usr/local/lib/python2.7/site-packages/textx/export.py", line 195, in _export
for attr_name, attr in obj_cls._tx_attrs.items():
AttributeError: type object 'str' has no attribute '_tx_attrs'
The text was updated successfully, but these errors were encountered:
Exporting a parsed model that contains non-unicode strings causes the following error on Python2
The text was updated successfully, but these errors were encountered: