2017-09-22 7 views
0

私は基本的なイブアプリケーションを実行しようとしています。このページには例があります:http://eve.readthedocs.io/en/stable/quickstart.htmlPython Eve UnicodeDecodeError

Traceback (most recent call last): 
    File "C:/Users/marti_000/BabyProjects/webApp/run.py", line 5, in <module> 
    app.run() 
    File "C:\Users\marti_000\AppData\Local\Programs\Python\Python36- 
32\lib\site-packages\eve\flaskapp.py", line 201, in run 
    super(Eve, self).run(host, port, debug, **options) 
    File "C:\Users\marti_000\AppData\Local\Programs\Python\Python36- 
32\lib\site-packages\flask\app.py", line 841, in run 
    run_simple(host, port, self, **options) 
    File "C:\Users\marti_000\AppData\Local\Programs\Python\Python36- 
32\lib\site-packages\werkzeug\serving.py", line 708, in run_simple 
    inner() 
    File "C:\Users\marti_000\AppData\Local\Programs\Python\Python36- 
32\lib\site-packages\werkzeug\serving.py", line 670, in inner 
    fd=fd) 
    File "C:\Users\marti_000\AppData\Local\Programs\Python\Python36- 
32\lib\site-packages\werkzeug\serving.py", line 564, in make_server 
    passthrough_errors, ssl_context, fd=fd) 
    File "C:\Users\marti_000\AppData\Local\Programs\Python\Python36- 
32\lib\site-packages\werkzeug\serving.py", line 476, in __init__ 
    HTTPServer.__init__(self, (host, int(port)), handler) 
    File "C:\Users\marti_000\AppData\Local\Programs\Python\Python36- 
32\lib\socketserver.py", line 453, in __init__ 
    self.server_bind() 
    File "C:\Users\marti_000\AppData\Local\Programs\Python\Python36- 
32\lib\http\server.py", line 138, in server_bind 
    self.server_name = socket.getfqdn(host) 
    File "C:\Users\marti_000\AppData\Local\Programs\Python\Python36- 
32\lib\socket.py", line 673, in getfqdn 
    hostname, aliases, ipaddrs = gethostbyaddr(name) 
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9e in position 1: 
invalid start byte 

PS:私は常に、このエラーを取得する

DOMAIN = {'people': {}} 

そして run.py

from eve import Eve 
app = Eve() 

if __name__ == '__main__': 
    app.run() 

settings.py:私はPyCharm、これら2つの.pyファイルでプロジェクトを作成したI Python 3.6 32ビット

+0

インストール文書で推奨されているようにvenv内に 'eve'をインストールしましたか? 'ピップリスト'を実行すると何が表示されますか? –

+0

私はこれを得る---> https://i.imgur.com/KIWhNQC.png –

答えて

0

行:ホスト名、エイリアス、ipaddrs = gethostbyaddr(name)throw Un私のホスト名が "Džida"なのでicodeDecodeError。私は特別な文字を使わずに自分のホスト名を名前に変えました。