You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you have an input Python file with an import statement, the granulate feature doesn't work. The error is TypeError: can't pickle NotImplementedType objects caused when a Parameters object is copied with copy.deepcopy(params). The full error is below.
My guess is that objects of ModuleType aren't pickable. Maybe remove them from the object before CDPParser.granulate() is called?
(acme_diags_env_dev) shaheen2@shaheen2ml:~/github/acme_diags/tests/system$ e3sm_diags -p all_sets.py -d all_sets.cfg
Traceback (most recent call last):
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/bin/e3sm_diags", line 11, in <module>
load_entry_point('e3sm-diags==1.6.0', 'console_scripts', 'e3sm_diags')()
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/site-packages/e3sm_diags-1.6.0-py2.7.egg/acme_diags/acme_diags_driver.py", line 200, in main
parameters = get_parameters(parser)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/site-packages/e3sm_diags-1.6.0-py2.7.egg/acme_diags/acme_diags_driver.py", line 167, in get_parameters
parameters = parser.get_parameters(cmd_default_vars=False, argparse_vals_only=False)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/site-packages/cdp-1.4.1-py2.7.egg/cdp/cdp_parser.py", line 481, in get_parameters
final_parameters = self.granulate(final_parameters)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/site-packages/cdp-1.4.1-py2.7.egg/cdp/cdp_parser.py", line 406, in granulate
p = copy.deepcopy(param)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/Users/shaheen2/anaconda2/envs/acme_diags_env_dev/lib/python2.7/copy.py", line 182, in deepcopy
rv = reductor(2)
TypeError: can't pickle NotImplementedType objects
The text was updated successfully, but these errors were encountered:
When you have an input Python file with an
import
statement, thegranulate
feature doesn't work. The error isTypeError: can't pickle NotImplementedType objects
caused when a Parameters object is copied withcopy.deepcopy(params)
. The full error is below.My guess is that objects of
ModuleType
aren't pickable. Maybe remove them from the object beforeCDPParser.granulate()
is called?The text was updated successfully, but these errors were encountered: