Quantcast
Channel: Active questions tagged python - Stack Overflow
Browsing all 13921 articles
Browse latest View live

plumbum fails to connect via jump host, but raw command succeeds

I'm trying to SSH into final_machine via the jump host portal_machine. Both remote machines are Linux, local is Windows. When I run the following command in a cmd, I can successfully connectssh...

View Article


Tensorflow 2.15 not detecting NVidia GPU on Windows 11

NVidia RTX 2060 not detected by tensorflow 2.15.0 on Windows 11.Already installed CUDA SDK and CuDNN and added to PATH.I’ve tried running tf.list_physical_devices() and I get prompetd with a list of...

View Article


Airflow custom plugin: Value is not returned in XCOM even though I am able to...

I am trying to push the results of SQL commands in airflow SQLHook. Even though I am able to view the command results in log but it is not pushed into xcom.class SqlExecuteOperator(BaseOperator):...

View Article

KML/KMZ in python

I have a matlab figure that I want to convert to a kml/kmz and cant seem to figure it out, I currently have a .csv where I use I sorted each point to a hex value, I just can't convert it to a kml/kmz...

View Article

Where is the sys module located, or how to find it in Win 11 & Python

Does anyone know how to find where the sys module is installed in a Windows 11 install of anaconda3 & Python? I've tried looking in the Lib folder already and although there is a file called...

View Article


Why the selenium is not locating the element

I'm checking if some element is clicked using selenium, but I guess it's not working. here is the code:try: print("espere o elemento") container = WebDriverWait(driver, 30).until(...

View Article

prediction logits using lxmert with hugging face library

how can we get the prediction logits in the lxmert model using hugging face library? It's fairly easy to get in visualbert, but I'm not able to get it with the lxmert model. In case of visualbert...

View Article

How to make an object's clones follow the same function

I have an object, let's call it 'ant', and I made it move, and every 10 second I make a clone of it,but the clone doesn't follow the same function that the ant had.Is there a way to make the clones...

View Article


Time Intervals In Python

I am making an app to schedule tasks (to actual people), and as part of it, I want them to be able to enter unavailability times in which they cannot be assigned tasks.So I am looking for a notion of a...

View Article


how to rotate multiple cookies with selenium python

`hello please i am new to selenium, i need help in writing a code that can rotate proxy, rotate user agent and and rotate cookies and then click on ads but it is giving me hard time can anyone help...

View Article

How to set an https web server on Raspberry pi pico W

I recently got stuck on a project, I would like to know if there's a way to get the same result on a RPPicoW as on a desktop. I'm trying to deploy a webpage on RPPicoW that allows me to show a...

View Article

CS50 "Finance" problem, "Buy" function - Harvard CS50 course

Currently I am receiving the following errors for the "buy" section of the code. The code will run successfully and handles "buy" orders successfully, however check50 is returning these errors and I...

View Article

Errors with quadratic formula and multithreading in Python

My code:import mathimport threadingA = input("What is your a? ")B = input("What is your B? ")C = input("What is your C? ")a = int(A)b = int(B)c = int(C)def Quad_pt1(): Pt1 = b*-1 return Pt1def...

View Article


Why don't API calls to /search get all matching results?

I'm trying to find rows in some HuggingFace datasets which have a certain word or phrase in a specific column (e.g., "output"). I've written some basic Python code to do this, but I noticed an issue at...

View Article

How to set position moviepy?

I want to сhange video resolution and then superimpose it on the picture in the center.`from moviepy.editor import *img = ImageClip("image.png")video2 =...

View Article


Image may be NSFW.
Clik here to view.

how to filter a bi report dropdown with selenium

I'm trying to select an item in the drop-down, and I'm not able to, it stops at the drop-down part and doesn't select the item I want, which in this case is to clear what is written and filter it...

View Article

Image may be NSFW.
Clik here to view.

Parse nested Json of different nested patterns retrieve and compare...

Working with a JSON file that has nested structures and I want to extract attributes from the last level of the nested structure. Additionally, I want to compare these attributes with elements in an...

View Article


Image may be NSFW.
Clik here to view.

Crawled pages but scrape 0 items; contents through scrapy shell fetch...

I'm a newbie in scrapy frame. I would like to scrape the news from https://www.snl24.com/dailysun/news. It will pop up news through infinite scroll. I encontered 2 issues during these days.Since it...

View Article

Replacing google slides images using slides api

I have the following scripts to update the images in google slides, it works fine but sometimes it gives me 400 error, service account has a write permission to the drive/images and the...

View Article

Anyone can help me on this discord bot command error

I'm doing a discord bot, at first it's just an XP bot, the problem is related with the output on the server, when i write the command in the chat commands. When i do a mencion for me or for another...

View Article
Browsing all 13921 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>