Project

General

Profile

Actions

Bug #9644

closed

pyami-py3 DecodeError

Added by Anchi Cheng almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
12/07/2020
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.5
Show in known bugs:
No
Workaround:

Description

python 3.8.5 reading holetemplate.mrc in leginon directory

cd leginon

from pyami import mrc
mrc.readHeaderFromFile('holetemplate.mrc')

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/acheng/myami/pyami/mrc.py", line 838, in readHeaderFromFile
    h = f.read(1024)
  File "/usr/local/opt/python@3.8/bin/../Frameworks/Python.framework/Versions/3.8/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 0xc8 in position 0: invali
Actions

Also available in: Atom PDF