merenlab / anvio

An analysis and visualization platform for 'omics data
http://merenlab.org/software/anvio
GNU General Public License v3.0
423 stars 144 forks source link

[BUG] datrie installation in anvio-dev with python 3.10 #2126

Closed semiller10 closed 11 months ago

semiller10 commented 11 months ago

Short description of the problem

In anvio-dev installation, pip failed to build the datrie package, a dependency of snakemake.

anvi'o version

Anvi'o .......................................: hope (v7.1-dev)
Python .......................................: 3.10.12

Profile database .............................: 38
Contigs database .............................: 21
Pan database .................................: 16
Genome data storage ..........................: 7
Auxiliary data storage .......................: 2
Structure database ...........................: 2
Metabolic modules database ...................: 4
tRNA-seq database ............................: 2

System info

macOS: 13.5.2 (22G91)

Detailed description of the issue

anvio-dev installation with python 3.10 failed at the command pip install -r requirements.txt with failure to build datrie. I think that I fixed the problem by installing the package using mamba rather than pip: mamba install datrie. Therefore, I suggest that datrie be installed by mamba earlier in the installation instructions.

For the record, here was the full error message following the instructions.

Collecting numpy<=1.24 (from -r requirements.txt (line 1))
  Using cached numpy-1.24.0-cp310-cp310-macosx_10_9_x86_64.whl (19.8 MB)
Collecting scipy (from -r requirements.txt (line 2))
  Obtaining dependency information for scipy from https://files.pythonhosted.org/packages/65/da/4d0dfd29379c8ee3ba54b19249f673cc98448e0fd86170339fb02031f0e9/scipy-1.11.2-cp310-cp310-macosx_10_9_x86_64.whl.metadata
  Using cached scipy-1.11.2-cp310-cp310-macosx_10_9_x86_64.whl.metadata (54 kB)
Collecting bottle (from -r requirements.txt (line 3))
  Using cached bottle-0.12.25-py3-none-any.whl (90 kB)
Collecting pysam (from -r requirements.txt (line 4))
  Using cached pysam-0.21.0-cp310-cp310-macosx_10_9_x86_64.whl (7.6 MB)
Collecting ete3 (from -r requirements.txt (line 5))
  Using cached ete3-3.1.3-py3-none-any.whl
Collecting scikit-learn==1.2.2 (from -r requirements.txt (line 6))
  Using cached scikit_learn-1.2.2-cp310-cp310-macosx_10_9_x86_64.whl (9.1 MB)
Collecting django (from -r requirements.txt (line 7))
  Obtaining dependency information for django from https://files.pythonhosted.org/packages/bf/8b/c38f2354b6093d9ba310a14b43a830fdf776edd60c2e25c7c5f4d23cc243/Django-4.2.5-py3-none-any.whl.metadata
  Using cached Django-4.2.5-py3-none-any.whl.metadata (4.1 kB)
Requirement already satisfied: requests in /usr/local/Caskroom/miniconda/base/envs/anvio-dev/lib/python3.10/site-packages (from -r requirements.txt (line 8)) (2.31.0)
Collecting mistune (from -r requirements.txt (line 9))
  Obtaining dependency information for mistune from https://files.pythonhosted.org/packages/cc/c0/ac9587149e37cde62ae338e9db8241ae2fdc79a84bde8c8ba7caea2c22d8/mistune-3.0.1-py3-none-any.whl.metadata
  Using cached mistune-3.0.1-py3-none-any.whl.metadata (1.7 kB)
Collecting six (from -r requirements.txt (line 10))
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting matplotlib (from -r requirements.txt (line 11))
  Obtaining dependency information for matplotlib from https://files.pythonhosted.org/packages/30/5b/a6214caaa5adf07b52aecba98fdace32cc51e63a1fcc1f98d60ec128a6c0/matplotlib-3.8.0-cp310-cp310-macosx_10_12_x86_64.whl.metadata
  Using cached matplotlib-3.8.0-cp310-cp310-macosx_10_12_x86_64.whl.metadata (5.8 kB)
Collecting statsmodels (from -r requirements.txt (line 12))
  Using cached statsmodels-0.14.0-cp310-cp310-macosx_10_9_x86_64.whl (9.9 MB)
Collecting colored (from -r requirements.txt (line 13))
  Obtaining dependency information for colored from https://files.pythonhosted.org/packages/6f/0d/a10351ef1a98e0b03d66887ec2d87c261f9a0fbff8f2bdb75614cc0a2850/colored-2.2.3-py3-none-any.whl.metadata
  Using cached colored-2.2.3-py3-none-any.whl.metadata (3.6 kB)
