-
-
Notifications
You must be signed in to change notification settings - Fork 161
Closed
Labels
Description
Hi,
We suddenly this morning started getting an Import Error stack trace from engineio:
/usr/local/lib/python3.7/site-packages/flask_socketio/__init__.py:21: in <module>
import socketio
/usr/local/lib/python3.7/site-packages/socketio/__init__.py:3: in <module>
from .client import Client
/usr/local/lib/python3.7/site-packages/socketio/client.py:11: in <module>
from . import packet
/usr/local/lib/python3.7/site-packages/socketio/packet.py:2: in <module>
from engineio import json as _json
E ImportError: cannot import name 'json' from 'engineio' (/usr/local/lib/python3.7/site-packages/engineio/__init__.py)
I was able to fix this by upgrading from Flask-Socketio 4.3.1 to 4.3.2 which I noticed has this requirement change which ensures we don't go to 5. Without that we'd hit latest version of socketio which is dependent on the latest version of engineio https://github.com/miguelgrinberg/python-socketio/blob/master/setup.py#L33 . Since this error just popped up and the release just recently came out 4/15 I believe the Import Error is related.