Discussion:
[conda] conda-build with anaconda channel fails
j***@gmail.com
2018-10-18 20:40:55 UTC
Permalink
Hi all,

Since this morning, I've been unable to run conda-build on a linux machine
with just the anaconda channel with the following error:

$ conda-build <package-name> --override-channels -c
https://conda.anaconda.org/anaconda

Traceback (most recent call last):

File "/miniconda/bin/conda-build", line 6, in <module>

sys.exit(conda_build.cli.main_build.main())

File
"/miniconda/lib/python2.7/site-packages/conda_build/cli/main_build.py",
line 334, in main

execute(sys.argv[1:])

File
"/miniconda/lib/python2.7/site-packages/conda_build/cli/main_build.py",
line 325, in execute

noverify=args.no_verify)

File "/miniconda/lib/python2.7/site-packages/conda_build/api.py", line
97, in build

need_source_download=need_source_download, config=config)

File "/miniconda/lib/python2.7/site-packages/conda_build/build.py", line
1503, in build_tree

config=config)

File "/miniconda/lib/python2.7/site-packages/conda_build/build.py", line
1019, in build

create_env(config.build_prefix, specs, config=config)

File "/miniconda/lib/python2.7/site-packages/conda_build/build.py", line
679, in create_env

index = get_build_index(config=config, clear_cache=True)

File "/miniconda/lib/python2.7/site-packages/conda_build/build.py", line
623, in get_build_index

use_cache=not clear_cache)

File "/miniconda/lib/python2.7/site-packages/conda/core/index.py", line
92, in get_index

index = fetch_index(channel_priority_map, use_cache=use_cache)

File "/miniconda/lib/python2.7/site-packages/conda/core/index.py", line
111, in fetch_index

repodatas = collect_all_repodata(use_cache, tasks)

File "/miniconda/lib/python2.7/site-packages/conda/core/repodata.py",
line 74, in collect_all_repodata

repodatas = _collect_repodatas_serial(use_cache, tasks)

File "/miniconda/lib/python2.7/site-packages/conda/core/repodata.py",
line 463, in _collect_repodatas_serial

for url, schan, pri in tasks]

File "/miniconda/lib/python2.7/site-packages/conda/core/repodata.py",
line 109, in func

res = f(*args, **kwargs)

File "/miniconda/lib/python2.7/site-packages/conda/core/repodata.py",
line 454, in fetch_repodata

process_repodata(repodata, url, schannel, priority)

File "/miniconda/lib/python2.7/site-packages/conda/core/repodata.py",
line 396, in process_repodata

info['fn'] = fn

TypeError: 'NoneType' object does not support item assignment

Running conda info gives:

Current conda install:


platform : linux-64

conda version : 4.3.16

conda is private : False

conda-env version : 4.3.16

conda-build version : 2.1.9

python version : 2.7.13.final.0

requests version : 2.14.2

root environment : /miniconda (writable)

default environment : /miniconda

envs directories : /miniconda/envs

/root/.conda/envs

package cache : /miniconda/pkgs

/root/.conda/pkgs

channel URLs :

config file : ./condarc

offline mode : False

user-agent : conda/4.3.16 requests/2.14.2 CPython/2.7.13
Linux/4.9.93-linuxkit-aufs CentOS/6.10 glibc/2.12

UID:GID : 0:0

Investigating so far, it looks like there are a few packages showing up in
the anaconda channel's linux-64 repodata.json (last updated yesterday) that
have null values:
"bazel-0.11.1-hf484d3e_0.tar.bz2": null,
"bazel-0.12.0-hf484d3e_0.tar.bz2": null,
"bazel-0.14.0-hf484d3e_0.tar.bz2": null,
"bazel-0.5.4-hf484d3e_1.tar.bz2": null,
"biopython-1.66-np111py35_0.tar.bz2": null,
"biopython-1.67-np110py34_0.tar.bz2": null,
"biopython-1.67-np110py35_0.tar.bz2": null,
"biopython-1.67-np111py27_0.tar.bz2": null,

But curiously the corresponding items have proper values
in https://repo.continuum.io/pkgs/main (bazel)
and https://repo.continuum.io/pkgs/free (biopython).

Has anyone run into this before or know what is up? Could it be related to
an error in the anaconda mirror aggregation?

If this is not the proper place for this, please let me know where to
direct an inquiry.

