Category "python"

How can I keep the anchors and aliases as the are?

E.g. input file username: &username john password: &password xyz server: &servername 192.168.0.1 host: server: *servername username: *username p

Altair: persistent tooltip

I have a horizontal line that changes height depending on brush selection. Is there anyway to constantly display the line as the line goes up and down? Below is

[mac Monterey][Python 3.10.4][tkinter 8.6] Calling tkinter askOpenfilename crashes when repeatedly creating a window

I have a python program that allows users to repeatedly press a key that will create a tkinter window where they can open an image an manipulate it. The problem

PyFtdi Value Error 'No backend available' every now and then

I'm using pyftdi (https://eblot.github.io/pyftdi/) to handle a FTDI ft4232h. Everything usually works fine but every now and then I come across a ValueError say

Installing packages with pip

I have been advised using pip in a Anaconda virtual environment is bad. But some packages are not on conda or on conda forge. When I run conda activate virtuale

Problem of running samtools in python using subprocess.run()

I'm using subprocesss.run() to run samtools command in python. The code is as below: result = subprocess.run(['samtools', 'faidx', 'hg38.fa.gz', 'chr1:169699712

pip install PyQt6 producing "No matching distribution..." error

I've been trying to install PyQt6 on my Ubuntu machine, running Python 3.8.10. Following the instructions on the site, I have tried the following: I have also

how can i change the value of variable just for a specific function?

x=2 def fun(): y=x+2 print(y) def main_fun(): x=10 fun() print(x) fun() main_fun() fun() print(x) I want the that the value of x when i call m

Unzipping the zipfiles within a url zipfile python

I can unzip a url zip file of csvs using the below code: import requests from zipfile import ZipFile from io import BytesIO import pandas as pd z = 'www.someur

theme style not working on other screens and dialogs KIVY - KIVYMD

I created a button that changes the color of the application. In the main screen it works totally fine, however it does not change the color of the theme in the

Python Opencv how to improve SIFT output?

train_image = 'train_image location' sift = cv2.SIFT_create() gray = cv2.cvtColor(train_image, cv2.COLOR_BGR2GRAY) (kp, descs)

How to sort part of values in list? [closed]

I want to sort the value which startswith chapter in list, but I have no idea to implement this. my list ["prologue", "chapter 1", "chapter 3

ERROR: Could not find a version that satisfies the requirement python-opencv

I am trying to install the opencv python library. This is the command I ran: pip install python-opencv I got this error: ERROR: Could not find a version that s

Convert GMT_timezone to local datetime in python

I have a date with GMT with different timezones +6 & +5 gmt_time6= "2022-05-06T15:11:29.695GMT+06:00" gmt_time5 = "2022-05-06T14:11:29.785GMT+05:00" How to

Moving window between monitors when using multiple desktops

The following script moves window from my left monitor to the right monitor (2560x1440 each) win = win32gui.GetForegroundWindow() winPlacement = list(win32gui.G

Operate on .dat file, pickle mod

I have project to do in my studies and it is my first project in Python. I must create simply program for bank. With GUI I'm creating an account on classes and

django - How to auto-populate existing data in django form while updating

I want to auto populate my update form in django with the existing data, but instance=request.user and instance=request.user.profile seems not to be auto popula

Django - Add a confirmation email fuction [closed]

Create user page image So I have a fully working signup page so far. I want to add a simple confirmation email function, that sends an email t

Issues with selecting #text inside an html, div enclosed in double quotes using xpath/lxml in python

I'm trying to extract the Fund Summary text on the following Yahoo Finance page using python: Thus far, XPath has worked well using the XPath with the text() me

Training custom object detection train_spec and eval_specs[0] not found

I'm trying to train a custom object detector using tensorflow on google colab using this Building your own object detector — PyTorch vs TensorFlow and how