I have a function that currently uses the @timeout_decorator decorator to time a function out after a few seconds. However, rather than timing the function out, I would like to return an empty list . I am open to using other packages/decorators if necessary provided they can be easily installed via PyPi. Here is my ..
A few months ago I came up with the idea to make a functional discord bot for my friend’s server. My friend asked me if I could make a member timeout command, so I started my research. Since discord.py will not be updated anymore, this question might be useless and time wasting, but I really ..
thank you guys for supporting me Currently I’m using a FastAPI server in Python and VueJS in client side. I had an API to call for starting a virtual EC2 machine in AWS. This work took so much time. So my request was slow, and it always return 503 code to client, although in server ..
I need to put a timeout on a process that is created inside a thread, however i encountered a strange behavoir and i’m not sure how to proceed. The following code executed on Linux produces a wierd bug where (if the number of thrads is greater than 2 (my laptop has 8 core) or the ..
I’m executing PSexec SNMP command from Python to remote PC using a batch file and expecting to get ‘TIMEOUT’ in the SNMP response, and I want to save this ‘TIMEOUT’ event to a log file. But the log file created is empty, I ran it manually and see the ‘TIMEOUT’ event in CMD window but ..
I’m working on a small text-based-RPG. A lot of the tasks require you to wait a random amount of time. I haven’t figured out a way to get timeout to work. Time Sleep is closer to what I need, but it freezes the software. so I have my code like such: import PySimpleGUI as sg ..
We tried the Mongo in class today, but the system kept showing a timeout error. I’ve tried to reset the password in Mongo, create a new account, restart Python and my laptop, but the problem’s still here. enter image description hereenter image description here Source: Python..
I’m relatively new to coding and kinda unfamiliar with stacktrace errors. I have been given this error, but im not sure which part of my code do i fix? Did the error come up because of a NoSuchElementException, or was it due to a timeout error? I thought that within my code I had dealt ..
I am studying serial communication with python. It is really confusing when I could use serial.readable(). I thought I could use that when I am using conditional, however, it did not work as I intended. Let’s say we have 2 port. One is called Transmitter and the other is called Receiver. My python script looks ..
Good afternoon! I just started using jupyter notebook today and weirdly get the error "Timeout waiting for kernel_info_reply" very irregularly when I try to restart the kernel. I installed it over and use it in PayCharm Prof. This is the version: jupyter –version IPython : 7.28.0 ipykernel : 6.4.2 ipywidgets : 7.6.5 jupyter_client : 7.0.6 ..