Thanks,
Jeremy
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/66de4bb6-3940-47e5-abde-20e9d8d2278a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
j***@gmail.com
2018-10-18 20:59:02 UTC
Permalink
Looks like there are already issues open:

https://github.com/conda/conda/issues/7870
https://github.com/conda/conda/issues/7872
Post by j***@gmail.com
Hi all,
Since this morning, I've been unable to run conda-build on a linux machine
$ conda-build <package-name> --override-channels -c
https://conda.anaconda.org/anaconda
File "/miniconda/bin/conda-build", line 6, in <module>
sys.exit(conda_build.cli.main_build.main())
File
"/miniconda/lib/python2.7/site-packages/conda_build/cli/main_build.py",
line 334, in main
execute(sys.argv[1:])
File
"/miniconda/lib/python2.7/site-packages/conda_build/cli/main_build.py",
line 325, in execute
noverify=args.no_verify)
File "/miniconda/lib/python2.7/site-packages/conda_build/api.py", line
97, in build
need_source_download=need_source_download, config=config)
File "/miniconda/lib/python2.7/site-packages/conda_build/build.py",
line 1503, in build_tree
config=config)
File "/miniconda/lib/python2.7/site-packages/conda_build/build.py",
line 1019, in build
create_env(config.build_prefix, specs, config=config)
File "/miniconda/lib/python2.7/site-packages/conda_build/build.py",
line 679, in create_env
index = get_build_index(config=config, clear_cache=True)
File "/miniconda/lib/python2.7/site-packages/conda_build/build.py",
line 623, in get_build_index
use_cache=not clear_cache)
File "/miniconda/lib/python2.7/site-packages/conda/core/index.py", line
92, in get_index
index = fetch_index(channel_priority_map, use_cache=use_cache)
File "/miniconda/lib/python2.7/site-packages/conda/core/index.py", line
111, in fetch_index
repodatas = collect_all_repodata(use_cache, tasks)
File "/miniconda/lib/python2.7/site-packages/conda/core/repodata.py",
line 74, in collect_all_repodata
repodatas = _collect_repodatas_serial(use_cache, tasks)
File "/miniconda/lib/python2.7/site-packages/conda/core/repodata.py",
line 463, in _collect_repodatas_serial
for url, schan, pri in tasks]
File "/miniconda/lib/python2.7/site-packages/conda/core/repodata.py",
line 109, in func
res = f(*args, **kwargs)
File "/miniconda/lib/python2.7/site-packages/conda/core/repodata.py",
line 454, in fetch_repodata
process_repodata(repodata, url, schannel, priority)
File "/miniconda/lib/python2.7/site-packages/conda/core/repodata.py",
line 396, in process_repodata
info['fn'] = fn
TypeError: 'NoneType' object does not support item assignment
platform : linux-64
conda version : 4.3.16
conda is private : False
conda-env version : 4.3.16
conda-build version : 2.1.9
python version : 2.7.13.final.0
requests version : 2.14.2
root environment : /miniconda (writable)
default environment : /miniconda
envs directories : /miniconda/envs
/root/.conda/envs
package cache : /miniconda/pkgs
/root/.conda/pkgs
config file : ./condarc
offline mode : False
user-agent : conda/4.3.16 requests/2.14.2 CPython/2.7.13
Linux/4.9.93-linuxkit-aufs CentOS/6.10 glibc/2.12
UID:GID : 0:0
Investigating so far, it looks like there are a few packages showing up in
the anaconda channel's linux-64 repodata.json (last updated yesterday) that
"bazel-0.11.1-hf484d3e_0.tar.bz2": null,
"bazel-0.12.0-hf484d3e_0.tar.bz2": null,
"bazel-0.14.0-hf484d3e_0.tar.bz2": null,
"bazel-0.5.4-hf484d3e_1.tar.bz2": null,
"biopython-1.66-np111py35_0.tar.bz2": null,
"biopython-1.67-np110py34_0.tar.bz2": null,
"biopython-1.67-np110py35_0.tar.bz2": null,
"biopython-1.67-np111py27_0.tar.bz2": null,
But curiously the corresponding items have proper values in
https://repo.continuum.io/pkgs/main (bazel) and
https://repo.continuum.io/pkgs/free (biopython).
Has anyone run into this before or know what is up? Could it be related to
an error in the anaconda mirror aggregation?
If this is not the proper place for this, please let me know where to
direct an inquiry.
Thanks,
Jeremy
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/5fc45ccc-c8e0-4e81-8d78-b4ddc420ac11%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...