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

TypeError: sequence item 3: expected str instance, NoneType found #1

Open
nathmo opened this issue Jun 8, 2021 · 0 comments
Open

Comments

@nathmo
Copy link

nathmo commented Jun 8, 2021

Hi, thanks for this wonderful plugins and the work you put in.
I experience this issue :

File "PhotoFaceTagger.py", line 71, in main
    bar.update(step=picIndex)
  File "/home/nathann/PycharmProjects/PhotoFaceTagger/venv/lib/python3.8/site-packages/loadbar/LoadBar.py", line 100, in update
    s = ' '.join(l)
TypeError: sequence item 3: expected str instance, NoneType found

i managed to "Fix" it by changing

s = ' '.join(l)

with this dirty hack

        try:
            s = ' '.join(l)
        except:
            s = ' '.join(str(l))

Now the program run and the bar is crudely displayed (see bellow). Would you happen to have an Idea of why the issue happen and how to fix it.

[ ' 4 2 / 4 6 6 9 3 ' , ' ( 0 % ) ' , ' [ . ] ' , N o n e ]

(for reference here is my snippet of code that crashed it)

picIndex = 1
bar = LoadBar(max=corpusSize)  # display a not too verbose % of the work done
for pic in listOfPictures:  # this list contain 46 k pictures
     bar.update(step=picIndex) # 
    picIndex = picIndex + 1
bar.end()
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

1 participant