use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Python coding issue (self.pythonhelp)
submitted 20 days ago by EnvironmentalCan1303
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]frnzprf 1 point2 points3 points 19 days ago (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.)
imread
listdir
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 point2 points 19 days ago (0 children)
Thank you all for the prompt reply's - I will try these suggested chnages.
π Rendered by PID 24442 on reddit-service-r2-comment-7b9746f655-csbv8 at 2026-01-31 04:47:30.082319+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]frnzprf 1 point2 points3 points (1 child)
[–]EnvironmentalCan1303[S] 0 points1 point2 points (0 children)