Was running YATSM for p012r031, everything was going fine until the 67th job, when I suddenly got the following error message:
09:26:06:DEBUG:66:config_parser.convert_config:Predicting using "GLMNET_LassoCV" pickle specified from configuration file (/usr3/graduate/valpasq/Documents/yatsm/yatsm/regression/pickles/glmnet_LassoCV_n50.pkl)
Traceback (most recent call last):
File "/usr3/graduate/valpasq/venv/bin/yatsm", line 8, in <module>
load_entry_point('yatsm==0.5.5', 'console_scripts', 'yatsm')()
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/click/core.py", line 700, in __call__
return self.main(*args, **kwargs)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/click/core.py", line 680, in main
rv = self.invoke(ctx)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/click/core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/click/core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/click/core.py", line 508, in invoke
return callback(*args, **kwargs)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/click/decorators.py", line 16, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr3/graduate/valpasq/Documents/yatsm/yatsm/cli/line.py", line 50, in line
cfg = parse_config_file(config)
File "/usr3/graduate/valpasq/Documents/yatsm/yatsm/config_parser.py", line 145, in parse_config_file
return convert_config(cfg)
File "/usr3/graduate/valpasq/Documents/yatsm/yatsm/config_parser.py", line 69, in convert_config
cfg[pred_method]['pickle'])
File "/usr3/graduate/valpasq/Documents/yatsm/yatsm/config_parser.py", line 150, in _unpickle_predictor
reg = joblib.load(pickle)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 425, in load
obj = unpickler.load()
File "/project/earth/packages/Python-2.7.5/lib/python2.7/pickle.py", line 858, in load
dispatch[key](self)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/pickle.py", line 1090, in load_global
klass = self.find_class(module, name)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/pickle.py", line 1124, in find_class
__import__(module)
ImportError: No module named elastic_net_cv
I tried changing to GLMNET_Lasso20
, then got this message:
09:47:50:DEBUG:66:config_parser.convert_config:Predicting using "GLMNET_Lasso20" pickle specified from configuration file (/usr3/graduate/valpasq/Documents/yatsm/yatsm/regression/pickles/glmnet_Lasso20.pkl)
Traceback (most recent call last):
File "/usr3/graduate/valpasq/venv/bin/yatsm", line 8, in <module>
load_entry_point('yatsm==0.5.5', 'console_scripts', 'yatsm')()
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/click/core.py", line 700, in __call__
return self.main(*args, **kwargs)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/click/core.py", line 680, in main
rv = self.invoke(ctx)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/click/core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/click/core.py", line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/click/core.py", line 508, in invoke
return callback(*args, **kwargs)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/click/decorators.py", line 16, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr3/graduate/valpasq/Documents/yatsm/yatsm/cli/line.py", line 50, in line
cfg = parse_config_file(config)
File "/usr3/graduate/valpasq/Documents/yatsm/yatsm/config_parser.py", line 145, in parse_config_file
return convert_config(cfg)
File "/usr3/graduate/valpasq/Documents/yatsm/yatsm/config_parser.py", line 69, in convert_config
cfg[pred_method]['pickle'])
File "/usr3/graduate/valpasq/Documents/yatsm/yatsm/config_parser.py", line 150, in _unpickle_predictor
reg = joblib.load(pickle)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 425, in load
obj = unpickler.load()
File "/project/earth/packages/Python-2.7.5/lib/python2.7/pickle.py", line 858, in load
dispatch[key](self)
File "/project/earth/packages/Python-2.7.5/lib/python2.7/pickle.py", line 1083, in load_newobj
obj = cls.__new__(cls, *args)
TypeError: function.__new__(X): X is not a type object (function)
Oddly enough, when I tried the sklearn Lasso20
, things seem to be running alright, though I do get a warning about convergence:
10:03:31:DEBUG:66:config_parser.convert_config:Predicting using "Lasso20" pickle specified from configuration file (/usr3/graduate/valpasq/Documents/yatsm/yatsm/regression/pickles/sklearn_Lasso20.pkl)
10:03:31:DEBUG:93:cache.test_cache:Attempt reading in from cache directory?: True
10:03:31:DEBUG:95:cache.test_cache:Attempt writing to cache directory?: True
10:03:31:INFO:81:line.line:Job 0 of 5 - using config file /projectnb/landsat/projects/Massachusetts/p012r031/p012r031_config.yaml
10:03:31:DEBUG:96:line.line:Responsible for lines: [ 0 5 10 ..., 7140 7145 7150]
10:03:31:DEBUG:125:line.line:Already processed line 0
10:03:31:DEBUG:125:line.line:Already processed line 5
10:03:31:DEBUG:125:line.line:Already processed line 10
10:03:31:DEBUG:125:line.line:Already processed line 15
10:03:31:DEBUG:125:line.line:Already processed line 20
10:03:31:DEBUG:125:line.line:Already processed line 25
10:03:31:DEBUG:125:line.line:Already processed line 30
10:03:31:DEBUG:125:line.line:Already processed line 35
10:03:31:DEBUG:125:line.line:Already processed line 40
10:03:31:DEBUG:125:line.line:Already processed line 45
10:03:31:DEBUG:125:line.line:Already processed line 50
10:03:31:DEBUG:125:line.line:Already processed line 55
10:03:31:DEBUG:125:line.line:Already processed line 60
10:03:31:DEBUG:125:line.line:Already processed line 65
10:03:31:DEBUG:128:line.line:Running line 70
10:03:32:DEBUG:158:reader.read_line:Read in Y from cache file
/project/earth/packages/Python-2.7.5/lib/python2.7/site-packages/sklearn/linear_model/coordinate_descent.py:444: ConvergenceWarning: Objective did not converge. You might want to increase the number of iterations
ConvergenceWarning)
10:07:41:DEBUG:192:line.line: Saving YATSM output to /projectnb/landsat/projects/Massachusetts/p012r031/images/YATSM/yatsm_r70.npz
10:07:41:DEBUG:199:line.line:Line 70 took 249.888620138s to run
10:07:41:DEBUG:128:line.line:Running line 75
10:07:42:DEBUG:158:reader.read_line:Read in Y from cache file
Did something change with the pickles? I do find it really strange that my first 60+ jobs ran fine before I started getting errors, which makes me think this is not something to do with my copy of YATSM (since I didn't do a pull or anything that should change those files). Since the last lines of the errors have to do with File "/project/earth/packages/Python-2.7.5/lib/python2.7/pickle.py"
I'm wondering if this maybe has something to do with site packages?
Any insight would be much appreciated--was hoping to run all 5 MA scenes this week,
PS - My log files are a mess, but the first few runs are in /projectnb/landsat/projects/Massachusetts/p012r031/images/
, more recent runs in /projectnb/landsat/projects/Massachusetts/p012r031
.