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 0xff in position 0: invalid start byte #164

Open
dsiegieda opened this issue Nov 19, 2024 · 0 comments

Comments

@dsiegieda
Copy link

using this code:
sourcetracker2 gibbs -i table.txt -m healthy.txt -o healthy/

gave me an error:

Traceback (most recent call last):
  File "/home/lmmis/miniconda3/envs/st2/bin/sourcetracker2", line 8, in <module>
    sys.exit(cli())
  File "/home/lmmis/miniconda3/envs/st2/lib/python3.6/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/lmmis/miniconda3/envs/st2/lib/python3.6/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/home/lmmis/miniconda3/envs/st2/lib/python3.6/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/lmmis/miniconda3/envs/st2/lib/python3.6/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/lmmis/miniconda3/envs/st2/lib/python3.6/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/lmmis/miniconda3/envs/st2/lib/python3.6/site-packages/sourcetracker/_cli/gibbs.py", line 140, in gibbs
    sample_metadata_lines = o.readlines()
  File "/home/lmmis/miniconda3/envs/st2/lib/python3.6/codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
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