question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: module 'conda_build.config' has no attribute 'subdir'

See original GitHub issue

When trying to rerender a feedstock, I get this,

Traceback (most recent call last):
  File "/home/isuru/miniconda3/bin/conda-smithy", line 6, in <module>
    sys.exit(conda_smithy.cli.main())
  File "/home/isuru/miniconda3/lib/python3.5/site-packages/conda_smithy/cli.py", line 239, in main
    args.subcommand_func(args)
  File "/home/isuru/miniconda3/lib/python3.5/site-packages/conda_smithy/cli.py", line 185, in __call__
    configure_feedstock.main(args.feedstock_directory)
  File "/home/isuru/miniconda3/lib/python3.5/site-packages/conda_smithy/configure_feedstock.py", line 444, in main
    render_run_docker_build(env, config, forge_dir)
  File "/home/isuru/miniconda3/lib/python3.5/site-packages/conda_smithy/configure_feedstock.py", line 37, in render_run_docker_build
    with fudge_subdir('linux-64', build_config=meta_config(meta)):
  File "/home/isuru/miniconda3/lib/python3.5/contextlib.py", line 59, in __enter__
    return next(self.gen)
  File "/home/isuru/miniconda3/lib/python3.5/site-packages/conda_smithy/configure_feedstock.py", line 131, in fudge_subdir
    cb_orig = build_config.subdir
AttributeError: module 'conda_build.config' has no attribute 'subdir'

conda list -n root gives

