Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [tornado]

Tornado is a scalable web server and web framework for Python specializing in handling thousands of simultaneous connections and real-time services.

0 votes
0 answers
9 views

Tornado timeout for read_bytes

I would like to wait only 5 seconds for a response; if it does not arrive, just move forward. async def Test(self, _connection): _connection.write('heartbeat\n'.encode('utf-8')) try: ...
Hugo Corrá's user avatar
  • 14.7k
1 vote
1 answer
68 views

multiple sniffers with scapy using tornado

I have 3 scripts: scriptA: creates a certain type of connection to a server using scapy and responds to some sort of keepalive packets it finds using AsyncSniffer(). This works fine. scriptB: sends a ...
Bobert1234's user avatar
0 votes
0 answers
28 views

Problems with python Tornado server

I'm trying to create a simple game on javascript where people can play together, I had issues on the communication between the client and the server using a JSON file. Without doing any changing on my ...
Luca Favaretto's user avatar
0 votes
0 answers
9 views

Tornado websocket Handler blocking requests while running bash script

I'm using tornado to create a websocket handler for my server, which execute a script and return output to client line by line. This is working fine until I make other requests to server while this ...
Manish Bhatti's user avatar
0 votes
0 answers
33 views

How to decode audio stream using tornado websocket?

I get an ogg-encoded audio stream received chunk by chunk via tornado.websocket.WebSocketHandler. My task is to decode it on-the-fly into PCM samples to feed into another algorithm. So the ideal ...
ababo's user avatar
  • 1,582
1 vote
0 answers
443 views

jupyter notebook - Why `tornado.web.HTTPError: HTTP 403: Forbidden`?

I'm trying to run Isaac Sim in jupyter notebook, but it worked before, and now it's broken. So I think this error is more general than only there. When I start jupyter notebook --MappingKernelManager....
Vladimir Fokow's user avatar
0 votes
0 answers
105 views

Flask with Livereload and Tornado causing error when I run my program

Hi this is my first stack post. It's also my first time using Flask. After coding a bit, I found it tedious to refresh my browser each time I made some change in my app.py file or something in ...
six's user avatar
  • 23
0 votes
0 answers
37 views

Tornado websocket connection working with python client but fails with javascript client code

In my project I have following websocket handler using tornado websockets: class EchoWebSocket(tornado.websocket.WebSocketHandler): def open(self): print("WebSocket opened") def ...
mbhatti_20's user avatar
0 votes
1 answer
41 views

run_in_executor causes a TimeoutError that was never retrieved

I've created a program that processes a stream of data coming from a device and writes it to a websocket for consumption by a web app. The library I've written to read from said device and yield its ...
bluppfisk's user avatar
  • 2,593
-1 votes
1 answer
424 views

Python async request throwing error : object NoneType can't be used in 'await' expression

I am testing tornado websocket api with streamlit hello example application, i added a async wrapper to tornado.websocket.WebSocketHandler get method to record websocket connections # pip3 install ...
creater cloud's user avatar
0 votes
1 answer
87 views

how make a class with async aiohttp tread safe?

I have this Python class and want your opinion on whether this cls._instance._cache = {} is thread safe for tornado? if not how can I handle this cache to be thread safe? import logging import aiohttp ...
Mini's user avatar
  • 1,160
0 votes
0 answers
61 views

Tornado server by the side of nginx (in docker)

I recently set up Seatable Enterprise on a VPS. Seatable is delivered as a Docker image that contains nginx. I used Let's Encrypt to generate the key/cert and configure an SSL access. I'm now trying ...
atelier des Basteks's user avatar
0 votes
0 answers
31 views

Error in launching the jupyter notebook from anaconda

Traceback (most recent call last): File "C:\Users\sandh\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in from notebook.notebookapp import main File "C:\Users\sandh\anaconda3\...
thanmayi tsl's user avatar
0 votes
0 answers
50 views

ModuleNotFoundError when building and running dockerfile

I am trying to build a dockerfile with Poetry. This is my current file structure: ├── backend_services │ ├── geocoding │ │ ├── __init__.py │ │ ├── application │ │ ├── Domain │ │ ├── ...
PepeLoperena's user avatar
0 votes
1 answer
210 views

Failed to start the Kernel AttributeError: 'SelectIOLoop' object has no attribute 'asyncio_loop'

I try to: import numpy as np as usual using vscode, but it Failed to start the Kernel: enter image description here AttributeError: 'SelectIOLoop' object has no attribute 'asyncio_loop'. View Jupyter ...
N K Akbar's user avatar

15 30 50 per page
1
2 3 4 5
251