Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Object-Oriented Python Advanced Objects Math

NumString.py - I am still having issues with the Console, it keeps giving me an ImportError:

Workspace/Console it gives me an error every time i follow Kenneth directions. I am making sure i copied he does, yet, I still get an error.

from numstring import NumString Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'NumString'

Please help... So frustrated!

1 Answer

Mark Sebeck
Mark Sebeck
Treehouse Moderator 33,545 Points

Do you have a file named numstring.py with a class named NumString? I just opened up the workspace and got it to work using

from numstring import NumString

Might help if you could post a screen shot of your workspace