Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 76: invalid start byte #174

Open
sangensong opened this issue Jun 18, 2021 · 0 comments

Comments

@sangensong
Copy link

sangensong commented Jun 18, 2021

My python's version is python3.8.5 and my orm's version is 2.1.0

  File "/usr/local/lib/python3.8/dist-packages/infi/clickhouse_orm/database.py", line 281, in select
    yield model_class.from_tsv(line, field_names, self.server_timezone, self)
  File "/usr/local/lib/python3.8/dist-packages/infi/clickhouse_orm/models.py", line 390, in from_tsv
    values = iter(parse_tsv(line))
  File "/usr/local/lib/python3.8/dist-packages/infi/clickhouse_orm/utils.py", line 81, in parse_tsv
    line = line.decode()

It's possible to make line = line.decode(errors='ignore')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant