Traceback (most recent call last):


 "bug_demo.py", line 62, in <module>

main()


 "bug_demo.py", line 53, in main

fs_obj.solve(tee=stee,options={'tol':1e-10})


 "/home/alee/IDAES Repository/models-master/idaes_models/core/process_base.py", line 923, in solve

self.pyomo_results = self.pyomo_solver.solve(m, *args, **kwargs)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/opt/base/solvers.py", line 581, in solve

self._presolve(*args, **kwds)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/solvers/plugins/solvers/ASL.py", line 188, in _presolve

SystemCallSolver._presolve(self, *args, **kwds)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/opt/solver/shellcmd.py", line 195, in _presolve

OptSolver._presolve(self, *args, **kwds)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/opt/base/solvers.py", line 660, in _presolve

**kwds)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/opt/base/solvers.py", line 728, in _convert_problem

**kwds)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/opt/base/convert.py", line 109, in convert_problem

problem_files, symbol_map = converter.apply(*tmp, **tmpkw)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/solvers/plugins/converter/model.py", line 163, in apply

io_options=io_options)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/core/base/block.py", line 1623, in write

io_options)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/repn/plugins/ampl/ampl_.py", line 356, in __call__

include_all_variable_bounds=include_all_variable_bounds)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/repn/plugins/ampl/ampl_.py", line 856, in _print_model_NL

ampl_repn = generate_ampl_repn(constraint_data.body)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/repn/ampl_repn.py", line 743, in generate_ampl_repn

repn = _generate_ampl_repn(exp)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/repn/ampl_repn.py", line 311, in _generate_ampl_repn

child_repn = _generate_ampl_repn(child_exp)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/repn/ampl_repn.py", line 652, in _generate_ampl_repn

child_repn = _generate_ampl_repn(exp._args[0])


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/repn/ampl_repn.py", line 380, in _generate_ampl_repn

e_repn = _generate_ampl_repn(e)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/repn/ampl_repn.py", line 311, in _generate_ampl_repn

child_repn = _generate_ampl_repn(child_exp)


 "/home/alee/anaconda2/lib/python2.7/site-packages/pyomo/repn/ampl_repn.py", line 413, in _generate_ampl_repn

ampl_repn = current_repn = arg_repns[0]
IndexError: list index out of range

Traceback (most recent call last):


 "<ipython-input-4-1098f43bd2f4>", line 137, in get_weibo_info

is_empty = info[0].xpath("div/span[@class='ctt']")
IndexError: list index out of range
