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
>>> from io import StringIO
>>> from docplex.mp.model import Model
>>> model = Model()
>>> stream = StringIO()
>>> model.export_to_stream(stream, format_spec="sav")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/lpsinger/src/m4opt/.vscode/env/lib/python3.11/site-packages/docplex/mp/model.py", line 5734, in export_to_stream
self._export_to_stream(stream, hide_user_names, format_spec)
File "/Users/lpsinger/src/m4opt/.vscode/env/lib/python3.11/site-packages/docplex/mp/model.py", line 5716, in _export_to_stream
self.__engine.export(stream, format_spec)
File "/Users/lpsinger/src/m4opt/.vscode/env/lib/python3.11/site-packages/docplex/mp/cplex_engine.py", line 2567, in export
filetype = exchange_format.filetype
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'filetype'