Collecting illumina-utils (from -r requirements.txt (line 14))
  Using cached illumina_utils-2.12-py3-none-any.whl
Collecting tabulate (from -r requirements.txt (line 15))
  Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Collecting rich-argparse (from -r requirements.txt (line 16))
  Obtaining dependency information for rich-argparse from https://files.pythonhosted.org/packages/c3/7a/0e398b736af0e37c733294f91907d5f979ca99a9c75f97213b0ab02d9a05/rich_argparse-1.3.0-py3-none-any.whl.metadata
  Using cached rich_argparse-1.3.0-py3-none-any.whl.metadata (11 kB)
Collecting numba (from -r requirements.txt (line 17))
  Obtaining dependency information for numba from https://files.pythonhosted.org/packages/4a/1d/ecc1948837253fd3f7a99b720838602396fcee765d614d1a38e9de15aea7/numba-0.58.0-cp310-cp310-macosx_10_9_x86_64.whl.metadata
  Using cached numba-0.58.0-cp310-cp310-macosx_10_9_x86_64.whl.metadata (2.7 kB)
Collecting paste (from -r requirements.txt (line 18))
  Using cached Paste-3.5.3-py2.py3-none-any.whl (593 kB)
Collecting pyani (from -r requirements.txt (line 19))
  Using cached pyani-0.2.12-py3-none-any.whl (59 kB)
Collecting psutil (from -r requirements.txt (line 20))
  Using cached psutil-5.9.5-cp36-abi3-macosx_10_9_x86_64.whl (245 kB)
Collecting pandas==1.4.4 (from -r requirements.txt (line 21))
  Using cached pandas-1.4.4-cp310-cp310-macosx_10_9_x86_64.whl (11.5 MB)
Collecting snakemake (from -r requirements.txt (line 22))
  Using cached snakemake-7.32.4-py3-none-any.whl
Collecting multiprocess (from -r requirements.txt (line 23))
  Obtaining dependency information for multiprocess from https://files.pythonhosted.org/packages/35/a8/36d8d7b3e46b377800d8dec47891cdf05842d1a2366909ae4a0c89fbc5e6/multiprocess-0.70.15-py310-none-any.whl.metadata
  Using cached multiprocess-0.70.15-py310-none-any.whl.metadata (7.2 kB)
Collecting plotext (from -r requirements.txt (line 24))
  Using cached plotext-5.2.8-py3-none-any.whl (60 kB)
Collecting joblib>=1.1.1 (from scikit-learn==1.2.2->-r requirements.txt (line 6))
  Obtaining dependency information for joblib>=1.1.1 from https://files.pythonhosted.org/packages/10/40/d551139c85db202f1f384ba8bcf96aca2f329440a844f924c8a0040b6d02/joblib-1.3.2-py3-none-any.whl.metadata
  Using cached joblib-1.3.2-py3-none-any.whl.metadata (5.4 kB)
Collecting threadpoolctl>=2.0.0 (from scikit-learn==1.2.2->-r requirements.txt (line 6))
  Obtaining dependency information for threadpoolctl>=2.0.0 from https://files.pythonhosted.org/packages/81/12/fd4dea011af9d69e1cad05c75f3f7202cdcbeac9b712eea58ca779a72865/threadpoolctl-3.2.0-py3-none-any.whl.metadata
  Using cached threadpoolctl-3.2.0-py3-none-any.whl.metadata (10.0 kB)
Collecting python-dateutil>=2.8.1 (from pandas==1.4.4->-r requirements.txt (line 21))
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting pytz>=2020.1 (from pandas==1.4.4->-r requirements.txt (line 21))
  Obtaining dependency information for pytz>=2020.1 from https://files.pythonhosted.org/packages/32/4d/aaf7eff5deb402fd9a24a1449a8119f00d74ae9c2efa79f8ef9994261fc2/pytz-2023.3.post1-py2.py3-none-any.whl.metadata
  Using cached pytz-2023.3.post1-py2.py3-none-any.whl.metadata (22 kB)
Collecting cython (from pysam->-r requirements.txt (line 4))
  Obtaining dependency information for cython from https://files.pythonhosted.org/packages/bc/bb/6a855a90e52f951e88612609cbd7dd928ec73514b18685944476748fbc10/Cython-3.0.2-cp310-cp310-macosx_10_9_x86_64.whl.metadata
  Using cached Cython-3.0.2-cp310-cp310-macosx_10_9_x86_64.whl.metadata (3.1 kB)
