Bug#962560: code-saturne built-in file editor fails

Clinton Winant clinton.winant at gmail.com
Tue Jun 9 22:08:12 BST 2020


Package: code-saturne
  Version: 6.0

  Severity: grave - makes the package  unusable or mostly so: output in
built-in editor causes SaturneGUI to crash

  When I try to examine output files with the code-saturne built-in
  file editor, the program terminates with error on the console of the
  following kind:

for EnSight output
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py",
line 910, in _explorerDoubleClick
    self._viewSelectedFile()
  File "/usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py",
line 745, in _viewSelectedFile
    self.openFile(fn=fn)
  File "/usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py",
line 991, in openFile
    text = file.read()
  File "/usr/lib/python3.8/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0:
invalid start byte
./SaturneGUI: line 7:  5541 Aborted                 \code_saturne gui $@

for MED output
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py",
line 745, in _viewSelectedFile
    self.openFile(fn=fn)
  File "/usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py",
line 991, in openFile
    text = file.read()
  File "/usr/lib/python3.8/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0:
invalid start byte
./SaturneGUI: line 7:  5843 Aborted                 \code_saturne gui $@

CGNS formatted output behaves in the same way.  Histogram files (.txt)
are displayed correctly ( but the output is of little value.

  I am using Debian GNU/Linux testing (Bullseye), kernel Debian 5.6.14-1
(2020-05-23)
  ldd --version
ldd (Debian GLIBC 2.30-8) 2.30
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20200609/ab1937cb/attachment.html>


More information about the debian-science-maintainers mailing list