'wc_env_manager container build' has stopped working on my Mac. I don't know why, as I don't believe that I've changed any of the code it uses.
This is a critical problem because I'm relying on docker containers for my wc_sim development. I will try reinstalling wc_utils and wc_env_manager now.
Script started on Sat Oct 20 08:19:40 2018
bash-3.2$ wc_env_manager container build
Traceback (most recent call last):
File "/anaconda3/bin/wc_env_manager", line 11, in <module>
sys.exit(main())
File "/Users/arthur_at_sinai/.local/lib/python3.6/site-packages/wc_env_manager/__main__.py", line 230, in main
app.run()
File "/anaconda3/lib/python3.6/site-packages/cement/core/foundation.py", line 916, in run
return_val = self.controller._dispatch()
File "/anaconda3/lib/python3.6/site-packages/cement/ext/ext_argparse.py", line 806, in _dispatch
return func()
File "/Users/arthur_at_sinai/.local/lib/python3.6/site-packages/wc_env_manager/__main__.py", line 140, in build
mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE})
File "/Users/arthur_at_sinai/.local/lib/python3.6/site-packages/wc_env_manager/core.py", line 81, in __init__
'wc_env_manager': config or {}})['wc_env_manager']
File "/Users/arthur_at_sinai/.local/lib/python3.6/site-packages/wc_env_manager/config/core.py", line 39, in get_config
return wc_utils.config.ConfigManager(paths).get_config(extra=extra, context=context)
File "/anaconda3/lib/python3.6/site-packages/wc_utils/config/core.py", line 127, in get_config
raise ExtraValuesError(config)
File "/anaconda3/lib/python3.6/site-packages/wc_utils/config/core.py", line 284, in __init__
the_section = config[section]
File "/anaconda3/lib/python3.6/site-packages/configobj.py", line 554, in __getitem__
val = dict.__getitem__(self, key)
KeyError: 'container'
bash-3.2$ wc_env_manager -h
usage: wc_env_manager [-h] [-d] [-q] [-v]
{container,image,base-image,build,pull,push,remove} ...
Whole-cell modeling environment manager
optional arguments:
-h, --help show this help message and exit
-d, --debug full application debug mode
-q, --quiet suppress all console output
-v, --version show program's version number and exit
sub-commands:
{container,image,base-image,build,pull,push,remove}
container container controller
image image controller
base-image base-image controller
build Build base image, image, and container
pull Pull base image and image
push Push base image and image
remove Remove base image, image, and containers
bash-3.2$ wc_env_manager container
usage: wc_env_manager container [-h] {build,remove} ...
Build and remove containers of `wc_env`
optional arguments:
-h, --help show this help message and exit
sub-commands:
{build,remove}
build Build container
remove Remove container
bash-3.2$ pip show wc_utils
Name: wc-utils
Version: 0.0.1a5
Summary: Utilities for whole-cell modeling
Home-page: https://github.com/KarrLab/wc_utils
Author: Karr Lab
Author-email: [email protected]
License: MIT
Location: /anaconda3/lib/python3.6/site-packages
Requires: mendeleev, requests, log, diskcache, enum34, six, numpy, qualname, gitpython, setuptools, pyexcel, attrdict, pyexcel-io, openpyxl, pint, pyyaml, configobj, abduct
Required-by: wc-env-manager
bash-3.2$ pip show wc_env_manager
Name: wc-env-manager
Version: 0.0.1
Summary: Tools for managing computing environments for whole-cell modeling
Home-page: https://github.com/KarrLab/wc_env_manager
Author: Karr Lab
Author-email: [email protected]
License: MIT
Location: /Users/arthur_at_sinai/.local/lib/python3.6/site-packages
Requires: pkg-utils, gitpython, cement, configobj, wc-utils, python-dateutil, requirements-parser, docker, pyyaml, jinja2
Required-by:
bash-3.2$ pip show cement
Name: cement
Version: 3.0.0
Summary: CLI Framework for Python
Home-page: http://builtoncement.org
Author: Data Folk Labs, LLC
Author-email: [email protected]
License: BSD
Location: /anaconda3/lib/python3.6/site-packages
Requires:
Required-by: wc-env-manager
bash-3.2$ wc_env_manager container remove
Traceback (most recent call last):
File "/anaconda3/bin/wc_env_manager", line 11, in <module>
sys.exit(main())
File "/Users/arthur_at_sinai/.local/lib/python3.6/site-packages/wc_env_manager/__main__.py", line 230, in main
app.run()
File "/anaconda3/lib/python3.6/site-packages/cement/core/foundation.py", line 916, in run
return_val = self.controller._dispatch()
File "/anaconda3/lib/python3.6/site-packages/cement/ext/ext_argparse.py", line 806, in _dispatch
return func()
File "/Users/arthur_at_sinai/.local/lib/python3.6/site-packages/wc_env_manager/__main__.py", line 147, in remove
mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE})
File "/Users/arthur_at_sinai/.local/lib/python3.6/site-packages/wc_env_manager/core.py", line 81, in __init__
'wc_env_manager': config or {}})['wc_env_manager']
File "/Users/arthur_at_sinai/.local/lib/python3.6/site-packages/wc_env_manager/config/core.py", line 39, in get_config
return wc_utils.config.ConfigManager(paths).get_config(extra=extra, context=context)
File "/anaconda3/lib/python3.6/site-packages/wc_utils/config/core.py", line 127, in get_config
raise ExtraValuesError(config)
File "/anaconda3/lib/python3.6/site-packages/wc_utils/config/core.py", line 284, in __init__
the_section = config[section]
File "/anaconda3/lib/python3.6/site-packages/configobj.py", line 554, in __getitem__
val = dict.__getitem__(self, key)
KeyError: 'container'