Collecting asgiref<4,>=3.6.0 (from django->-r requirements.txt (line 7))
  Obtaining dependency information for asgiref<4,>=3.6.0 from https://files.pythonhosted.org/packages/9b/80/b9051a4a07ad231558fcd8ffc89232711b4e618c15cb7a392a17384bbeef/asgiref-3.7.2-py3-none-any.whl.metadata
  Using cached asgiref-3.7.2-py3-none-any.whl.metadata (9.2 kB)
Collecting sqlparse>=0.3.1 (from django->-r requirements.txt (line 7))
  Using cached sqlparse-0.4.4-py3-none-any.whl (41 kB)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/Caskroom/miniconda/base/envs/anvio-dev/lib/python3.10/site-packages (from requests->-r requirements.txt (line 8)) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/Caskroom/miniconda/base/envs/anvio-dev/lib/python3.10/site-packages (from requests->-r requirements.txt (line 8)) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/Caskroom/miniconda/base/envs/anvio-dev/lib/python3.10/site-packages (from requests->-r requirements.txt (line 8)) (2.0.5)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/Caskroom/miniconda/base/envs/anvio-dev/lib/python3.10/site-packages (from requests->-r requirements.txt (line 8)) (2023.7.22)
Collecting contourpy>=1.0.1 (from matplotlib->-r requirements.txt (line 11))
  Obtaining dependency information for contourpy>=1.0.1 from https://files.pythonhosted.org/packages/fb/7f/c44a51a83a093bf5c84e07dd1e3cfe9f68c47b6499bd05a9de0c6dbdc2bc/contourpy-1.1.1-cp310-cp310-macosx_10_9_x86_64.whl.metadata
  Using cached contourpy-1.1.1-cp310-cp310-macosx_10_9_x86_64.whl.metadata (5.9 kB)
Collecting cycler>=0.10 (from matplotlib->-r requirements.txt (line 11))
  Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting fonttools>=4.22.0 (from matplotlib->-r requirements.txt (line 11))
  Obtaining dependency information for fonttools>=4.22.0 from https://files.pythonhosted.org/packages/ad/33/b159873016ac8998d10212ef3ad9a28456452dcb9f963a21007403a0f81d/fonttools-4.42.1-cp310-cp310-macosx_10_9_x86_64.whl.metadata
  Using cached fonttools-4.42.1-cp310-cp310-macosx_10_9_x86_64.whl.metadata (150 kB)
Collecting kiwisolver>=1.0.1 (from matplotlib->-r requirements.txt (line 11))
  Obtaining dependency information for kiwisolver>=1.0.1 from https://files.pythonhosted.org/packages/0e/c1/d084f8edb26533a191415d5173157080837341f9a06af9dd1a75f727abb4/kiwisolver-1.4.5-cp310-cp310-macosx_10_9_x86_64.whl.metadata
  Using cached kiwisolver-1.4.5-cp310-cp310-macosx_10_9_x86_64.whl.metadata (6.4 kB)
Requirement already satisfied: packaging>=20.0 in /usr/local/Caskroom/miniconda/base/envs/anvio-dev/lib/python3.10/site-packages (from matplotlib->-r requirements.txt (line 11)) (23.1)
Collecting pillow>=6.2.0 (from matplotlib->-r requirements.txt (line 11))
  Obtaining dependency information for pillow>=6.2.0 from https://files.pythonhosted.org/packages/8c/34/4e02804420b1cd9371ce5f7c0da7024a8450e6b092c336d3233d6c6448d9/Pillow-10.0.1-cp310-cp310-macosx_10_10_x86_64.whl.metadata
  Using cached Pillow-10.0.1-cp310-cp310-macosx_10_10_x86_64.whl.metadata (9.5 kB)
Collecting pyparsing>=2.3.1 (from matplotlib->-r requirements.txt (line 11))
  Obtaining dependency information for pyparsing>=2.3.1 from https://files.pythonhosted.org/packages/39/92/8486ede85fcc088f1b3dba4ce92dd29d126fd96b0008ea213167940a2475/pyparsing-3.1.1-py3-none-any.whl.metadata
  Using cached pyparsing-3.1.1-py3-none-any.whl.metadata (5.1 kB)
