Pythonista-Issues icon indicating copy to clipboard operation
Pythonista-Issues copied to clipboard

list index out of range in ui.py (line 168)

Open francois-baptiste opened this issue 5 years ago • 5 comments
trafficstars

IMG_0055

To reproduce the bug, execute the script below and swipe up over the empty list: https://github.com/humberry/ui-tutorial/blob/bcf14080fc1c1ac4345c9dcaaf272148810706eb/MyView.py https://github.com/humberry/ui-tutorial/blob/bcf14080fc1c1ac4345c9dcaaf272148810706eb/MyView.pyui

francois-baptiste avatar Nov 26 '19 23:11 francois-baptiste

Print Traceback please.

cclauss avatar Nov 26 '19 23:11 cclauss

Traceback (most recent call last):  File "/var/containers/Bundle/Application/3D5D5325-5625-4118-8024-AE85C092AD0A/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/ui.py", line 168, in tableview_cell_for_row    item = self.items[row]IndexError: list index out of range

francois-baptiste avatar Nov 26 '19 23:11 francois-baptiste

That is all? Nothing that talks about MyView.py?

cclauss avatar Nov 26 '19 23:11 cclauss

Yes that's all...

francois-baptiste avatar Nov 26 '19 23:11 francois-baptiste

same error with python 2.7 by the way...

francois-baptiste avatar Nov 26 '19 23:11 francois-baptiste