Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [python]

Python is a dynamically typed, multi-purpose programming language. It is designed to be quick to learn, understand, and use, and enforces a clean and uniform syntax. Note that Python 2 reached end-of-life on January 1st, 2020. For version-specific Python questions, add the version tag (e.g. [python-3.x] or [python-3.9]). When using a Python variant (e.g. Jython, PyPy) or library (e.g. Pandas, NumPy), please include it in the tags.

python
2 votes
1 answer
16 views

Plotly updatemenus - Only update specific parameters

I'm looking for a way to have two updatemenu buttons on a plotly figure. One changes the data and the y-axis title and one switches from linear to log scale. Broadly the code below works but I lose ...
Sobigen's user avatar
  • 2,159
0 votes
0 answers
20 views

How do I transfer the time from the local time zone to a specific one?

I want to execute the function at 08:00 Yerevan time, but by default it will be executed at 08:00 local time, depending on the location of the server. In the future, my server will be moved to ...
Aleksey Kostitsun's user avatar
-1 votes
0 answers
10 views

KeyError scraping with Beautiful Soup

I am trying to use beautiful soup to scrape data, I have a .env file with ENV, API_KEY, AND SEARCH_ENGINE_API identified. For some reason I am still running into a KeyError. Here are my errors: FAILED ...
WhyBless's user avatar
0 votes
1 answer
24 views

Reuse overloaded method in python class with most parameters

I have LCD class which is run by micropython on raspberry pi pico which i initialise like this: class Lcd: def __init__(self, width, height, channel, sdaPin, sclPin, contrast): from time ...
shifras's user avatar
0 votes
1 answer
30 views

how do i decrypt a cyphertext encrypted with AES with pycryptodome?

I'm making a password manager with python that stores and encrypts passwords (using the pycriptodome module) with a main password set by the user, but the decryption does not work Here's the function ...
vghbjc's user avatar
  • 11
0 votes
0 answers
7 views

How to create an API authorization with the latest IOS SST and AWS

I want to create an API with the new SST v3 aka ION SST. Docs don't say much about auth-related things and I feel confused. I have a separate Next.js app and now I want to create a backend ...
Karol's user avatar
  • 620
-7 votes
0 answers
26 views

How to code using prim's algorithm using lists or priority queues to generate a maze? [closed]

For my NEA project I chose to generate mazes for my game using python. Prim's algorithm feels so complicated and I'm a beginner in coding python. I really need help with this because as I read other ...
Evangeline's user avatar
0 votes
0 answers
10 views

AWS Lambda python log file is not created

I have a Python AWS lambda with a logger that generates two different log files: LOG = f"/tmp/{uuid.uuid1()}_log.log" SLOW_LOG = f"/tmp/{uuid.uuid1()}_slow.log" logging....
PloniStacker's user avatar
-3 votes
0 answers
27 views

How do I Install pytorch without GPU dependencies?

I have a project that depends on torch==2.0.1, but it will run on CPU not GPU. torch has some large cuda/cublas/cudnn dependencies that I believe are only needed when running on GPU. These packages, ...
codeech's user avatar
0 votes
3 answers
31 views

How to call a number from a multi-dimensional complex list

I'm trying to make a sophisticated quiz that involves a list for a question and an answer that is included in a list. I want to call numbers from this multi-dimensional list using a "for" ...
Breadification's user avatar
0 votes
0 answers
8 views

Through the ssh connection, only the "helm list" command has an error "Error: Kubernetes cluster unreachable."

SSH is connected to the remote server from the local server to open the command window and enter in the order of 1) helm repo update → 2) helm list as a Python script. The output of 1) is normally ...
user26528019's user avatar
0 votes
0 answers
12 views

Trying to get values from a spinner on Appium Inspector

Im trying to get a value from this spinner but I cant select it using Appium Inspector, but it only selects the thing below the item: Appium Inpector with the spinner not selected List opened, and the ...
Vitor Ferreira's user avatar
-1 votes
0 answers
9 views

File Name Error on Keysight E5071C using Python

I am attempting to recall a saved state file on our Keysight VNA. The file is called State01.sta and is saved to the D Drive. However, when I type: session.write(r'MMEM:LOAD "D:\State01.sta"'...
DF_Mansfield's user avatar
0 votes
0 answers
7 views

Running odoo locally using Pycharm on windows 11

I was running odoo using the command from the odoo documentation, but now I want to run it from Pycharm, I followed all the steps needed but it still gives me this error when I run. I opened the two ...
Mohamed Hussien's user avatar
0 votes
0 answers
13 views

Python, Scapy and exporting to an .exe

At the moment I play a little bit with scapy, Qt and python. So far everything worked fine when starting the programm with VSC. Now I tried to make an .exe with PyInstaller. It also worked, I got an ....
dennis_10-33's user avatar

15 30 50 per page
1
3 4
5
6 7
32