Closed chrissy005 closed 8 months ago
Hi there, how did you install it? Please note that on the installation instructions page , it says "Run the tests to verify the installation (note that this wont work if you followed the bioconda install instructions, unless you also downloaded the source code and navigated to the main directory)"
Hi,
I had the same error, it is an issue with sepp and a version of dendropy (it has been described in this other issue: https://github.com/picrust/picrust2/issues/312). To solve this, you can use dendropy version 4.5.2
by installing it with pip install dendropy==4.5.2
.
Thanks for this fix @ArnaudBelcour!
I have installed the latest version of picrust2 (v2.5.2).
While the installation prompted that installation was successful, runnin the pytest command showed the following error:
==================================================================== test session starts ==================================================================== platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0 rootdir: /hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2 plugins: cov-4.1.0 collected 61 items
tests/test_hsp.py ........ [ 13%] tests/test_metagenome_pipeline.py ............... [ 37%] tests/test_pathway_pipeline.py .... [ 44%] tests/test_place_seqs.py ........F [ 59%] tests/test_util.py .................... [ 91%] tests/test_workflow.py ..... [100%]
========================================================================= FAILURES ========================================================================== ____ place_seqs_tests.test_run_place_seqs_pipelinesepp ____
self =
tests/test_place_seqs.py:160:
picrust2/place_seqs.py:95: in place_seqs_pipeline run_sepp(tree=tree, picrust2/place_seqs.py:458: in run_sepp system_call_check(sepp_command, print_command=print_cmds,
cmd = ['run_sepp.py', '--tree', '/hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/picrust2/default_files/prokaryotic/pro...isg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/picrust2/default_files/prokaryotic/pro_ref/pro_ref.raxml_info', '--cpu', ...] print_command = True, print_stdout = True, print_stderr = True
picrust2/util.py:258: SystemExit ------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------
------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------- hmmalign --trim --dna --mapali /hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/picrust2/default_files/prokaryotic/pro_ref/pro_ref.fna --informat FASTA -o /tmp/tmpcn6ncfol/query_align.stockholm /hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/picrust2/default_files/prokaryotic/pro_ref/pro_ref.hmm /hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/tests/test_data/place_seqs/study_seqs_test.fasta
All raw input sequences were the same length (400)
run_sepp.py --tree /hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/picrust2/default_files/prokaryotic/pro_ref/pro_ref.tre --raxml /hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/picrust2/default_files/prokaryotic/pro_ref/pro_ref.raxml_info --cpu 1 --molecule dna --outdir /tmp/tmpcn6ncfol/sepp_out -seed 297834 --alignment /hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/picrust2/default_files/prokaryotic/pro_ref/pro_ref.fna --fragment /tmp/tmpcn6ncfol/study_seqs_filtered.fasta
Error running this command: run_sepp.py --tree /hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/picrust2/default_files/prokaryotic/pro_ref/pro_ref.tre --raxml /hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/picrust2/default_files/prokaryotic/pro_ref/pro_ref.raxml_info --cpu 1 --molecule dna --outdir /tmp/tmpcn6ncfol/sepp_out -seed 297834 --alignment /hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/picrust2/default_files/prokaryotic/pro_ref/pro_ref.fna --fragment /tmp/tmpcn6ncfol/study_seqs_filtered.fasta
Standard error of the above failed command: Traceback (most recent call last): File "/home/svu/chrisg25/TMFZ/postDADA2/picrust2-2.5.2/miniforge3/envs/picrust2/bin/run_sepp.py", line 3, in
from sepp.exhaustive import ExhaustiveAlgorithm
File "/hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/miniforge3/envs/picrust2/lib/python3.8/site-packages/sepp/exhaustive.py", line 6, in
from sepp.algorithm import AbstractAlgorithm
File "/hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/miniforge3/envs/picrust2/lib/python3.8/site-packages/sepp/algorithm.py", line 11, in
from sepp.tree import PhylogeneticTree
File "/hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/miniforge3/envs/picrust2/lib/python3.8/site-packages/sepp/tree.py", line 25, in
from dendropy.datamodel.treemodel import _convert_node_to_root_polytomy as \
ImportError: cannot import name '_convert_node_to_root_polytomy' from 'dendropy.datamodel.treemodel' (/hpctmp/chrisg25/R_out/TMFZ/postDADA2/picrust2-2.5.2/miniforge3/envs/picrust2/lib/python3.8/site-packages/dendropy/datamodel/treemodel/init.py)
================================================================== short test summary info ================================================================== FAILED tests/test_place_seqs.py::place_seqs_tests::test_run_place_seqs_pipeline_sepp - SystemExit: 1 ========================================================= 1 failed, 60 passed in 905.97s (0:15:05) =