Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Object-Oriented Python Advanced Objects Constructicons

Cameron Ganley
Cameron Ganley
3,507 Points

Console is telling me "ModuleNotFoundError: No module named 'books'"

I've already made the file books.py on my own (since for some reason, the workspaces still aren't working properly).

But yet when I try to do what Kenneth does in the python shell, it gives me that warning. What gives?

1 Answer

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hi Cameron Ganley 👋

It's hard to tell for sure what is causing your issue without seeing the code. But this error usually means that the file can not be found, so you'll want to make sure if the books.py file is present in the root of your project/workspace and if the spelling is correct.

If that doesn't fix the issue could you please share a snapshot of the workspace? This way we can have a look at your code and get a better idea of what is happening 🙂

Hope this helps! 😄