conda env create with exported file cannot find wheel package

0 views
Skip to first unread message

Abhishek Ranjan

unread,
Jan 13, 2018, 11:18:28 AM1/13/18
to conda - Public

Hi, 
I am trying to export an environment and trying to replicate it to create another environment. 

Export using 'conda env export'  looks as follows:

name: null
channels:
- conda-forge
- r
- defaults
dependencies:
- backports_abc=0.5=py34_0
.
.
.
 wheel=0.30.0=py_1
.
.


When I try to create a new project using this exported file, I see this error: 

    Traceback (most recent call last):
      File "~/conda_env/lib/python3.6/site-packages/conda/exceptions.py", line 632, in conda_exception_handler
        return_value = func(*args, **kwargs)
      File "~/conda_env/lib/python3.6/site-packages/conda_env/cli/main_create.py", line 108, in execute
        installer.install(prefix, pkg_specs, args, env)
      File "~/conda_env/lib/python3.6/site-packages/conda_env/installers/conda.py", line 32, in install
        channel_priority_map=_channel_priority_map)
      File "~/conda_env/lib/python3.6/site-packages/conda/plan.py", line 475, in install_actions_list
        dists_for_envs = determine_all_envs(r, specs, channel_priority_map=channel_priority_map)
      File "~/conda_env/lib/python3.6/site-packages/conda/plan.py", line 540, in determine_all_envs
        spec_for_envs = tuple(SpecForEnv(env=p.preferred_env, spec=p.name) for p in best_pkgs)
      File "~/conda_env/lib/python3.6/site-packages/conda/plan.py", line 540, in <genexpr>
        spec_for_envs = tuple(SpecForEnv(env=p.preferred_env, spec=p.name) for p in best_pkgs)
      File "~/conda_env/lib/python3.6/site-packages/conda/plan.py", line 539, in <genexpr>
        best_pkgs = (r.index[r.get_dists_for_spec(s, emptyok=False)[-1]] for s in specs)
      File "~/conda_env/lib/python3.6/site-packages/conda/resolve.py", line 565, in get_dists_for_spec
        raise NoPackagesFoundError([(ms,)])
    conda.exceptions.NoPackagesFoundError: Package missing in current linux-64 channels: 
      - wheel 0.30.0 py_1


Can someone tell me what does py_1 in the entry ''wheel=0.30.0=py_1" mean? If my version of wheel is 0.29.0, then I see the entry as   '- wheel=0.29.0=py27_0'  and then I do not see any error. 


conda info shows the following for the failing environment : 

Current conda install:

               platform : linux-64
          conda version : 4.3.21
       conda is private : False
      conda-env version : 4.3.21
    conda-build version : not installed
         python version : 3.6.1.final.0
       requests version : 2.14.2
       root environment : ~/conda_env  (writable)
    default environment : ~/conda_env
       envs directories : ~/conda_env/envs
                          ~/testImportedProject17/.conda/envs
          package cache :~/conda_env/pkgs
                          ~/testImportedProject17/.conda/pkgs
           channel URLs : https://repo.continuum.io/pkgs/free/linux-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/r/linux-64
                          https://repo.continuum.io/pkgs/r/noarch
                          https://repo.continuum.io/pkgs/pro/linux-64
                          https://repo.continuum.io/pkgs/pro/noarch
            config file : None
             netrc file : None
           offline mode : False
             user-agent : conda/4.3.21 requests/2.14.2 CPython/3.6.1 Linux/4.10.0-42-generic debian/8.9 glibc/2.19    
                UID:GID : 30632126:30632126









Reply all
Reply to author
Forward
0 new messages