Traceback (most recent call last):


 "<input>", line 1, in <module>


 "C:\Program 
s\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile

pydev_imports.execfile(filename, global_vars, local_vars)
# execute the script


 "C:\Program 
s\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile

exec(compile(contents+"\n", file, 'exec'), glob, loc)


 "E:/Python-Проекты/Transmission-MG-BilevelOpt/TransMGBilevel.py", line 308, in <module>

results = opt.solve(model,tee=True)


 "E:\Python-Проекты\bilevel\lib\site-packages\pyomo\opt\base\solvers.py", line 582, in solve

_status = self._apply_solver()


 "E:\Python-Проекты\bilevel\lib\site-packages\pyomo\bilevel\plugins\solver3.py", line 37, in _apply_solver

xfrm.apply_to(self._instance)


 "E:\Python-Проекты\bilevel\lib\site-packages\pyomo\core\base\plugin.py", line 245, in apply_to

self._apply_to(model, **kwds)


 "E:\Python-Проекты\bilevel\lib\site-packages\pyomo\bilevel\plugins\lcp.py", line 53, in _apply_to

data.deactivate()
AttributeError: 'FiniteSimpleRangeSet' object has no attribute 'deactivate

Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "C:\Miniconda3\lib\site-packages\skimage\data\__init__.py", line 109, in camera

return _load("camera.png")


 "C:\Miniconda3\lib\site-packages\skimage\data\__init__.py", line 96, in _load

return imread(_os.path.join(data_dir, f), plugin='pil', as_gray=as_gray)


 "C:\Miniconda3\lib\site-packages\skimage\io\_io.py", line 48, in imread

img = call_plugin('imread', fname, plugin=plugin, **plugin_args)


 "C:\Miniconda3\lib\site-packages\skimage\io\manage_plugins.py", line 210, in call_plugin

return func(*args, **kwargs)


 "C:\Miniconda3\lib\site-packages\skimage\io\_plugins\pil_plugin.py", line 36, in imread

return pil_to_ndarray(im, dtype=dtype, img_num=img_num)


 "C:\Miniconda3\lib\site-packages\skimage\io\_plugins\pil_plugin.py", line 66, in pil_to_ndarray


image.seek(i)


 "C:\Miniconda3\lib\site-packages\PIL\PngImagePlugin.py", line 748, in seek

self._seek(f)


 "C:\Miniconda3\lib\site-packages\PIL\PngImagePlugin.py", line 791, in _seek

cid, pos, length = self.png.read()
AttributeError: 'NoneType' object has no attribute 'read'
