Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda create failure--RemoveError: 'futures' is a dependency of conda and cannot be removed from conda's operating environment. #8454

Closed
yuanzhenjie opened this issue Mar 27, 2019 · 3 comments
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity

Comments

@yuanzhenjie
Copy link

yuanzhenjie commented Mar 27, 2019

Current Behavior : conda create failure
conda create -n faces python=3.7

(base) [root@dl-gpu ~]# conda create -n faces python=3.7
Collecting package metadata: done
Solving environment: done

## Package Plan ##

  environment location: /data/software/anaconda2/envs/faces

  added / updated specs:
    - python=3.7


The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/linux-64::ca-certificates-2019.1.23-0
  certifi            pkgs/main/linux-64::certifi-2019.3.9-py37_0
  libedit            pkgs/main/linux-64::libedit-3.1.20181209-hc058e9b_0
  libffi             pkgs/main/linux-64::libffi-3.2.1-hd88cf55_4
  libgcc-ng          pkgs/main/linux-64::libgcc-ng-8.2.0-hdf63c60_1
  libstdcxx-ng       pkgs/main/linux-64::libstdcxx-ng-8.2.0-hdf63c60_1
  ncurses            pkgs/main/linux-64::ncurses-6.1-he6710b0_1
  openssl            pkgs/main/linux-64::openssl-1.1.1b-h7b6447c_1
  pip                pkgs/main/linux-64::pip-19.0.3-py37_0
  python             pkgs/main/linux-64::python-3.7.2-h0371630_0
  readline           pkgs/main/linux-64::readline-7.0-h7b6447c_5
  setuptools         pkgs/main/linux-64::setuptools-40.8.0-py37_0
  sqlite             pkgs/main/linux-64::sqlite-3.27.2-h7b6447c_0
  tk                 pkgs/main/linux-64::tk-8.6.8-hbc83047_0
  wheel              pkgs/main/linux-64::wheel-0.33.1-py37_0
  xz                 pkgs/main/linux-64::xz-5.2.4-h14c3975_4
  zlib               pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: failed

RemoveError: 'futures' is a dependency of conda and cannot be removed from
conda's operating environment.

conda info:

     active environment : base
    active env location : /data/software/anaconda2
            shell level : 1
       user config file : /root/.condarc
 populated config files : /root/.condarc
          conda version : 4.6.8
    conda-build version : 3.11.0
         python version : 2.7.15.final.0
       base environment : /data/software/anaconda2  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /data/software/anaconda2/pkgs
                          /root/.conda/pkgs
       envs directories : /data/software/anaconda2/envs
                          /root/.conda/envs
               platform : linux-64
             user-agent : conda/4.6.8 requests/2.21.0 CPython/2.7.15 Linux/3.10.0-229.el7.x86_64 centos/7.1.1503 glibc/2.22
                UID:GID : 0:0
             netrc file : None
           offline mode : False
(base) [root@dl-gpu ~]# conda config --show-sources
==> /root/.condarc <==
channels:
  - defaults
show_channel_urls: True

Environment variable:

# packages in environment at /data/software/anaconda2:
#
# Name                    Version                   Build  Channel
futures                   3.2.0                    pypi_0    pypi

I try the follow failed solution

pip uninstall futures

but rise another issue:

(base) [root@dl-gpu ~]# conda install futures
Traceback (most recent call last):
  File "/data/software/anaconda2/bin/conda", line 13, in <module>
    sys.exit(main())
  File "/data/software/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 116, in main
    from ..exceptions import conda_exception_handler
  File "/data/software/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 24, in <module>
    from .common.io import dashlist, timeout
  File "/data/software/anaconda2/lib/python2.7/site-packages/conda/common/io.py", line 7, in <module>
    from concurrent.futures import ThreadPoolExecutor, _base, as_completed
ImportError: No module named concurrent.futures

(base) [root@dl-gpu ~]# conda create -n facetest python=3.7
Traceback (most recent call last):
  File "/data/software/anaconda2/bin/conda", line 13, in <module>
    sys.exit(main())
  File "/data/software/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 116, in main
    from ..exceptions import conda_exception_handler
  File "/data/software/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 24, in <module>
    from .common.io import dashlist, timeout
  File "/data/software/anaconda2/lib/python2.7/site-packages/conda/common/io.py", line 7, in <module>
    from concurrent.futures import ThreadPoolExecutor, _base, as_completed
ImportError: No module named concurrent.futures

How I fixed it?

@yuanzhenjie
Copy link
Author

yuanzhenjie commented Apr 1, 2019

My worried are the same as his.
Just conda update conda https://github.com/conda/conda/issues/8149#issuecomment-463193757
It will update python of base(conda) to 3.7 and update same pkg to base 3.7 .

The following packages will be UPDATED:

  cffi                         pkgs/free::cffi-1.7.0-py27_0 --> pkgs/main::cffi-1.12.2-py36h2e261b9_1
  cryptography                         2.4.1-py27h1ba5d50_0 --> 2.6.1-py36h1ba5d50_0
  pycparser                pkgs/free::pycparser-2.14-py27_1 --> pkgs/main::pycparser-2.19-py36_0
  pyopenssl              pkgs/free::pyopenssl-16.2.0-py27_0 --> pkgs/main::pyopenssl-19.0.0-py36_0
  python                                  2.7.15-h9bab390_4 --> 3.6.7-h0371630_0
  ruamel_yaml         pkgs/free::ruamel_yaml-0.11.14-py27_0 --> pkgs/main::ruamel_yaml-0.11.14-py36ha2fb22d_2
  six                          pkgs/free::six-1.10.0-py27_0 --> pkgs/main::six-1.12.0-py36_0
  wheel                      pkgs/free::wheel-0.29.0-py27_0 --> pkgs/main::wheel-0.33.1-py36_0

The following packages will be DOWNGRADED:

  asn1crypto                                  0.24.0-py27_0 --> 0.24.0-py36_0
  certifi                                   2019.3.9-py27_0 --> 2019.3.9-py36_0
  chardet                                      3.0.4-py27_1 --> 3.0.4-py36_1
  conda                                        4.6.8-py27_0 --> 4.6.8-py36_0
  idna                                           2.8-py27_0 --> 2.8-py36_0
  pycosat                              0.6.3-py27ha4109ae_0 --> 0.6.3-py36h14c3975_0
  pysocks                                      1.6.8-py27_0 --> 1.6.8-py36_0
  requests                                    2.21.0-py27_0 --> 2.21.0-py36_0
  setuptools                                  40.8.0-py27_0 --> 40.8.0-py36_0
  urllib3                                     1.24.1-py27_0 --> 1.24.1-py36_0

But I have other environments, so don`t want to do this
It is similar to this one. #8149

@yuanzhenjie
Copy link
Author

yuanzhenjie commented Apr 1, 2019

Only updated to 3.7?

@github-actions
Copy link

Hi there, thank you for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.

If you would like this issue to remain open please:

  1. Verify that you can still reproduce the issue at hand
  2. Comment that the issue is still reproducible and include:
    - What OS and version you reproduced the issue on
    - What steps you followed to reproduce the issue

NOTE: If this issue was closed prematurely, please leave a comment.

Thanks!

@github-actions github-actions bot added the stale [bot] marked as stale due to inactivity label May 16, 2022
@github-actions github-actions bot added the stale::closed [bot] closed after being marked as stale label Jun 15, 2022
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Jun 16, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity
Projects
None yet
Development

No branches or pull requests

1 participant