Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+3 votes

An error keeps recurring every time I try to input an image, it gives me this error ''TypeError: 'module' object is not callable". What should I do?

asked in CSC201 Spring 2021 by (8 points)

2 Answers

+4 votes

This happens because Python gets confused between class name and module name. If you are importing something with the same name as your class. This goes back to have unique variable names. Try changing your class name and it shall work.

answered by (8 points)
+2

Thank you, It worked

+2 votes

Might be that your class or module name is similar, which make python misunderstood, maybe try more uniquename like write the whole thing out more

answered by (8 points)
...