diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py index 25427af4..80cd2bbe 100644 --- a/gns3server/web/web_server.py +++ b/gns3server/web/web_server.py @@ -29,6 +29,10 @@ import functools import time import atexit +# Import encoding now, to avoid implicit import later. +# Implicit import within threads may cause LookupError when standard library is in a ZIP +import encodings.idna + from .route import Route from ..config import Config from ..compute import MODULES