From 867667531dcf7d1f49cb98972ae2256abe790ddf Mon Sep 17 00:00:00 2001 From: Pengrong Zhu Date: Wed, 8 Sep 2021 10:58:49 +0800 Subject: [PATCH] Update FAQ.rst --- docs/FAQ/FAQ.rst | 55 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/docs/FAQ/FAQ.rst b/docs/FAQ/FAQ.rst index df910e564..3667e0d04 100644 --- a/docs/FAQ/FAQ.rst +++ b/docs/FAQ/FAQ.rst @@ -97,4 +97,57 @@ Also, feel free to post a new issue in our GitHub repository. We always check ea python setup.py build_ext --inplace -- If the error occurs when importing ``qlib`` package with command ``python`` , users need to change the running directory to ensure that the script does not run in the project directory. \ No newline at end of file +- If the error occurs when importing ``qlib`` package with command ``python`` , users need to change the running directory to ensure that the script does not run in the project directory. + + +4. BadNamespaceError: / is not a connected namespace +------------------------------------------------------------------------------------------------------------------------------------ + +.. code-block:: python + + File "qlib_online.py", line 35, in + cal = D.calendar() + File "e:\code\python\microsoft\qlib_latest\qlib\qlib\data\data.py", line 973, in calendar + return Cal.calendar(start_time, end_time, freq, future=future) + File "e:\code\python\microsoft\qlib_latest\qlib\qlib\data\data.py", line 798, in calendar + self.conn.send_request( + File "e:\code\python\microsoft\qlib_latest\qlib\qlib\data\client.py", line 101, in send_request + self.sio.emit(request_type + "_request", request_content) + File "G:\apps\miniconda\envs\qlib\lib\site-packages\python_socketio-5.3.0-py3.8.egg\socketio\client.py", line 369, in emit + raise exceptions.BadNamespaceError( + BadNamespaceError: / is not a connected namespace. + +- The version of ``python-socketio`` in qlib needs to be the same as the version of ``python-socketio`` in qlib-server: + + .. code-block:: bash + + pip install -U python-socketio== + + +5. TypeError: send() got an unexpected keyword argument 'binary' +------------------------------------------------------------------------------------------------------------------------------------ + +.. code-block:: python + + File "qlib_online.py", line 35, in + cal = D.calendar() + File "e:\code\python\microsoft\qlib_latest\qlib\qlib\data\data.py", line 973, in calendar + return Cal.calendar(start_time, end_time, freq, future=future) + File "e:\code\python\microsoft\qlib_latest\qlib\qlib\data\data.py", line 798, in calendar + self.conn.send_request( + File "e:\code\python\microsoft\qlib_latest\qlib\qlib\data\client.py", line 101, in send_request + self.sio.emit(request_type + "_request", request_content) + File "G:\apps\miniconda\envs\qlib\lib\site-packages\socketio\client.py", line 263, in emit + self._send_packet(packet.Packet(packet.EVENT, namespace=namespace, + File "G:\apps\miniconda\envs\qlib\lib\site-packages\socketio\client.py", line 339, in _send_packet + self.eio.send(ep, binary=binary) + TypeError: send() got an unexpected keyword argument 'binary' + + +- The ``python-engineio`` version needs to be compatible with the ``python-socketio`` version, reference: https://github.com/miguelgrinberg/python-socketio#version-compatibility + + .. code-block:: bash + + pip install -U python-engineio== + # or + pip install -U python-socketio==3.1.2 python-engineio==3.13.2