From: Teresa N. <mar...@de...> - 2015-11-30 10:08:53
|
Hello, I have a problem with the taurusimage widget, when I want to give a file name for saving or exporting the image (using 'Save as ...' or 'Export data ...' from the menu opened when clicking on the image). The name that I give to the QFileDialog window that is opened is seen as an unicode list, instead of as an string, I mean, it becomes, ex. [u'/', u'h', u'o', u'm', u'e', u'/', u't', u'n', u'u', u'n', u'e', u'z', u'/', u't', u'a', u'u', u'r', u'u', u's', u'_', u'g', u'u', u'i', u's', u'/', u'I', u'm', u'a', u'g', u'e', u'V', u'i', u'e', u'w', u'e', u'r', u'/', u't', u'e', u's', u't', u'.', u'p', u'n', u'g'] instead of: /home/tnunez/taurus_guis/ImageViewer/test.png And with this I get the error: File "/usr/lib/python2.7/dist-packages/guiqwt/qthelpers.py", line 66, in exec_image_save_dialog io.imwrite(filename, data) File "/usr/lib/python2.7/dist-packages/guiqwt/io.py", line 395, in imwrite iohandler.get_writefunc(ext)(fname, arr, **kwargs) File "/usr/lib/python2.7/dist-packages/guiqwt/io.py", line 155, in get_writefunc ftype = self._get_filetype(ext) File "/usr/lib/python2.7/dist-packages/guiqwt/io.py", line 143, in _get_filetype raise RuntimeError("Unsupported file type: '%s'" % ext) RuntimeError: Unsupported file type: '' I have this problem since the operating system of my computer was changed from debian7 to debian8, with the following changes in pyqt and guiqwt versions: debian7: python-guiqwt_2.1.6-4_amd64.deb pyqt4-dev-tools_4.9.3-4_amd64.deb debian8: python-guiqwt_2.3.1-1_amd64.deb pyqt4-dev-tools_4.11.2+dfsg-1_amd64.deb In both cases the python version was 2.7 and taurus 3.6. Do you have any idea why the problem happens, and how could be solved?. Thanks a lot. Regards, Teresa |