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

Terminal won't run python apps..

Hi everyone, out of nowhere while coding my app i tried to locally go in and start app.py as usual to see my website but when i tried to say python3 app.py it added - app.py - in between the title and then it does nothing. like at all. Mikes-MacBook-Pro:zestymemes MikeHansen$ python3 app.py Mikes-MacBook-Pro:zestymemes MikeHansen$ how it looks after i write app.py

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 67,989 Points

It's running your code. It seems the issue is your code produces no output. When running from the Command Line Interface, there needs to be an executed print statement to see output. Perhaps your code doesn't reach such a statement during execution.

It did out of nowhere kinda weird.. I didn't even change any code it just did it. So it works now :)

Chris Freeman
Chris Freeman
Treehouse Moderator 67,989 Points

I'm that good!! JK :grin:. Perhaps the file changes hadn't been save to disk yet thus it was running an old or stale version without print statements.