ContinuumIO / anaconda-issues

Anaconda issue tracking
646 stars 220 forks source link

tensorflow looking for opt-einsum instead opt_einsum #11914

Open flomock opened 4 years ago

flomock commented 4 years ago

Actual Behavior

pkg_resources.ContextualVersionConflict: (opt-einsum 0+untagged.56.g2664021.dirty (/home/go96bix/programs/conda/envs/vidhop_test/lib/python3.7/site-packages), Requirement.parse('opt-einsum>=2.3.2'), {'tensorflow'}) tensorflow 2.2.0 expects opt-einsum>=2.3.2 But the real name of the package is opt_einsum . There is a version falsely named 3.0.0, but this version only works with scipy 1.4.1 but your package installs version 1.5.

Expected Behavior

Fix the naming, I think then the environment solving works as expected.

Steps to Reproduce

conda install -c tensorflow

Anaconda or Miniconda version:
Operating System:
conda info
``` active environment : vidhop_test active env location : /home/go96bix/programs/conda/envs/vidhop_test shell level : 2 user config file : /home/go96bix/.condarc populated config files : /home/go96bix/.condarc conda version : 4.8.3 conda-build version : 3.18.11 python version : 2.7.15.final.0 virtual packages : __glibc=2.24 base environment : /home/go96bix/programs/conda (writable) channel URLs : https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch https://conda.anaconda.org/bioconda/linux-64 https://conda.anaconda.org/bioconda/noarch https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /home/go96bix/programs/conda/pkgs /home/go96bix/.conda/pkgs envs directories : /home/go96bix/programs/conda/envs /home/go96bix/.conda/envs platform : linux-64 user-agent : conda/4.8.3 requests/2.23.0 CPython/2.7.15 Linux/4.9.0-12-amd64 debian/9.12 glibc/2.24 UID:GID : 11794:2904 netrc file : None offline mode : False ```
conda list --show-channel-urls
``` # packages in environment at /home/go96bix/programs/conda/envs/vidhop_test: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 1_llvm conda-forge _tflow_select 2.3.0 mkl anaconda absl-py 0.9.0 py37_0 anaconda astunparse 1.6.3 py_0 anaconda blas 2.17 openblas conda-forge blinker 1.4 py37_0 anaconda brotlipy 0.7.0 py37h7b6447c_1000 anaconda c-ares 1.15.0 h7b6447c_1001 anaconda ca-certificates 2020.6.24 0 anaconda cachetools 4.1.0 py_1 anaconda certifi 2020.6.20 py37_0 anaconda cffi 1.14.0 py37h2e261b9_0 anaconda chardet 3.0.4 py37_1003 anaconda click 7.1.2 py_0 anaconda cryptography 2.9.2 py37h1ba5d50_0 anaconda gast 0.3.3 py_0 anaconda google-auth 1.14.1 py_0 anaconda google-auth-oauthlib 0.4.1 py_2 anaconda google-pasta 0.2.0 py_0 anaconda grpcio 1.27.2 py37hf8bcb03_0 anaconda h5py 2.10.0 py37hd6299e0_1 anaconda hdf5 1.10.6 hb1b8bf9_0 anaconda idna 2.10 py_0 anaconda keras-preprocessing 1.1.0 py_1 anaconda ld_impl_linux-64 2.34 h53a641e_5 conda-forge libblas 3.8.0 17_openblas conda-forge libcblas 3.8.0 17_openblas conda-forge libffi 3.2.1 he1b5a44_1007 conda-forge libgcc-ng 9.2.0 h24d8f2e_2 conda-forge libgfortran-ng 7.5.0 hdf63c60_6 conda-forge liblapack 3.8.0 17_openblas conda-forge liblapacke 3.8.0 17_openblas conda-forge libopenblas 0.3.10 h5ec1e0e_0 conda-forge libprotobuf 3.12.3 hd408876_0 anaconda libstdcxx-ng 9.2.0 hdf63c60_2 conda-forge llvm-openmp 10.0.0 hc9558a2_0 conda-forge markdown 3.1.1 py37_0 anaconda ncurses 6.1 hf484d3e_1002 conda-forge numpy 1.18.5 py37h8960a57_0 conda-forge oauthlib 3.1.0 py_0 anaconda openssl 1.1.1g h7b6447c_0 anaconda opt-einsum 3.0.0 py_0 conda-forge opt_einsum 3.1.0 py_0 anaconda pip 20.1.1 py_1 conda-forge protobuf 3.12.3 py37he6710b0_0 anaconda pyasn1 0.4.8 py_0 anaconda pyasn1-modules 0.2.7 py_0 anaconda pycparser 2.20 py_0 anaconda pyjwt 1.7.1 py37_0 anaconda pyopenssl 19.1.0 py37_0 anaconda pysocks 1.7.1 py37_0 anaconda python 3.7.6 cpython_h8356626_6 conda-forge python_abi 3.7 1_cp37m conda-forge readline 8.0 hf8c457e_0 conda-forge requests 2.24.0 py_0 anaconda requests-oauthlib 1.3.0 py_0 anaconda rsa 4.0 py_0 anaconda scipy 1.4.1 py37habc2bb6_0 defaults setuptools 49.1.0 py37hc8dfbb8_0 conda-forge six 1.15.0 py_0 anaconda sqlite 3.32.3 hcee41ef_0 conda-forge tensorboard 2.2.1 pyh532a8cf_0 anaconda tensorboard-plugin-wit 1.6.0 py_0 anaconda tensorflow 2.2.0 mkl_py37h6e9ce2d_0 anaconda tensorflow-base 2.2.0 mkl_py37hd506778_0 anaconda tensorflow-estimator 2.2.0 pyh208ff02_0 anaconda termcolor 1.1.0 py37_1 anaconda tk 8.6.10 hed695b0_0 conda-forge urllib3 1.25.9 py_0 anaconda werkzeug 1.0.1 py_0 anaconda wheel 0.34.2 py_1 conda-forge wrapt 1.12.1 py37h7b6447c_1 anaconda xz 5.2.5 h516909a_0 conda-forge zlib 1.2.11 h516909a_1006 conda-forge ```
jjhelmus commented 4 years ago

