I am facing a problem in the backend code, when i run the python3 api/index.py , this error occurs. Please a help would be much appreciated. #64
Unanswered
AliHusseinAlmoussawi
asked this question in
Q&A
Replies: 1 comment
-
Refer to issue #29 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(.venv) drones@mohammad-HP-Z240-SFF-Workstation:~/PycharmProjects/Low-Cost-Mocap-main/computer_code$ python3 api/index.py
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
Press CTRL+C to quit
127.0.0.1 - - [15/Aug/2024 10:14:47] "GET /socket.io/?EIO=4&transport=polling&t=P5KuvcH HTTP/1.1" 200 -
127.0.0.1 - - [15/Aug/2024 10:14:47] "POST /socket.io/?EIO=4&transport=polling&t=P5KuvcT&sid=_KfGLMsTS9T7WueUAAAA HTTP/1.1" 200 -
127.0.0.1 - - [15/Aug/2024 10:14:47] "GET /socket.io/?EIO=4&transport=polling&t=P5KuvcU&sid=_KfGLMsTS9T7WueUAAAA HTTP/1.1" 200 -
127.0.0.1 - - [15/Aug/2024 10:14:47] "GET /socket.io/?EIO=4&transport=polling&t=P5Kuvcd&sid=_KfGLMsTS9T7WueUAAAA HTTP/1.1" 200 -
127.0.0.1 - - [15/Aug/2024 10:14:47] "POST /socket.io/?EIO=4&transport=polling&t=P5Kuvcd.0&sid=_KfGLMsTS9T7WueUAAAA HTTP/1.1" 200 -
127.0.0.1 - - [15/Aug/2024 10:14:47] "GET /socket.io/?EIO=4&transport=polling&t=P5Kuvch&sid=_KfGLMsTS9T7WueUAAAA HTTP/1.1" 200 -
post request handler error
Traceback (most recent call last):
File "/home/drones/PycharmProjects/YaZahraa/.venv/lib/python3.10/site-packages/engineio/server.py", line 294, in handle_request
socket.handle_post_request(environ)
File "/home/drones/PycharmProjects/YaZahraa/.venv/lib/python3.10/site-packages/engineio/socket.py", line 111, in handle_post_request
p = payload.Payload(encoded_payload=body)
File "/home/drones/PycharmProjects/YaZahraa/.venv/lib/python3.10/site-packages/engineio/payload.py", line 13, in init
self.decode(encoded_payload)
File "/home/drones/PycharmProjects/YaZahraa/.venv/lib/python3.10/site-packages/engineio/payload.py", line 44, in decode
raise ValueError('Too many packets in payload')
ValueError: Too many packets in payload
127.0.0.1 - - [15/Aug/2024 10:14:47] "POST /socket.io/?EIO=4&transport=polling&t=P5Kuvcn&sid=_KfGLMsTS9T7WueUAAAA HTTP/1.1" 200 -
Traceback (most recent call last):
File "/home/drones/PycharmProjects/Low-Cost-Mocap-main/computer_code/api/index.py", line 11, in
from flask_socketio import SocketIO
File "/home/drones/PycharmProjects/YaZahraa/.venv/lib/python3.10/site-packages/flask_socketio/init.py", line 21, in
import socketio
File "/home/drones/PycharmProjects/YaZahraa/.venv/lib/python3.10/site-packages/socketio/init.py", line 1, in
from .client import Client
File "/home/drones/PycharmProjects/YaZahraa/.venv/lib/python3.10/site-packages/socketio/client.py", line 3, in
import engineio
File "/home/drones/PycharmProjects/YaZahraa/.venv/lib/python3.10/site-packages/engineio/init.py", line 1, in
from .client import Client
File "/home/drones/PycharmProjects/YaZahraa/.venv/lib/python3.10/site-packages/engineio/client.py", line 21, in
from . import payload
File "/home/drones/PycharmProjects/YaZahraa/.venv/lib/python3.10/site-packages/engineio/payload.py", line 4, in
from flask_socketio import SocketIO
ImportError: cannot import name 'SocketIO' from partially initialized module 'flask_socketio' (most likely due to a circular import) (/home/drones/PycharmProjects/YaZahraa/.venv/lib/python3.10/site-packages/flask_socketio/init.py)
Beta Was this translation helpful? Give feedback.
All reactions