Category "python-3.x"

Python chat server with selectable specific user to chat

I am trying to write simple chat based desktop support app. The gui is not problem, but I have problem with sending messages. The server sends it to all connect

torch vision: libc++abi: terminating with uncaught exception of type std::length_error: vector

recently, I started having a weird error when importing torch vision. I have freshly installed MacBook M1, latest Monterey build 12.3.1. Mini-forge is the first

Is there a way to get win32 file handle from pipe's C file descriptor (python)?

Searched for about 1 hour and still unable to find any relevant search results. I want to wait on multiple pipes in a single thread, but unable to convert the f

groupedby_obj How to select and use data given under a key

Code: grouped_object = cov.groupby(["Continent"]) for key, item in grouped_obj: print('key is: ' + str(key)) Output: key is: Africa key is: Asia key is: Eu

Winidea Python script called from Jenkins

I am trying to launch Winidea configuration stored on U: drive. I am able to execute this script using command promt. However when I am trying to execute this s

how to apply a format on multiple excel files at once (hide gridlines & autofit columns)

I'm trying to apply a specific format on an iterate excel files, i need to hide the gridlines and autofit columns width, i tried many codes and styles but no on

CV2 cap.set(1,idx); cap.read(), Does it Read Frame idx or Frame idx+1

In CV2 will this chunk of code read the frame for the given frame number or the next frame? desiredFrames = [3,5,7,n] cap = cv2.VideoCapture("somefile") for id

Add 1 hour to time from user input

I'm coding a script that asks the user for a time (24 hour format), and then adding 1 hour to the inputted time. Later on in my script, I add the time that it g

How to make a developed perl package with a python wrapper callable from everywhere

A bit of context: I have a Perl parser, named parse_log.pl, that parses logs into a .m file (MATLAB function). In the .m file, the logs are stored into a MATLAB

Tkinter how update main window combobox values from Toplevel list python3.8

I have 3 modules (small, dont worry). main_module = it has a combobox and a button. Comobobox list must be update each time a list (in module2) increases in nu

How select options from a smart-select?

I am trying to get all the options from a dropdown with Selenium but I get the exception that the Select module does not work with smart-select. Is there any wa

how to identify type of noise (if Gaussian/salt and paper etc) in an image using python

Experts, From Noise Estimation / Noise Measurement in Image , we understood that if any image is having noise or not. but different types of noise has diffe

Ubuntu Terminal Opens Python Instead of Running Python File

I'm trying to run a python script from the Ubuntu terminal with python3 index.py but Ubuntu just opens the Python terminal instead of running the actual script.

im not able to save the screen shot from python

kindly help me im not able to save the screen shot on the desired folder the code is running however the screen shot is not saving on the path please help impor

PyGTK entry.set_placeholder_text doesnt work - missing tex

I am attaching a piece of my code in which I try to display the text in the Entry field with predefined text. I use entry.set_placeholder_text for this, but unf

selenium.common.exceptions.SessionNotCreatedException: Message: session not created from timeout: Timed out receiving message from renderer: 600,000

I get following error: selenium.common.exceptions.SessionNotCreatedException: Message: session not created from timeout: Timed out receiving message from render

how to stop a func from running and return a value after one minute?

I would like to call a func and stop it from running after one minute, returning a value. i have a code that looks similar to that: def foo(txt): best_value=

Cannot perform std with type object Dask

performing normal calculation on dask is giving me the error x_std = x.std().compute() Computing head: x.head() LocalTime Ask Bid 0 20

Unable to download data from Blob storage. Getting 404 returned

I'm using a Python Azure function which gets invoked when I add a blob to a storage container. The function is triggered ok, but I get a 404 response when tryin

Filter between dates in MongoEngine

I have a problem filtering between date_from and date_to in MongoEngine. This is the document structure and the next MongoEngine query: def devices_graph(device