Collecting patsy>=0.5.2 (from statsmodels->-r requirements.txt (line 12))
  Using cached patsy-0.5.3-py2.py3-none-any.whl (233 kB)
Collecting python-Levenshtein (from illumina-utils->-r requirements.txt (line 14))
  Obtaining dependency information for python-Levenshtein from https://files.pythonhosted.org/packages/ae/9c/208f8ad7eb38492ac4f829790a500bcfca88b1d0a1c988f6480a52a6f681/python_Levenshtein-0.21.1-py3-none-any.whl.metadata
  Using cached python_Levenshtein-0.21.1-py3-none-any.whl.metadata (3.8 kB)
Collecting rich>=11.0.0 (from rich-argparse->-r requirements.txt (line 16))
  Obtaining dependency information for rich>=11.0.0 from https://files.pythonhosted.org/packages/c1/d1/23ba6235ed82883bb416f57179d1db2c05f3fb8e5d83c18660f9ab6f09c9/rich-13.5.3-py3-none-any.whl.metadata
  Using cached rich-13.5.3-py3-none-any.whl.metadata (18 kB)
Collecting llvmlite<0.42,>=0.41.0dev0 (from numba->-r requirements.txt (line 17))
  Obtaining dependency information for llvmlite<0.42,>=0.41.0dev0 from https://files.pythonhosted.org/packages/f8/86/6ccfede8416d5a32faef1b778767b0d49d8e8e8c63508b02d8ef87a81643/llvmlite-0.41.0-cp310-cp310-macosx_10_9_x86_64.whl.metadata
  Using cached llvmlite-0.41.0-cp310-cp310-macosx_10_9_x86_64.whl.metadata (4.8 kB)
Requirement already satisfied: setuptools in /usr/local/Caskroom/miniconda/base/envs/anvio-dev/lib/python3.10/site-packages (from paste->-r requirements.txt (line 18)) (68.2.2)
Collecting biopython (from pyani->-r requirements.txt (line 19))
  Using cached biopython-1.81-cp310-cp310-macosx_10_9_x86_64.whl (2.7 MB)
Collecting seaborn (from pyani->-r requirements.txt (line 19))
  Using cached seaborn-0.12.2-py3-none-any.whl (293 kB)
