Skip to content

Commit 8676675

Browse files
zhupryou-n-g
authored andcommitted
Update FAQ.rst
1 parent 0fc5233 commit 8676675

File tree

1 file changed

+54
-1
lines changed

1 file changed

+54
-1
lines changed

docs/FAQ/FAQ.rst

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,57 @@ Also, feel free to post a new issue in our GitHub repository. We always check ea
9797
9898
python setup.py build_ext --inplace
9999
100-
- 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.
100+
- 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.
101+
102+
103+
4. BadNamespaceError: / is not a connected namespace
104+
------------------------------------------------------------------------------------------------------------------------------------
105+
106+
.. code-block:: python
107+
108+
File "qlib_online.py", line 35, in <module>
109+
cal = D.calendar()
110+
File "e:\code\python\microsoft\qlib_latest\qlib\qlib\data\data.py", line 973, in calendar
111+
return Cal.calendar(start_time, end_time, freq, future=future)
112+
File "e:\code\python\microsoft\qlib_latest\qlib\qlib\data\data.py", line 798, in calendar
113+
self.conn.send_request(
114+
File "e:\code\python\microsoft\qlib_latest\qlib\qlib\data\client.py", line 101, in send_request
115+
self.sio.emit(request_type + "_request", request_content)
116+
File "G:\apps\miniconda\envs\qlib\lib\site-packages\python_socketio-5.3.0-py3.8.egg\socketio\client.py", line 369, in emit
117+
raise exceptions.BadNamespaceError(
118+
BadNamespaceError: / is not a connected namespace.
119+
120+
- The version of ``python-socketio`` in qlib needs to be the same as the version of ``python-socketio`` in qlib-server:
121+
122+
.. code-block:: bash
123+
124+
pip install -U python-socketio==<qlib-server python-socketio version>
125+
126+
127+
5. TypeError: send() got an unexpected keyword argument 'binary'
128+
------------------------------------------------------------------------------------------------------------------------------------
129+
130+
.. code-block:: python
131+
132+
File "qlib_online.py", line 35, in <module>
133+
cal = D.calendar()
134+
File "e:\code\python\microsoft\qlib_latest\qlib\qlib\data\data.py", line 973, in calendar
135+
return Cal.calendar(start_time, end_time, freq, future=future)
136+
File "e:\code\python\microsoft\qlib_latest\qlib\qlib\data\data.py", line 798, in calendar
137+
self.conn.send_request(
138+
File "e:\code\python\microsoft\qlib_latest\qlib\qlib\data\client.py", line 101, in send_request
139+
self.sio.emit(request_type + "_request", request_content)
140+
File "G:\apps\miniconda\envs\qlib\lib\site-packages\socketio\client.py", line 263, in emit
141+
self._send_packet(packet.Packet(packet.EVENT, namespace=namespace,
142+
File "G:\apps\miniconda\envs\qlib\lib\site-packages\socketio\client.py", line 339, in _send_packet
143+
self.eio.send(ep, binary=binary)
144+
TypeError: send() got an unexpected keyword argument 'binary'
145+
146+
147+
- The ``python-engineio`` version needs to be compatible with the ``python-socketio`` version, reference: https://github.com/miguelgrinberg/python-socketio#version-compatibility
148+
149+
.. code-block:: bash
150+
151+
pip install -U python-engineio==<compatible python-socketio version>
152+
# or
153+
pip install -U python-socketio==3.1.2 python-engineio==3.13.2

0 commit comments

Comments
 (0)