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 trialMike Hansen
Python Web Development Techdegree Student 3,419 PointsTerminal 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
Treehouse Moderator 68,423 PointsIt'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.
Mike Hansen
Python Web Development Techdegree Student 3,419 PointsMike Hansen
Python Web Development Techdegree Student 3,419 PointsIt did out of nowhere kinda weird.. I didn't even change any code it just did it. So it works now :)
Chris Freeman
Treehouse Moderator 68,423 PointsChris Freeman
Treehouse Moderator 68,423 PointsI'm that good!! JK . Perhaps the file changes hadn't been save to disk yet thus it was running an old or stale version without print statements.