Collecting appdirs (from snakemake->-r requirements.txt (line 22))
  Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting configargparse (from snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for configargparse from https://files.pythonhosted.org/packages/6f/b3/b4ac838711fd74a2b4e6f746703cf9dd2cf5462d17dac07e349234e21b97/ConfigArgParse-1.7-py3-none-any.whl.metadata
  Using cached ConfigArgParse-1.7-py3-none-any.whl.metadata (23 kB)
Collecting connection-pool>=0.0.3 (from snakemake->-r requirements.txt (line 22))
  Using cached connection_pool-0.0.3-py3-none-any.whl
Collecting datrie (from snakemake->-r requirements.txt (line 22))
  Using cached datrie-0.8.2.tar.gz (63 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting docutils (from snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for docutils from https://files.pythonhosted.org/packages/26/87/f238c0670b94533ac0353a4e2a1a771a0cc73277b88bff23d3ae35a256c1/docutils-0.20.1-py3-none-any.whl.metadata
  Using cached docutils-0.20.1-py3-none-any.whl.metadata (2.8 kB)
Collecting gitpython (from snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for gitpython from https://files.pythonhosted.org/packages/8a/7e/20f7e45878b5aed34320fbeeae8f78acc806e7bd708d00b1c6e64b016f5b/GitPython-3.1.37-py3-none-any.whl.metadata
  Using cached GitPython-3.1.37-py3-none-any.whl.metadata (12 kB)
Collecting humanfriendly (from snakemake->-r requirements.txt (line 22))
  Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Collecting jinja2<4.0,>=3.0 (from snakemake->-r requirements.txt (line 22))
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting jsonschema (from snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for jsonschema from https://files.pythonhosted.org/packages/0f/bf/a84bc75f069f4f156e1c0d9892fb7325945106c6ecaad9f29d24360872af/jsonschema-4.19.1-py3-none-any.whl.metadata
  Using cached jsonschema-4.19.1-py3-none-any.whl.metadata (7.9 kB)
Collecting nbformat (from snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for nbformat from https://files.pythonhosted.org/packages/f4/e7/ef30a90b70eba39e675689b9eaaa92530a71d7435ab8f9cae520814e0caf/nbformat-5.9.2-py3-none-any.whl.metadata
  Using cached nbformat-5.9.2-py3-none-any.whl.metadata (3.4 kB)
Collecting pulp>=2.0 (from snakemake->-r requirements.txt (line 22))
  Using cached PuLP-2.7.0-py3-none-any.whl (14.3 MB)
Collecting pyyaml (from snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for pyyaml from https://files.pythonhosted.org/packages/96/06/4beb652c0fe16834032e54f0956443d4cc797fe645527acee59e7deaa0a2/PyYAML-6.0.1-cp310-cp310-macosx_10_9_x86_64.whl.metadata
  Using cached PyYAML-6.0.1-cp310-cp310-macosx_10_9_x86_64.whl.metadata (2.1 kB)
Collecting reretry (from snakemake->-r requirements.txt (line 22))
  Using cached reretry-0.11.8-py2.py3-none-any.whl (5.6 kB)
Collecting smart-open>=3.0 (from snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for smart-open>=3.0 from https://files.pythonhosted.org/packages/fc/d9/d97f1db64b09278aba64e8c81b5d322d436132df5741c518f3823824fae0/smart_open-6.4.0-py3-none-any.whl.metadata
  Using cached smart_open-6.4.0-py3-none-any.whl.metadata (21 kB)
Collecting stopit (from snakemake->-r requirements.txt (line 22))
  Using cached stopit-1.1.2-py3-none-any.whl
Collecting throttler (from snakemake->-r requirements.txt (line 22))
  Using cached throttler-1.2.2-py3-none-any.whl (7.6 kB)
Collecting toposort>=1.10 (from snakemake->-r requirements.txt (line 22))
  Using cached toposort-1.10-py3-none-any.whl (8.5 kB)
Collecting wrapt (from snakemake->-r requirements.txt (line 22))
  Using cached wrapt-1.15.0-cp310-cp310-macosx_10_9_x86_64.whl (35 kB)
Collecting yte<2.0,>=1.5.1 (from snakemake->-r requirements.txt (line 22))
  Using cached yte-1.5.1-py3-none-any.whl (7.5 kB)
Collecting dill>=0.3.7 (from multiprocess->-r requirements.txt (line 23))
  Obtaining dependency information for dill>=0.3.7 from https://files.pythonhosted.org/packages/f5/3a/74a29b11cf2cdfcd6ba89c0cecd70b37cd1ba7b77978ce611eb7a146a832/dill-0.3.7-py3-none-any.whl.metadata
  Using cached dill-0.3.7-py3-none-any.whl.metadata (9.9 kB)
Collecting typing-extensions>=4 (from asgiref<4,>=3.6.0->django->-r requirements.txt (line 7))
  Obtaining dependency information for typing-extensions>=4 from https://files.pythonhosted.org/packages/24/21/7d397a4b7934ff4028987914ac1044d3b7d52712f30e2ac7a2ae5bc86dd0/typing_extensions-4.8.0-py3-none-any.whl.metadata
  Using cached typing_extensions-4.8.0-py3-none-any.whl.metadata (3.0 kB)
Collecting MarkupSafe>=2.0 (from jinja2<4.0,>=3.0->snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for MarkupSafe>=2.0 from https://files.pythonhosted.org/packages/f7/9c/86cbd8e0e1d81f0ba420f20539dd459c50537c7751e28102dbfee2b6f28c/MarkupSafe-2.1.3-cp310-cp310-macosx_10_9_x86_64.whl.metadata
  Using cached MarkupSafe-2.1.3-cp310-cp310-macosx_10_9_x86_64.whl.metadata (3.0 kB)
Collecting markdown-it-py>=2.2.0 (from rich>=11.0.0->rich-argparse->-r requirements.txt (line 16))
  Obtaining dependency information for markdown-it-py>=2.2.0 from https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl.metadata
  Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=11.0.0->rich-argparse->-r requirements.txt (line 16))
  Obtaining dependency information for pygments<3.0.0,>=2.13.0 from https://files.pythonhosted.org/packages/43/88/29adf0b44ba6ac85045e63734ae0997d3c58d8b1a91c914d240828d0d73d/Pygments-2.16.1-py3-none-any.whl.metadata
  Using cached Pygments-2.16.1-py3-none-any.whl.metadata (2.5 kB)
Collecting dpath<3.0,>=2.0 (from yte<2.0,>=1.5.1->snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for dpath<3.0,>=2.0 from https://files.pythonhosted.org/packages/84/c8/10c2d41a0958b76e777c07a521d64c871ab9022520babb3e08fa7eeb0810/dpath-2.1.6-py3-none-any.whl.metadata
  Using cached dpath-2.1.6-py3-none-any.whl.metadata (15 kB)
Collecting plac<2.0.0,>=1.3.4 (from yte<2.0,>=1.5.1->snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for plac<2.0.0,>=1.3.4 from https://files.pythonhosted.org/packages/04/dc/dbfd39a0c9813371204941e3d731dbe832cf8dc462c287e530b9736150be/plac-1.4.0-py2.py3-none-any.whl.metadata
  Using cached plac-1.4.0-py2.py3-none-any.whl.metadata (5.4 kB)
Collecting gitdb<5,>=4.0.1 (from gitpython->snakemake->-r requirements.txt (line 22))
  Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)
Collecting attrs>=22.2.0 (from jsonschema->snakemake->-r requirements.txt (line 22))
  Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema->snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for jsonschema-specifications>=2023.03.6 from https://files.pythonhosted.org/packages/1c/24/83349ac2189cc2435e84da3f69ba3c97314d3c0622628e55171c6798ed80/jsonschema_specifications-2023.7.1-py3-none-any.whl.metadata
  Using cached jsonschema_specifications-2023.7.1-py3-none-any.whl.metadata (2.8 kB)
Collecting referencing>=0.28.4 (from jsonschema->snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for referencing>=0.28.4 from https://files.pythonhosted.org/packages/be/8e/56d6f1e2d591f4d6cbcba446cac4a1b0dc4f584537e2071d9bcee8eeab6b/referencing-0.30.2-py3-none-any.whl.metadata
  Using cached referencing-0.30.2-py3-none-any.whl.metadata (2.6 kB)
Collecting rpds-py>=0.7.1 (from jsonschema->snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for rpds-py>=0.7.1 from https://files.pythonhosted.org/packages/bb/da/1a4199a2b80737c3c96d698614a17c27d2c7abb30e7deeabccf4e925108b/rpds_py-0.10.3-cp310-cp310-macosx_10_7_x86_64.whl.metadata
  Using cached rpds_py-0.10.3-cp310-cp310-macosx_10_7_x86_64.whl.metadata (3.7 kB)
Collecting fastjsonschema (from nbformat->snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for fastjsonschema from https://files.pythonhosted.org/packages/9d/93/a3ca3cdeb84065d7d8f8df4cb09ab44405f109183c1d2b915ec17574e6b1/fastjsonschema-2.18.0-py3-none-any.whl.metadata
  Using cached fastjsonschema-2.18.0-py3-none-any.whl.metadata (2.0 kB)
Collecting jupyter-core (from nbformat->snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for jupyter-core from https://files.pythonhosted.org/packages/8c/e0/3f9061c5e99a03612510f892647b15a91f910c5275b7b77c6c72edae1494/jupyter_core-5.3.1-py3-none-any.whl.metadata
  Using cached jupyter_core-5.3.1-py3-none-any.whl.metadata (3.4 kB)
Collecting traitlets>=5.1 (from nbformat->snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for traitlets>=5.1 from https://files.pythonhosted.org/packages/fb/00/78472b256929614443c3fa3be31ee60777e5a9e3c6770d8d934154aa2cab/traitlets-5.10.0-py3-none-any.whl.metadata
  Using cached traitlets-5.10.0-py3-none-any.whl.metadata (10 kB)
Collecting Levenshtein==0.21.1 (from python-Levenshtein->illumina-utils->-r requirements.txt (line 14))
  Obtaining dependency information for Levenshtein==0.21.1 from https://files.pythonhosted.org/packages/02/af/2a3c369cfd715eedc32e29055998c7782f4971306c8a2cc6bbd39c121387/Levenshtein-0.21.1-cp310-cp310-macosx_10_9_x86_64.whl.metadata
  Using cached Levenshtein-0.21.1-cp310-cp310-macosx_10_9_x86_64.whl.metadata (3.4 kB)
Collecting rapidfuzz<4.0.0,>=2.3.0 (from Levenshtein==0.21.1->python-Levenshtein->illumina-utils->-r requirements.txt (line 14))
  Obtaining dependency information for rapidfuzz<4.0.0,>=2.3.0 from https://files.pythonhosted.org/packages/fe/58/9322fc8720cfd5a364100c632d50eaa436fdc4831c9246146b69677c935b/rapidfuzz-3.3.1-cp310-cp310-macosx_10_9_x86_64.whl.metadata
  Using cached rapidfuzz-3.3.1-cp310-cp310-macosx_10_9_x86_64.whl.metadata (11 kB)
Collecting numpy<=1.24 (from -r requirements.txt (line 1))
  Using cached numpy-1.23.5-cp310-cp310-macosx_10_9_x86_64.whl (18.1 MB)
Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython->snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for smmap<6,>=3.0.1 from https://files.pythonhosted.org/packages/a7/a5/10f97f73544edcdef54409f1d839f6049a0d79df68adbc1ceb24d1aaca42/smmap-5.0.1-py3-none-any.whl.metadata
  Using cached smmap-5.0.1-py3-none-any.whl.metadata (4.3 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=11.0.0->rich-argparse->-r requirements.txt (line 16))
  Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting platformdirs>=2.5 (from jupyter-core->nbformat->snakemake->-r requirements.txt (line 22))
  Obtaining dependency information for platformdirs>=2.5 from https://files.pythonhosted.org/packages/14/51/fe5a0d6ea589f0d4a1b97824fb518962ad48b27cd346dcdfa2405187997a/platformdirs-3.10.0-py3-none-any.whl.metadata
  Using cached platformdirs-3.10.0-py3-none-any.whl.metadata (11 kB)
Using cached scipy-1.11.2-cp310-cp310-macosx_10_9_x86_64.whl (37.2 MB)
Using cached Django-4.2.5-py3-none-any.whl (8.0 MB)
Using cached mistune-3.0.1-py3-none-any.whl (47 kB)
Using cached matplotlib-3.8.0-cp310-cp310-macosx_10_12_x86_64.whl (7.6 MB)
Using cached colored-2.2.3-py3-none-any.whl (16 kB)
Using cached rich_argparse-1.3.0-py3-none-any.whl (17 kB)
Using cached numba-0.58.0-cp310-cp310-macosx_10_9_x86_64.whl (2.6 MB)
Using cached multiprocess-0.70.15-py310-none-any.whl (134 kB)
Using cached asgiref-3.7.2-py3-none-any.whl (24 kB)
Using cached contourpy-1.1.1-cp310-cp310-macosx_10_9_x86_64.whl (247 kB)
Using cached dill-0.3.7-py3-none-any.whl (115 kB)
Using cached fonttools-4.42.1-cp310-cp310-macosx_10_9_x86_64.whl (2.2 MB)
Using cached joblib-1.3.2-py3-none-any.whl (302 kB)
Using cached kiwisolver-1.4.5-cp310-cp310-macosx_10_9_x86_64.whl (68 kB)
Using cached llvmlite-0.41.0-cp310-cp310-macosx_10_9_x86_64.whl (31.0 MB)
Using cached Pillow-10.0.1-cp310-cp310-macosx_10_10_x86_64.whl (3.7 MB)
Using cached pyparsing-3.1.1-py3-none-any.whl (103 kB)
Using cached pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
Using cached rich-13.5.3-py3-none-any.whl (239 kB)
Using cached smart_open-6.4.0-py3-none-any.whl (57 kB)
Using cached threadpoolctl-3.2.0-py3-none-any.whl (15 kB)
Using cached PyYAML-6.0.1-cp310-cp310-macosx_10_9_x86_64.whl (189 kB)
Using cached ConfigArgParse-1.7-py3-none-any.whl (25 kB)
Using cached Cython-3.0.2-cp310-cp310-macosx_10_9_x86_64.whl (3.1 MB)
Using cached docutils-0.20.1-py3-none-any.whl (572 kB)
Using cached GitPython-3.1.37-py3-none-any.whl (190 kB)
Using cached jsonschema-4.19.1-py3-none-any.whl (83 kB)
Using cached nbformat-5.9.2-py3-none-any.whl (77 kB)
Using cached python_Levenshtein-0.21.1-py3-none-any.whl (9.4 kB)
Using cached Levenshtein-0.21.1-cp310-cp310-macosx_10_9_x86_64.whl (132 kB)
Using cached dpath-2.1.6-py3-none-any.whl (17 kB)
Using cached jsonschema_specifications-2023.7.1-py3-none-any.whl (17 kB)
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Using cached MarkupSafe-2.1.3-cp310-cp310-macosx_10_9_x86_64.whl (13 kB)
Using cached plac-1.4.0-py2.py3-none-any.whl (22 kB)
Using cached Pygments-2.16.1-py3-none-any.whl (1.2 MB)
Using cached referencing-0.30.2-py3-none-any.whl (25 kB)
Using cached rpds_py-0.10.3-cp310-cp310-macosx_10_7_x86_64.whl (333 kB)
Using cached traitlets-5.10.0-py3-none-any.whl (120 kB)
Using cached typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Using cached fastjsonschema-2.18.0-py3-none-any.whl (23 kB)
Using cached jupyter_core-5.3.1-py3-none-any.whl (93 kB)
Using cached platformdirs-3.10.0-py3-none-any.whl (17 kB)
Using cached rapidfuzz-3.3.1-cp310-cp310-macosx_10_9_x86_64.whl (2.5 MB)
Using cached smmap-5.0.1-py3-none-any.whl (24 kB)
Building wheels for collected packages: datrie
  Building wheel for datrie (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for datrie (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      running bdist_wheel
      running build
      running build_clib
      building 'datrie' library
      creating build
      creating build/temp.macosx-10.9-x86_64-cpython-310
      creating build/temp.macosx-10.9-x86_64-cpython-310/libdatrie
      creating build/temp.macosx-10.9-x86_64-cpython-310/libdatrie/datrie
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /usr/local/Caskroom/miniconda/base/envs/anvio-dev/include -fPIC -O2 -isystem /usr/local/Caskroom/miniconda/base/envs/anvio-dev/include -Ilibdatrie -c libdatrie/datrie/alpha-map.c -o build/temp.macosx-10.9-x86_64-cpython-310/libdatrie/datrie/alpha-map.o
      libdatrie/datrie/alpha-map.c:27:10: fatal error: 'ctype.h' file not found
      #include <ctype.h>
               ^~~~~~~~~
      1 error generated.
      error: command '/usr/local/Caskroom/miniconda/base/envs/anvio-dev/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for datrie
Failed to build datrie
ERROR: Could not build wheels for datrie, which is required to install pyproject.toml-based projects
ivagljiva commented 11 months ago

@semiller10 , Meren already fixed this problem. Please see the following section from the installation page:

image

We are in the process of updating our installation page to be split into different pages by OS so that the solutions to errors like these are more obvious :)

semiller10 commented 11 months ago

Perfect, should have caught that.

ChunqiJIANG commented 11 months ago

Same error in anvio-8 installation on Mac OSX (pip install anvio-8.tar.gz), can be fixed in the same way, Thanks.

meren commented 11 months ago

Thanks for letting us know, @ChunqiJIANG.

I will make those export statements a mandatory step for macos installation page to avoid further confusion.

ChunqiJIANG commented 11 months ago

Hi, meren

One more thing may need fixation on the installation page (not only Mac OSX I think):

 command 'anvi-setup-kegg-kofams’ at Setup key resource can not be found in anvio v8, seems should be 'anvi-setup-kegg-data’.

Hope to be helpful.

On Sep 29, 2023, at 16:41, A. Murat Eren (Meren) @.***> wrote:

Thanks for letting us know, @ChunqiJIANG https://github.com/ChunqiJIANG.

I will make those export statements a mandatory step for macos installation page to avoid further confusion.

— Reply to this email directly,, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUJGNQFTA7K4BNN33N3FXVLX4Z3TRANCNFSM6AAAAAA5G2VLNM.

https://github.com/merenlab/anvio/issues/2126#issuecomment-1740452638 You are receiving this because you were mentioned.

ivagljiva commented 11 months ago

command 'anvi-setup-kegg-kofams’ at Setup key resource can not be found in anvio v8, seems should be 'anvi-setup-kegg-data’.

I just fixed this one. Thanks @ChunqiJIANG

ac-simpson commented 9 months ago

FYI, I just got the same "ERROR: Failed building wheel for datrie" on our server running a very fresh installation of Ubuntu 22.04, and had to do a separate "mamba install datrie" before installing anvio. Not sure how common this is, but it may be worth including in 'common problems'.

meren commented 9 months ago

Is this for v8 or anvio-dev, @ac-simpson? And how did you solve the issue? By updating the environment variables for CC/CCX?

nelsonruth11 commented 8 months ago

On an HPC, adding the export CC and export CXX commands before pip install anvio-8.tar.gz did not fix the issue, but as @ac-simpson suggested running mamba install datrie before pip installation did.

jronwalker commented 4 months ago

I had the same issue on Fedora 40 using micromamba. The micromamba install datrie fixed the issue.