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 Controlling Conversion

brandon supinski
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
brandon supinski
Front End Web Development Techdegree Graduate 18,682 Points

getting ModuleNotFoundError: No module named 'numstring

Getting error ModuleNotFoundError: No module named 'numstring' when trying to run from numstring import NumString. I did everything Kenneth has done, and tried it many times. No I am not in the rpg directory and yes numstring.py file is in the OO Python file.

Please tell me they are redoing everything Kenneth Love has done for this beginners to python track. The guy is very knowledgeable about python obviously. But the way he teaches is just way to frustrating to want to continue, it's like he is teaching experts in python already. I've watched all the videos hes taught many times and still confused on most concepts. I've noticed his videos by far have had the most questions on explanations. It's getting to the point where I want to give up and try another Python learning tool.

Can you post a snapshot? Click the camera icon in the upper right corner, then 'Take Snapshot', then post the link created here.

3 Answers

There may be two things going on

1) First off numstring.py is in the OO Python directory. To run from numstring import NumString you will want to make sure you are in that directory first. From the start you can type cd "OO Python" into the console. Then ls to make sure the file is there.

2) Inside numstring.py your class name is Numstring with a lowercase s. So you can either change the name to NumString or use use from numstring import Numstring.

brandon supinski
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
brandon supinski
Front End Web Development Techdegree Graduate 18,682 Points

It wouldn't accept OO Python so i had to make in one word in the file. Very glad the "Instructors" workspace looks like the one we open up. And stuff never explained before is still not explained.

You have to include the quotes around OO Python with cd to handle the space but that works too.