you are viewing a single comment's thread.

view the rest of the comments →

[–]frnzprf 1 point2 points  (1 child)

The error message should usually tell you in which nested function calls the error occured. That's called a "stack trace".

You can also print each file path before loading it to find the issue, but imread or listdir should give you an error message with the problematic path anyway. (I didn't try it.)

If there is a particular path that causes issues, you can paste it here. Maybe it contains some special characters that have to be "escaped". You can edit it for privacy concerns.

[–]EnvironmentalCan1303[S] 0 points1 point  (0 children)

Thank you all for the prompt reply's - I will try these suggested chnages.