-
Notifications
You must be signed in to change notification settings - Fork 107
version 4.0 NameError: name 'no_temp' is not defined #419
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
Comments
I have no idea why that would behave differently between pangolin v3 and v4, but the option should be |
It is a typo. I used "--no-temp". Please see the code below. The code works for V3, but not V4. nohup pangolin --outdir /work/08270/yanliu74/ls6/UTSW_covid/Project_JAS_2022_03_16_COV117_11718_0/S69_pangolin_files |
I used "--no-temp", but the error massage shows "no_temp". |
Okay, it was a bug that only shows up if the pipeline fails for another reason. I've fixed that- but I suspect there might be something else that gets flagged with this update! |
Fixed now in v4.0.4! |
As expected, we have a new error. NameError: name 'tempdir' is not defined. I guess this new issue was caused by other issues. Is it possible to find the real issue? |
I think it comes from a typo of variable tempdir in Line 248 and 250 in command.py . It should be args.tempdir or something like that. And I still see the typo --no-tmp in line 56 in v4.0.4 |
I attached the output.txt and the files generated. Thanks! |
OK, this line of output.txt shows the root problem:
pangolin v4 is a major update including changes to the conda environment, which unfortunately are not picked up by Instructions for updating your conda environment are here: https://cov-lineages.org/resources/pangolin/updating.html |
I re-installed the environment. It works. Thank you guys! |
I've just fixed the typos flagged by @SamaZYX there- they only get called if something else fails within the pipeline, that's how they passed the tests, note to self: must add more tests. Sounds like the root issue was an install problem, glad it's sorted! |
I have run pangolin for half a year. Each week I analyze Covid in DFW area. After Pangolin was updated this time, I got error complaining
"name 'no_temp' is not defined".
Below is the code I use. It was fine before Pangolin 4.0.
nohup pangolin --outdir /work/08270/yanliu74/ls6/UTSW_covid/Project_JAS_2022_03_30_COV119_11769_0/Project_JAS_2022_03_30_COV119_11769_0.trim.t0.5.ivar.fasta_pangolin_files
--outfile Project_JAS_2022_03_30_COV119_11769_0.trim.t0.5.ivar.fasta.pangolin.txt
--max-ambig 0.5 --no_temp
--tempdir /work/08270/yanliu74/ls6/UTSW_covid/Project_JAS_2022_03_30_COV119_11769_0/Project_JAS_2022_03_30_COV119_11769_0.trim.t0.5.ivar.fasta_pangolin_files
/work/08270/yanliu74/ls6/UTSW_covid/Project_JAS_2022_03_30_COV119_11769_0/Project_JAS_2022_03_30_COV119_11769_0.trim.t0.5.ivar.fasta &> output.txt &
The text was updated successfully, but these errors were encountered: