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
This occurs using the HEAD of master on Ubuntu 16.04.
When any export is attempted the following error is reported:
Return exporter instance
emit ('error', 1, 'Error during Exporter', 'Traceback (most recent call last):\n File "/usr/local/lib/python2.7/dist-packages/gourmet/threadManager.py", line 98, in run\n self.do_run()\n File "/usr/local/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line 395, in _\n retval = f(self,args,*kwargs)\n File "/usr/local/lib/python2.7/dist-packages/gourmet/exporters/exporter.py", line 583, in do_run\n self.write_footer()\n File "/usr/local/lib/python2.7/dist-packages/gourmet/plugins/import_export/gxml_plugin/gxml2_exporter.py", line 128, in write_footer\n encoding = "UTF-8")\n File "/usr/lib/python2.7/xml/dom/minidom.py", line 1747, in writexml\n writer.write('%s' % (encoding, newl))\nAttributeError: 'unicode' object has no attribute 'write'\n')
emit ('done',)
I've tracked this to the type(self.out)==str test on lines 554 and 555 of exporter.py. self.out at this point is a unicode type, not str. It looks like the type was changed at about hash bbccf35
It looks like the problem occurs in a few other places, so I don't have a pull-request ready, but I am working on it.
The text was updated successfully, but these errors were encountered:
Fixesthinkle#863
Test for both unecode and str so that code is backwards compatible (I
hope).
On branch ubuntu1604fixes
modified: gourmet/check_encodings.py
modified: gourmet/exporters/exporter.py
modified: gourmet/gtk_extras/dialog_extras.py
modified: gourmet/importers/html_importer.py
modified: gourmet/importers/importer.py
modified: gourmet/importers/plaintext_importer.py
modified: gourmet/importers/webextras.py
modified: gourmet/plugins/import_export/archive_plugin/zip_readers.py
modified: gourmet/plugins/import_export/mastercook_import_plugin/mastercook_plaintext_importer.py
This occurs using the HEAD of master on Ubuntu 16.04.
When any export is attempted the following error is reported:
Return exporter instance
emit ('error', 1, 'Error during Exporter', 'Traceback (most recent call last):\n File "/usr/local/lib/python2.7/dist-packages/gourmet/threadManager.py", line 98, in run\n self.do_run()\n File "/usr/local/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line 395, in _\n retval = f(self,args,*kwargs)\n File "/usr/local/lib/python2.7/dist-packages/gourmet/exporters/exporter.py", line 583, in do_run\n self.write_footer()\n File "/usr/local/lib/python2.7/dist-packages/gourmet/plugins/import_export/gxml_plugin/gxml2_exporter.py", line 128, in write_footer\n encoding = "UTF-8")\n File "/usr/lib/python2.7/xml/dom/minidom.py", line 1747, in writexml\n writer.write('%s' % (encoding, newl))\nAttributeError: 'unicode' object has no attribute 'write'\n')
emit ('done',)
I've tracked this to the type(self.out)==str test on lines 554 and 555 of exporter.py. self.out at this point is a unicode type, not str. It looks like the type was changed at about hash bbccf35
It looks like the problem occurs in a few other places, so I don't have a pull-request ready, but I am working on it.
The text was updated successfully, but these errors were encountered: