Skip to content

Unicode Decode Error on file loading #6

@domna

Description

@domna

When I try to load a file
file = SIFFile('filename.sif')

I get the following error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 43: invalid start byte

Here is the full error trace:

UnicodeDecodeError Traceback (most recent call last)
in
----> 1 file = sif.SIFFile('(PhSn)4S6_1450nm_15mW.sif')

~\Anaconda3\lib\site-packages\sifreader-0.2.4-py3.6.egg\sifreader\sifreader.py in init(self, filepath)
42 def init(self, filepath):
43 self.filepath = filepath
---> 44 self._read_header(filepath)
45
46 def repr(self):

~\Anaconda3\lib\site-packages\sifreader-0.2.4-py3.6.egg\sifreader\sifreader.py in _read_header(self, filepath)
98 self.model = line.decode('utf-8')
99 elif i == 5:
--> 100 self.original_filename = line.decode('utf-8')
101 elif i == 7:
102 tokens = line.split()

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 43: invalid start byte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions