allenai / allennlp

An open-source NLP research library, built on PyTorch.
http://www.allennlp.org
Apache License 2.0
11.71k stars 2.24k forks source link

Incompatibile packages #5716

Closed ianbstewart closed 1 year ago

ianbstewart commented 1 year ago

Checklist

Description

Trying to install allennlp with conda produces many compatibility issues. I have previously installed allennlp on other machines but this one has proven difficult. It may have to do with pytorch but not entirely sure.

Python traceback:

``` Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: \ Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed - UnsatisfiableError: The following specifications were found to be incompatible with a past explicit spec that is not an explicit spec in this operation (pytorch): - allennlp -> base58 -> python[version='3.8.*|3.9.*|>=3.10,<3.11.0a0|>=3.10,<3.11.0a0|>=3.5|>=3.6|>=3.7|>=3.7.0|>=3.6.0|>=3.4|>=3.7,<4.0|>=3.6,<4.0|>=2.7',build=*_cpython] - allennlp -> fairscale==0.4.6 -> pytorch[version='*|1.10|1.10.*|>=1.10.2,<1.11.0a0|>=1.11.0,<1.12.0a0|1.10.0.*|>=1.8.0|1.10.2',build=cpu*] - allennlp -> python[version='>=3.8,<3.9.0a0|>=3.8,<3.9.0a0|>=3.9,<3.10.0a0',build=*_cpython] - allennlp -> pytorch[version='>=1.6.0,<1.11.0|>=1.6.0,<1.12.0|>=1.8.0,<1.12.0'] - allennlp -> torchvision[version='>=0.8.1,<0.12.0|>=0.8.1,<0.13.0'] - python=3.8 The following specifications were found to be incompatible with each other: Output in format: Requested package -> Available versions Package libiconv conflicts for: libidn2 -> gettext[version='>=0.19.8.1,<1.0a0'] -> libiconv[version='>=1.16,<2.0.0a0|>=1.17,<2.0a0|>=1.16,<2.0a0'] gnutls -> gettext[version='>=0.19.8.1,<1.0a0'] -> libiconv[version='>=1.16,<2.0.0a0|>=1.17,<2.0a0|>=1.16,<2.0a0'] ffmpeg -> libxml2[version='>=2.9.14,<2.11.0a0'] -> libiconv[version='>=1.17,<2.0.0a0'] gettext -> libiconv[version='>=1.16,<2.0.0a0|>=1.17,<2.0a0|>=1.16,<2.0a0'] asttokens -> python[version='>=3.5'] -> libiconv[version='>=1.16,<2.0a0'] libxml2 -> libiconv[version='>=1.16,<2.0.0a0|>=1.17,<2.0.0a0|>=1.16,<2.0a0'] traitlets -> python[version='>=3.7'] -> libiconv[version='>=1.16,<2.0a0'] six -> python -> libiconv[version='>=1.16,<2.0a0'] jedi -> python[version='>=3.6'] -> libiconv[version='>=1.16,<2.0a0'] urllib3 -> python[version='<4.0'] -> libiconv[version='>=1.16,<2.0a0'] pexpect -> python -> libiconv[version='>=1.16,<2.0a0'] certifi -> python[version='>=3.7'] -> libiconv[version='>=1.16,<2.0a0'] stack_data -> python[version='>=3.5'] -> libiconv[version='>=1.16,<2.0a0'] pytorch -> python[version='>=3.9,<3.10.0a0'] -> libiconv[version='>=1.16,<2.0a0'] executing -> python[version='>=2.7'] -> libiconv[version='>=1.16,<2.0a0'] pyopenssl -> python[version='>=3.6'] -> libiconv[version='>=1.16,<2.0a0'] numpy-base -> python[version='>=3.9,<3.10.0a0'] -> libiconv[version='>=1.16,<2.0a0'] wcwidth -> python -> libiconv[version='>=1.16,<2.0a0'] charset-normalizer -> python[version='>=3.6'] -> libiconv[version='>=1.16,<2.0a0'] numpy -> python[version='>=3.9,<3.10.0a0'] -> libiconv[version='>=1.16,<2.0a0'] backcall -> python -> libiconv[version='>=1.16,<2.0a0'] pure_eval -> python[version='>=3.5'] -> libiconv[version='>=1.16,<2.0a0'] allennlp -> python[version='>=3.9,<3.10.0a0'] -> libiconv[version='>=1.16,<2.0a0'] wheel -> python[version='!=3.0,!=3.1,!=3.2,!=3.3,!=3.4'] -> libiconv[version='>=1.16,<2.0a0'] ipython -> python[version='>=3.8'] -> libiconv[version='>=1.16,<2.0a0'] requests -> python[version='>=3.7,<4.0'] -> libiconv[version='>=1.16,<2.0a0'] brotlipy -> python[version='>=3.9,<3.10.0a0'] -> libiconv[version='>=1.16,<2.0a0'] pysocks -> python[version='>=3.8'] -> libiconv[version='>=1.16,<2.0a0'] ffmpeg -> libiconv[version='>=1.16,<2.0.0a0|>=1.17,<2.0a0|>=1.16,<2.0a0'] pip -> python[version='>=3.7'] -> libiconv[version='>=1.16,<2.0a0'] matplotlib-inline -> python[version='>=3.6'] -> libiconv[version='>=1.16,<2.0a0'] pygments -> python[version='>=3.6'] -> libiconv[version='>=1.16,<2.0a0'] pycparser -> python[version='2.7.*|>=3.4'] -> libiconv[version='>=1.16,<2.0a0'] cffi -> python[version='>=3.9,<3.10.0a0'] -> libiconv[version='>=1.16,<2.0a0'] setuptools -> python[version='>=3.7'] -> libiconv[version='>=1.16,<2.0a0'] appnope -> python[version='>=2.7'] -> libiconv[version='>=1.16,<2.0a0'] idna -> python[version='>=3.6'] -> libiconv[version='>=1.16,<2.0a0'] typing_extensions -> python[version='>=3.7'] -> libiconv[version='>=1.16,<2.0a0'] ptyprocess -> python -> libiconv[version='>=1.16,<2.0a0'] parso -> python[version='>=3.6'] -> libiconv[version='>=1.16,<2.0a0'] libiconv decorator -> python[version='>=3.5'] -> libiconv[version='>=1.16,<2.0a0'] pickleshare -> python[version='>=3'] -> libiconv[version='>=1.16,<2.0a0'] lame -> libiconv[version='>=1.16,<2.0a0'] prompt-toolkit -> python[version='>=3.6'] -> libiconv[version='>=1.16,<2.0a0'] cryptography -> python[version='>=3.9,<3.10.0a0'] -> libiconv[version='>=1.16,<2.0a0'] torchvision -> python[version='>=3.9,<3.10.0a0'] -> libiconv[version='>=1.16,<2.0.0a0|>=1.16,<2.0a0|>=1.17,<2.0a0'] ... ```

Related issues or possible duplicates

Environment

OS: Mac OS Monterey, M1 MacBook Pro

Python version: 3.8.13

Output of pip freeze:

``` appnope asttokens backcall brotlipy==0.7.0 certifi cffi charset-normalizer cryptography decorator executing idna ipython jedi matplotlib-inline numpy parso pexpect pickleshare Pillow==9.2.0 prompt-toolkit ptyprocess pure-eval pycparser Pygments pyOpenSSL PySocks requests six stack-data torch==1.12.1 torchaudio==0.12.1 torchvision==0.13.1 traitlets typing_extensions urllib3 wcwidth ```

Steps to reproduce

Example source:

``` conda create -n allennlp_env python=3.8 conda activate allennlp_env conda install pytorch torchvision torchaudio -c pytorch conda install -c conda-forge python=3.8 allennlp ```

github-actions[bot] commented 1 year ago

@dirkgr this is just a friendly ping to make sure you haven't forgotten about this issue 😜

ianbstewart commented 1 year ago

No longer a problem, thanks!