calthoff / self_taught

This repository contains the exercises for "The Self-Taught Programmer: The Definitive Guide to Programming Professionally."
http://theselftaughtprogrammer.io
267 stars 226 forks source link

Port is not an integer when it really is #20

Closed TheCoderKcid closed 2 years ago

TheCoderKcid commented 6 years ago

I copied the code just as it says for the website that says "Hello, World!", with app.run(port='8000') but it says: Traceback (most recent call last): File "<pyshell#9>", line 1, in app.run(port='8000') File "C:\Users\aripo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\flask\app.py", line 843, in run run_simple(host, port, self, **options) File "C:\Users\aripo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\werkzeug\serving.py", line 748, in run_simple raise TypeError('port must be an integer') TypeError: port must be an integer