Category "python"

How to manage audio in and out from and to file of Huawei GSM modems?

I've got a Huawei E173 USB dongle connected to a Raspberry PI. I'm trying to use the device to make and receive calls. For my purpose, it is needed (i) to save

Systemd consumer service starts before broker (RabbitMQ )

I have a RabbitMQ server set up on my raspberry Pi and I want the same device to run a consumer to handle messages to one of my queues. I first tried executing

Display and EDIT opencv image using Tkinter

I have a simple GUI app to display image from chosen camera and transformed image. To do transformation I need to choose 4 points on image, so I would like to p

aiogram Why code has expired for different users with the same api_i and api_hash?

I working on python telegram bot that allow login telegram client using registered user and then do some actions using user credentials ... ... But I got the fo

how to pass variable between to vue file?

how to pass variable between to vue file ? Hello, this is my file SendCode.vue has variable NewEmail which I want to use it in another file changePass.vue . Is

Python sum of values in dataset

I have this dataframe (ID is a string and Value a float): ID Value 1 0.0 1.1 0.0 1.2 0.0 1.2.1 2750

Pygame window is not responding after just making it

I wanted to make a game using pygame and I started my code making the pygame window import pygame pygame.init() pygame.display.set_mode((1500, 1000)) But every

How to remove cloth from a person using python

My Input Image is this. I need only the face and hair from that image and others will convert to white background including cloth. I used mediapipe's SelfiSegm

Attempting to Cache s3 files

I have two pipelines that I run. The first pipeline reads files from s3 does some processing and updates the files. The second pipeline runs multiple jobs and f

Is running Selenium on Google Colab possible?

I'm having difficulty working with Selenium directly from Google Colab. Whenever I run the code below on my local machine I get success, however I would like to

Python3 AttributeError: module 'signal' has no attribute 'getsignal'

Trying to import matplotlib for Python 3.8.2 with from matplotlib import pyplot as plt I am using matplotlib version 3.2.2 Traceback (most recent call last):

File exists but Colab says no such file found

I mounted the files from google drive correctly with the following code. from google.colab import drive drive.mount('/content/gdrive') base_path = "/content/gdr

I want modify this code as when a user gives right name but wrong password code must run from enter password not from enter username again

while True: print("who is this?") name=input() if name!='shubh': continue print("hi its you shubh. type your password") password=i

module 'skimage.data' has no attribute 'imread'

import skimage image = skimage.data.imread("my_image.png") I used this code to read an image, but I got an error as "skimage.data" has no attribute "imread".

Sum up all Floats in a List of 'Mixed' Elements

What are some primitive ways to get a sum of all floats in a list that looks like this: list_1 = [['coffee', 6.99], ['cream', 0.6], ['berries', 3.5], ['milk', 1

How do I plot my datetime on the x axis when this value is used as index?

I have a short question. This is my dataframe: gradient result date 2022-04-15 09:43:20 0.206947 0.10

How to search for dialogues in quotation marks and dashes?

I would like to search for dialogues in between quotation marks and dashes, but I can't seem to code it. Regarding dialogues marked by quotation marks, I have f

Scraping video url from multiple pages of a website

I am doing scraping using selenium. i want to scrape all the video urls that are present in the 626 products on the 25 pages. but while extracting the url it gi

Processing arguments for subprocesses using argparse: "Expected one argument"

First of all, I am sorry about the title that does not give a perfect idea of what my problem is, I kinda struggled with it, so I am going to illustrate it more

error: (-2:Unspecified error) Can't create layer "NoOp" of type "NoOp" in function 'cv::dnn::dnn4_v20210608::LayerData::getLayerInstance'

I am using tensorflow 2.4 and Cuda 11. I've build a CNN model from scratch using tensorflow and frozen it to create the .pb and .pbtxt file.Now I am trying to m