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

installation failed #39

Open
JerainChou opened this issue May 20, 2020 · 2 comments
Open

installation failed #39

JerainChou opened this issue May 20, 2020 · 2 comments

Comments

@JerainChou
Copy link

Kleborate>python setup.py install
Traceback (most recent call last):
File "setup.py", line 112, in
long_description=readme(),
File "setup.py", line 26, in readme
return f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x93 in position 4152: illegal multibyte sequence
When I cloned successfully, every time installation setup.py appeared the above , so I had to use kleborate-runner.py, but it prompts Error: could not find mash. I need your help, thank you.

@JerainChou
Copy link
Author

:\PythonFile\Kleborate>Kleborate-runner.py -o results_res.txt --resistance -a E:\PythonFile\Kleborate\test\sequences\kpscaffolds.fasta.gz
Traceback (most recent call last):
File "E:\PythonFile\Kleborate\kleborate-runner.py", line 22, in
main()
File "E:\PythonFile\Kleborate\kleborate\kleborate.py", line 36, in main
check_inputs_and_programs(args)
File "E:\PythonFile\Kleborate\kleborate\kleborate.py", line 142, in check_inputs_and_programs
fasta = load_fasta(assembly)
File "E:\PythonFile\Kleborate\kleborate\misc.py", line 27, in load_fasta
for line in fasta_file:
UnicodeDecodeError: 'gbk' codec can't decode byte 0xe0 in position 11: illegal multibyte sequence
kpscaffolds.fasta.gz Is a multi-fasta file compression package, is this not possible? Can't multiple fasta files be compared at the same time?

@kapsakcj
Copy link

kapsakcj commented Jul 8, 2021

don't know if you're still trying to install kleborate....more than a year later...but I also ran into the error your first post UnicodeDecodeError: 'gbk' codec can't decode byte 0x93 in position 4152: illegal multibyte sequence and would like to post my fix in case others hit this too.

It likely means that your locale settings are not set properly on your computer. My host OS is ubuntu, so these are the commands I had to run before installing kleborate python3 setup.py install

# this alone should work
locale-gen en_US.UTF-8
update-locale LANG=en_US.UTF-8

# may have to run this one too 
LANG=en_US.UTF-8

# then try this. may have to substitute python3 with python if your computer only has python2
python3 setup.py install

You also could avoid this entirely by using (bio)conda to install kleborate, though I'm not sure if this route of installation is supported by the authors of the tool https://bioconda.github.io/recipes/kleborate/README.html?highlight=kleborate

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

2 participants