hardaker / pyfsdb

A python implementation of the FSDB flat-file streaming database.
MIT License
7 stars 2 forks source link

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd9 in position 0: unexpected end of data #3

Open pxs7 opened 2 months ago

pxs7 commented 2 months ago

when use pyfsdb as

import pyfsdb db = pyfsdb.Fsdb(filename=fsdbfile) print(db.column_names) for row in db: print(row)

the following error

for row in db:

File "pyfsdb/fsdb.py", line 590, in iter self.bootstrap() File "pyfsdb/fsdb.py", line 680, in bootstrap self.read_header() File "pyfsdb/fsdb.py", line 915, in read_header addition = addition.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd9 in position 0: unexpected end of data

hardaker commented 2 months ago

Can you show me the header line from the file? Is it not utf-8 encoded?

norayaoLU commented 2 weeks ago

I met the same problem. But how can I print the header line from the .fsdb file? Weixin Screenshot_20241028183832