from flask import Flask
app = Flask(__name__)
app.run()
* Serving Flask app "app" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off
Traceback (most recent call last):
File "C:\Users\Rizvan\Desktop\Flask\app\app.py", line 6, in
app.run()
File "C:\Users\Rizvan\Desktop\Flask\venv\lib\site-packages\flask\app.py", line 943, in run
run_simple(host, port, self, **options)
File "C:\Users\Rizvan\Desktop\Flask\venv\lib\site-packages\werkzeug\serving.py", line 814, in run_simple
inner()
File "C:\Users\Rizvan\Desktop\Flask\venv\lib\site-packages\werkzeug\serving.py", line 774, in inner
fd=fd)
File "C:\Users\Rizvan\Desktop\Flask\venv\lib\site-packages\werkzeug\serving.py", line 660, in make_server
passthrough_errors, ssl_context, fd=fd)
File "C:\Users\Rizvan\Desktop\Flask\venv\lib\site-packages\werkzeug\serving.py", line 577, in __init__
self.address_family), handler)
File "d:\anaconda\Lib\socketserver.py", line 453, in __init__
self.server_bind()
File "d:\anaconda\Lib\http\server.py", line 138, in server_bind
self.server_name = socket.getfqdn(host)
File "d:\anaconda\Lib\socket.py", line 673, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 7: invalid continuation byte
При запуске Flask сервера вылезает вот такая вот ошибка .