picrust / picrust2

Code, unit tests, and tutorials for running PICRUSt2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with hsp.py step with tutorial data

sjackrel opened this issue · comments

Hi, I am trying to run the tutorial data and am getting stuck at the second command. I've tried within and without the -e parameter. Command and error below.

Sara

hsp.py -i 16S -t out.tre -o marker_predicted_and_nsti.tsv.gz -p 1 -n -e float 0

Traceback (most recent call last):
File "/home/sjackrel/miniconda3/envs/picrust2/bin/hsp.py", line 8, in
from picrust2.wrap_hsp import castor_hsp_workflow
File "/home/sjackrel/miniconda3/envs/picrust2/lib/python3.6/site-packages/picrust2/wrap_hsp.py", line 10, in
from joblib import Parallel, delayed
File "/home/sjackrel/miniconda3/envs/picrust2/lib/python3.6/site-packages/joblib/init.py", line 129, in
from .parallel import Parallel
File "/home/sjackrel/miniconda3/envs/picrust2/lib/python3.6/site-packages/joblib/parallel.py", line 23, in
from contextlib import nullcontext
ImportError: cannot import name 'nullcontext'

Hi there,

This seems like an incompatibility with python 3.6 and the contextlib package for some reason -- see this issue too: https://stackoverflow.com/questions/69520829/openai-gym-attributeerror-module-contextlib-has-no-attribute-nullcontext

Is the problem resolved if you install a higher Python version?

Yes, thank you!