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

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 68,423 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 68,423 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.