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
466
questions
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 ...
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 ...
-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 ...
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 ...
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 ...
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 ...
-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 ...
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....
-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, ...
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" ...
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 ...
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 ...
-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"'...
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 ...
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 ....