Traceback (most recent call last):


 "blah.py", line 10, in <module>

m.pprint()


 "/.../pyomo/core/base/component.py", line 495, in pprint

self.is_constructed(), *self._pprint()


 "/.../pyomo/core/base/component.py", line 363, in _pprint_base_impl

_fcn(ostream, _key, _data_dict[_key])


 "/.../pyomo/core/base/block.py", line 1909, in _pprint_callback

data._pprint_blockdata_components(ostream)


 "/.../pyomo/core/base/block.py", line 1676, in _pprint_blockdata_components

self.component(key).pprint(ostream=indented_ostream)


 "/.../pyomo/core/base/component.py", line 495, in pprint

self.is_constructed(), *self._pprint()
AttributeError: 'AMPLExternalFunction' object has no attribute '_pprint'

Traceback (most recent call last):


 "/home/user01/anaconda2/envs/tensorflow/lib/python2.7/threading.py", line 801, in __bootstrap_inner

self.run()


 "/home/user01/anaconda2/envs/tensorflow/lib/python2.7/threading.py", line 754, in run

self.__target(*self.__args, **self.__kwargs)


 "/home/user01/SRGAN-master/tensorlayer/prepro.py", line 87, in apply_fn

results[i] = fn(data, **kwargs)


 "/home/user01/SRGAN-master/utils.py", line 17, in crop_sub_imgs_fn

x = crop(x, wrg=384, hrg=384, is_random=is_random)


 "/home/user01/SRGAN-master/tensorlayer/prepro.py", line 232, in crop

h, w = x.shape[row_index], x.shape[col_index]
AttributeError: 'NoneType' object has no attribute 'shape'
