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

error running kreport2mpa.py script, name 'l_vals' is not defined. #57

Open
Sautumn-Lin opened this issue Oct 18, 2022 · 8 comments
Open

Comments

@Sautumn-Lin
Copy link

Sautumn-Lin commented Oct 18, 2022

Traceback (most recent call last):
File "/home/zlinbz/miniconda3/envs/bracken/bin/KrakenTools-master/kreport2mpa.py", line 188, in
main()
File "/home/zlinbz/miniconda3/envs/bracken/bin/KrakenTools-master/kreport2mpa.py", line 143, in main
report_vals = process_kraken_report(line)
File "/home/zlinbz/miniconda3/envs/bracken/bin/KrakenTools-master/kreport2mpa.py", line 80, in process_kraken_report
taxid = int(l_vals[-3])
NameError: name 'l_vals' is not defined. Did you mean: 'locals'?

Is there anyone who met this problem and solved it?

@rahel31
Copy link

rahel31 commented Oct 27, 2022

Same error here :

....../KrakenTools-master/kreport2mpa.py", line 80, in process_kraken_report
taxid = int(l_vals[-3])
NameError: global name 'l_vals' is not defined

Did you solve it ? @Sautumn-Lin

@Sautumn-Lin
Copy link
Author

Sautumn-Lin commented Oct 28, 2022 via email

@Sautumn-Lin
Copy link
Author

Sautumn-Lin commented Oct 28, 2022 via email

@rahel31
Copy link

rahel31 commented Oct 28, 2022

Thank you! Maybe you can put it on google drive and share the downloadable link here? It seems I cannot send an e-mail to you or personal message over github...

@Sautumn-Lin
Copy link
Author

https://github.com/jenniferlu717/KrakenTools/releases/tag/v1.2
I can not send you the file on this web. You can try downloading it on this link, but I am unsure whether it is the right one.

@rahel31
Copy link

rahel31 commented Oct 28, 2022

Ok, thanks :)

@simonleandergrimm
Copy link

@rahel31 Did this work for you? I still get the same error.

@jenniferlu717 did this also happen to others? If so, is there an easy fix on our side?

Traceback (most recent call last):
File "/[...]/kreport2mpa.py", line 188, in
main()
File "/[...]/kreport2mpa.py", line 143, in main
report_vals = process_kraken_report(line)
File "/[...]/illumina_pilot/kreport2mpa.py", line 80, in process_kraken_report
taxid = int(l_vals[-3])
NameError: name 'l_vals' is not defined. Did you mean: 'locals'?

@gazollavolpiano
Copy link

Dear @simonleandergrimm, I used the release v1.1 and it worked!

You can find it here: https://github.com/jenniferlu717/KrakenTools/releases/tag/v1.1

Any concerns about using this previous version to avoid that error @jenniferlu717? :)

Thank you!!

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

4 participants