Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range #104

Open
haochile01 opened this issue Jun 19, 2022 · 2 comments
Open

IndexError: list index out of range #104

haochile01 opened this issue Jun 19, 2022 · 2 comments

Comments

@haochile01
Copy link

Exception in Tkinter callback
Traceback (most recent call last):
File "/Users/haochile/opt/miniconda3/envs/invoicenet/lib/python3.8/tkinter/init.py", line 1892, in call
return self.func(*args)
File "/Users/haochile/Documents/pythonProject1/InvoiceNet/invoicenet/gui/trainer.py", line 393, in _prepare_data
ngrams = util.create_ngrams(page, height=height, width=width)
File "/Users/haochile/Documents/pythonProject1/InvoiceNet/invoicenet/common/util.py", line 195, in create_ngrams
lines = divide_into_lines(words, height=img.size[1], width=img.size[0])
File "/Users/haochile/Documents/pythonProject1/InvoiceNet/invoicenet/common/util.py", line 172, in divide_into_lines
cur = words[1]
IndexError: list index out of range

I am so grateful that you @naiveHobo created this project. I'm really excited and interested in it. If successful (I mean I can run it) it will help my work so much.
I'm getting this error now, can anyone help me fix it? Thank you

@haochile01
Copy link
Author

I'm still fixing it, but it's nohope

@gempain
Copy link

gempain commented Jul 16, 2022

Related to #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants