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

HAROLD MORI
HAROLD MORI
3,629 Points

ModuleNotFoundError: No module named 'books'

anyone with this problem?

Steven Parker
Steven Parker
231,248 Points

You can make it possible for us to replicate the issue if you share the entire workspace by making a snapshot and posting the link to it.

HAROLD MORI
HAROLD MORI
3,629 Points

Steven Parker , thanks for the answer.

the workshop is this one

https://w.trhou.se/bqw70mpwff

1 Answer

Steven Parker
Steven Parker
231,248 Points

You didn't say exactly what you do to cause the error, but it looks like the "books.py" module may be in the wrong directory. Try giving this system command before running "python" (when the prompt is like "treehouse:~/workspace$ "):

mv __pycache__/books.py .

Note the space and period at the end :point_up:

You could also use the navigator pane on the left to drag it from the __pycache__ directory and drop it in the main one.