You look to have both opt-einsum and opt_einsum installed with different versions. The former is coming from conda-forge. If you create an environment using only packages from the anaconda or defaults channels does this problem persist?

flomock commented 4 years ago

Seams that only opt_einsum is installed, but then I get the error: pkg_resources.ContextualVersionConflict: (scipy 1.5.0 (/home/go96bix/programs/conda/envs/vidhop_test/lib/python3.7/site-packages), Requirement.parse('scipy==1.4.1; python_version >= "3"'), {'tensorflow'}) seems like one of my packages expects scipy 1.4.1 but that requirement has not been part of the environment requirements during installation. But I'm not sure where this requirement is coming from, maybe it's not from the tensorflow package.

conda list --show-channel-urls
``` # packages in environment at /home/go96bix/programs/conda/envs/vidhop_test: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 0_gnu conda-forge _tflow_select 2.3.0 mkl anaconda absl-py 0.9.0 py37_0 anaconda astunparse 1.6.3 py_0 anaconda blas 1.0 mkl anaconda blinker 1.4 py37_0 anaconda brotlipy 0.7.0 py37h7b6447c_1000 anaconda c-ares 1.15.0 h7b6447c_1001 anaconda ca-certificates 2020.6.24 0 anaconda cachetools 4.1.0 py_1 anaconda certifi 2020.6.20 py37_0 anaconda cffi 1.14.0 py37h2e261b9_0 anaconda chardet 3.0.4 py37_1003 anaconda click 7.1.2 py_0 anaconda cryptography 2.9.2 py37h1ba5d50_0 anaconda cycler 0.10.0 py37_0 anaconda dbus 1.13.12 h746ee38_0 anaconda expat 2.2.9 he6710b0_2 anaconda fontconfig 2.13.0 h9420a91_0 anaconda freetype 2.10.2 h5ab3b9f_0 anaconda gast 0.3.3 py_0 anaconda glib 2.56.2 hd408876_0 anaconda google-auth 1.14.1 py_0 anaconda google-auth-oauthlib 0.4.1 py_2 anaconda google-pasta 0.2.0 py_0 anaconda grpcio 1.27.2 py37hf8bcb03_0 anaconda gst-plugins-base 1.14.0 hbbd80ab_1 anaconda gstreamer 1.14.0 hb453b48_1 anaconda h5py 2.10.0 py37hd6299e0_1 anaconda hdf5 1.10.6 hb1b8bf9_0 anaconda icu 58.2 he6710b0_3 anaconda idna 2.10 py_0 anaconda intel-openmp 2020.1 217 anaconda joblib 0.15.1 py_0 anaconda jpeg 9b habf39ab_1 anaconda keras-preprocessing 1.1.0 py_1 anaconda kiwisolver 1.2.0 py37hfd86e86_0 anaconda ld_impl_linux-64 2.34 h53a641e_5 conda-forge libffi 3.2.1 he1b5a44_1007 conda-forge libgcc-ng 9.2.0 h24d8f2e_2 conda-forge libgfortran-ng 7.3.0 hdf63c60_0 anaconda libgomp 9.2.0 h24d8f2e_2 conda-forge libpng 1.6.37 hbc83047_0 anaconda libprotobuf 3.12.3 hd408876_0 anaconda libstdcxx-ng 9.2.0 hdf63c60_2 conda-forge libuuid 1.0.3 h1bed415_2 anaconda libxcb 1.14 h7b6447c_0 anaconda libxml2 2.9.10 he19cac6_1 anaconda markdown 3.1.1 py37_0 anaconda matplotlib 3.2.2 0 anaconda matplotlib-base 3.2.2 py37hef1b27d_0 anaconda mkl 2019.4 243 anaconda mkl-service 2.3.0 py37he904b0f_0 anaconda mkl_fft 1.1.0 py37h23d657b_0 anaconda mkl_random 1.1.0 py37hd6b4f25_0 anaconda ncurses 6.1 hf484d3e_1002 conda-forge numpy 1.18.5 py37ha1c710e_0 anaconda numpy-base 1.18.5 py37hde5b4d6_0 anaconda oauthlib 3.1.0 py_0 anaconda openssl 1.1.1g h7b6447c_0 anaconda opt_einsum 3.1.0 py_0 anaconda pandas 1.0.5 py37h0573a6f_0 anaconda pcre 8.44 he6710b0_0 anaconda pip 20.1.1 py_1 conda-forge protobuf 3.12.3 py37he6710b0_0 anaconda pyasn1 0.4.8 py_0 anaconda pyasn1-modules 0.2.7 py_0 anaconda pycparser 2.20 py_0 anaconda pyjwt 1.7.1 py37_0 anaconda pyopenssl 19.1.0 py37_0 anaconda pyparsing 2.4.7 py_0 anaconda pyqt 5.9.2 py37h22d08a2_1 anaconda pysocks 1.7.1 py37_0 anaconda python 3.7.6 cpython_h8356626_6 conda-forge python-dateutil 2.8.1 py_0 anaconda python_abi 3.7 1_cp37m conda-forge pytz 2020.1 py_0 anaconda qt 5.9.7 h5867ecd_1 anaconda readline 8.0 hf8c457e_0 conda-forge requests 2.24.0 py_0 anaconda requests-oauthlib 1.3.0 py_0 anaconda rsa 4.0 py_0 anaconda scikit-learn 0.23.1 py37h423224d_0 anaconda scipy 1.5.0 py37h0b6359f_0 anaconda setuptools 49.1.0 py37hc8dfbb8_0 conda-forge sip 4.19.23 py37he6710b0_0 anaconda six 1.15.0 py_0 anaconda sqlite 3.32.3 hcee41ef_0 conda-forge tensorboard 2.2.1 pyh532a8cf_0 anaconda tensorboard-plugin-wit 1.6.0 py_0 anaconda tensorflow 2.2.0 mkl_py37h6e9ce2d_0 anaconda tensorflow-base 2.2.0 mkl_py37hd506778_0 anaconda tensorflow-estimator 2.2.0 pyh208ff02_0 anaconda termcolor 1.1.0 py37_1 anaconda threadpoolctl 2.1.0 pyh5ca1d4c_0 anaconda tk 8.6.10 hed695b0_0 conda-forge tornado 6.0.4 py37h7b6447c_1 anaconda urllib3 1.25.9 py_0 anaconda vidhop 0.9 py_11 file:///home/go96bix/programs/conda/envs/test_env/conda-bld werkzeug 1.0.1 py_0 anaconda wheel 0.34.2 py_1 conda-forge wrapt 1.12.1 py37h7b6447c_1 anaconda xz 5.2.5 h516909a_0 conda-forge zlib 1.2.11 h516909a_1006 conda-forge ```