anaconda-client           1.4.0                    py35_0    defaults
bzip2                     1.0.6                         3    defaults
clyent                    1.2.2                    py35_0    defaults
conda-build               2.0.4                    py35_0    defaults
backports.shutil_get_terminal_size 1.0.0                    py35_0    conda-forge
ca-certificates           2016.2.28                     0    conda-forge
certifi                   2016.2.28                py35_0    conda-forge
cmake                     3.6.1                         0    conda-forge
conda                     4.1.11                   py35_1    conda-forge
conda-build-all           0.12.0                   py35_1    conda-forge
conda-env                 2.5.2                    py35_0    conda-forge
conda-smithy              1.3.2                    py35_0    conda-forge
curl                      7.49.1                        1    conda-forge
cycler                    0.10.0                   py35_0    conda-forge
decorator                 4.0.10                   py35_0    conda-forge
entrypoints               0.2.2                    py35_0    conda-forge
expat                     2.1.0                         2    conda-forge
ffmpeg                    2.8.6                         2    conda-forge
filelock                  2.0.6                    py35_0    conda-forge
fontconfig                2.11.1                        3    conda-forge
freetype                  2.6.3                         0    conda-forge
future                    0.15.2                   py35_0    conda-forge
gitdb                     0.6.4                    py35_0    conda-forge
gitpython                 1.0.1                    py35_0    conda-forge
gmp                       6.1.1                         0    conda-forge
gmpy2                     2.0.7                    py35_0    conda-forge
icu                       56.1                          4    conda-forge
ipython                   5.0.0                    py35_0    conda-forge
ipywidgets                5.1.5                    py35_0    conda-forge
jpeg                      9b                            0    conda-forge
jsoncpp                   0.10.6                        1    conda-forge
jsonschema                2.5.1                    py35_0    conda-forge
jupyter_client            4.3.0                    py35_0    conda-forge
jupyter_console           5.0.0                    py35_0    conda-forge
jupyter_core              4.1.0                    py35_0    conda-forge
jupyterlab                0.2.0                    py35_1    conda-forge
libarchive                3.2.1                         2    conda-forge
libiconv                  1.14                          2    conda-forge
libpng                    1.6.21                        1    conda-forge
libsodium                 1.0.10                        0    conda-forge
libtiff                   4.0.6                         6    conda-forge
libxml2                   2.9.4                         0    conda-forge
matplotlib                1.5.2               np110py35_4    conda-forge
mistune                   0.7.3                    py35_0    conda-forge
mock                      2.0.0                    py35_0    conda-forge
mpc                       1.0.3                         1    conda-forge
mpfr                      3.1.4                         1    conda-forge
mpmath                    0.19                     py35_0    conda-forge
nbconvert                 4.2.0                    py35_0    conda-forge
nbformat                  4.0.1                    py35_0    conda-forge
ncurses                   5.9                           8    conda-forge
nose                      1.3.7                    py35_0    conda-forge
notebook                  4.2.1                    py35_0    conda-forge
pandas                    0.18.1              np110py35_0    conda-forge
patchelf                  0.9                           0    conda-forge
pexpect                   4.1.0                    py35_0    conda-forge
pickleshare               0.7.2                    py35_0    conda-forge
pillow                    3.2.0                    py35_2    conda-forge
pkginfo                   1.2.1                    py35_0    conda-forge
prompt_toolkit            1.0.3                    py35_0    conda-forge
psutil                    4.1.0                    py35_0    conda-forge
ptyprocess                0.5.1                    py35_0    conda-forge
pygithub                  1.26.0                   py35_0    conda-forge
pygments                  1.6                      py35_0    conda-forge
pyparsing                 2.1.1                    py35_0    conda-forge
pytest                    2.9.2                    py35_0    conda-forge
python                    3.5.2                         2    conda-forge
pyzmq                     14.7.0                   py35_0    conda-forge
qtconsole                 4.2.1                    py35_0    conda-forge
readline                  6.2                           0    conda-forge
ruamel.yaml               0.11.11                  py35_1    conda-forge
simplegeneric             0.8.1                    py35_0    conda-forge
sip                       4.18                     py35_0    conda-forge
smmap                     0.9.0                    py35_0    conda-forge
sqlite                    3.13.0                        1    conda-forge
terminado                 0.6                      py35_0    conda-forge
tk                        8.5.19                        0    conda-forge
tornado                   4.2.1                    py35_0    conda-forge
traitlets                 4.2.2                    py35_0    conda-forge
wcwidth                   0.1.7                    py35_0    conda-forge
widgetsnbextension        1.2.3                    py35_1    conda-forge
x264                      20131217                      0    conda-forge
xerces-c                  3.1.4                         2    conda-forge
xz                        5.2.2                         0    conda-forge
zeromq                    4.1.5                         0    conda-forge
zlib                      1.2.8                         3    conda-forge
cython                    0.23.5                   py35_0    defaults
fastcache                 1.0.2                    py35_1    defaults
ipykernel                 4.3.1                    py35_0    defaults
ipython_genutils          0.1.0                    py35_0    defaults
jbig                      2.1                           0    defaults
jinja2                    2.8                      py35_1    defaults
jupyter                   1.0.0                    py35_3    defaults
libgfortran               3.0.0                         1    defaults
markupsafe                0.23                     py35_2    defaults
mkl                       11.3.3                        0    defaults
numpy                     1.10.4                   py35_2    defaults
openssl                   1.0.2h                        0    defaults
pbr                       1.8.0                    py35_0    defaults
pip                       8.1.1                    py35_1    defaults
py                        1.4.31                   py35_0    defaults
pycosat                   0.6.1                    py35_0    defaults
pycrypto                  2.6.1                    py35_0    defaults
pyqt                      4.11.4                   py35_3    defaults
python-dateutil           2.5.3                    py35_0    defaults
pytz                      2016.4                   py35_0    defaults
pyyaml                    3.11                     py35_1    defaults
qt                        4.8.7                         3    defaults
requests                  2.10.0                   py35_0    defaults
autograd                  1.1.1                    py35_0    richardotis
pycalphad                 0.3.6                    py35_0    richardotis
tinydb                    2.4                      py35_0    richardotis
tqdm                      3.8.0                    py35_0    richardotis
ruamel_yaml               0.11.7                   py35_0    defaults
scipy                     0.17.1              np110py35_1    defaults
setuptools                21.2.1                   py35_0    defaults
six                       1.10.0                   py35_0    defaults
sympy                     0.7.6.1                  py35_0    defaults
theano                    0.7.0               np110py35_0    defaults
wheel                     0.29.0                   py35_0    defaults
xarray                    0.7.2                    py35_0    defaults
yaml                      0.1.6                         0    defaults

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
dfmcommented, Jul 12, 2017

Sure. Done: #545 Thanks!

0reactions
jakirkhamcommented, Jul 12, 2017

Could you please open that in a new issue, @dfm, as it is not related to this issue? Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while building a conda package for pypolymake
I'm using miniconda on Windows 10 (see Edit 2 below for the output of conda info ). I would like to use the...
Read more >
'Config' object has no attribute 'config' when packaging a ...
During packaging of a misconfigured meta.yaml for a python extension, conda-build throws an obscure AttributeError:.
Read more >
conda-build Documentation
Conda -build contains commands and tools to use conda to build your own packages. It also provides helpful tools to.
Read more >
TemporaryDirectory() throws an attribute error when program ...
TemporaryDirectory() as directory: AttributeError: 'module' object has no attribute 'TemporaryDirectory'. I am running python 3.8.
Read more >
Known Issues — Astropy v1.2.dev14793
Anaconda users should upgrade with conda , not pip; Locale errors in MacOS X and Linux ... AttributeError: 'module' object has no attribute...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found