zwdzwd / transvar

TransVar - multiway annotator for precision medicine
Other
118 stars 33 forks source link

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte #22

Closed grayfall closed 6 years ago

grayfall commented 6 years ago

I've spotted an issue with the latest release on Python 3:

Traceback (most recent call last):
  File "/Users/ilia/.cenvs/envs/mutagenesis/bin/transvar", line 36, in <module>
    args.func(args)
  File "/Users/ilia/.cenvs/envs/mutagenesis/lib/python3.6/site-packages/transvar/anno.py", line 197, in main
    db = AnnoDB(args, config)
  File "/Users/ilia/.cenvs/envs/mutagenesis/lib/python3.6/site-packages/transvar/annodb.py", line 76, in __init__
    idmap = load(open(args.uniprot))
  File "/Users/ilia/.cenvs/envs/mutagenesis/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 0x80 in position 0: invalid start byte

The issue is clearly related to https://github.com/zwdzwd/transvar/issues/20 I'm making a pull-request with a hotfix.

zwdzwd commented 6 years ago

Thanks for the fix. I have merged your pull request.