Skip to main content

All Questions

Tagged with
0 votes
0 answers
18 views

Can Gunicorn allow error http status codes through from Flask app?

I have a Flask API app that returns some JSON with http status code set to 422. Example def post(self, current_user, data): return { "success": False, "message": "...
shawnim's user avatar
  • 600
-4 votes
0 answers
20 views

How can i catch errors while using aiortc? [closed]

Based on aiortc server example is there any simple way for error handling such as big video/audio latency, connection corrupt, transactions errors, stun error, etc?
Chris P's user avatar
  • 2,289
-2 votes
0 answers
14 views

Problem with extraction of functions from ovito.modifiers

from ovito.modifiers._elastic_strain_modifier import DislocationAnalysisModifier ImportError Traceback (most recent call last) Cell In[32], line 1 ----> 1 from ovito....
Pradeep Kumar Rana mm21d013's user avatar
0 votes
1 answer
35 views

is there a way to get the avg score into the grades function without it having an error

I'm relearning python and I decided to make a student grade analyzer program where you enter your grades then it gets the avg of all grades and go to grades function that I made and checks what ...
laith maree's user avatar
-5 votes
0 answers
46 views

Getting some Unit Testing done in python [closed]

The problem was: Convert: Takes a string input in the form "X/Y" where X and Y are integers, computes the percentage X/Y * 100 rounded to the nearest integer, and handles errors such as ...
Hardik Katyal's user avatar
0 votes
1 answer
50 views

How to efficiently handle nest asynchronous ops with Python asyncio lib?

I working in Python project that has next asyncio operartions. I want to make sure each level has good error handling and comes back to main loop for repeated execution. I want to set like, I there is ...
kiruthikpurpose's user avatar
0 votes
3 answers
34 views

Error list object has no attribute split only in Cloud interpreter VSCode runs the code right when accepting a string as input

I am building a function to split an input string into two lists as they are numbers, and find an intersection between both. My code runs fine in VSCode(Desktop) Python 3.12, no errors, but when I ...
PyCoderL1's user avatar
-4 votes
0 answers
26 views

i am working on a face recognition project and this error occurs

"C:\\Users\\Rahul Poojary\\PycharmProjects\\pythonProject4.venv\\Scripts\\python.exe" "C:\\Users\\Rahul Poojary\\PycharmProjects\\pythonProject4\\project\\main.py" Exception in ...
Rahul Poojary's user avatar
0 votes
1 answer
34 views

What exception should be raised when the user calls a function with an argument that is considered an invalid choice?

Let's say I have the following code: #!/usr/bin/env python3 from torch import Tensor from typing import Literal def reduce(x: Tensor, reduction: Literal["mean", "sum", "none&...
codersblock's user avatar
1 vote
1 answer
32 views

model.fit() throwing errors with zipped Datasets

I am working on a segmentation model and using ImageDataGenerator() to load and augment images and their masks. I am returning them as a zipped object def create_segmentation_generator_train(img_path, ...
Ashwin Singh's user avatar
0 votes
1 answer
44 views

My device is unable to open an excel app with xlwings or win32com.client, but I need to refresh an excel file to pull data that is editted earlier

I have a pretty long program that basically edits the first sheet of an Excel file with some data, and then the second sheet of the Excel file does some math and fitting to the data and then the third ...
Jalaj Sanjay Mehta's user avatar
0 votes
1 answer
49 views

Cython Compiler Error When Running GymEnv Library in Python

The error happens on the last line of this code section: import warnings warnings.filterwarnings("ignore") from torch import multiprocessing from collections import defaultdict import ...
Harrisino's user avatar
0 votes
1 answer
43 views

How to do a proper selenium web scrape in firefox?

I am trying to do a selenium program where I am trying to do a basic web scrape where I am able to get the title of the website. Yet, whenever I try to do the most basic web scrape using selenium with ...
FlankMan's user avatar
0 votes
2 answers
137 views

Can't connect to Oracle 19c db with SSH tunnel using python

I am not an expert neither on Oracle or Python, so maybe the answer is obvious but I still couldn't find the answer to my problem on forums. I have an SSH connection to Oracle 19c db on SQL developer ...
Nándor Zaja's user avatar
0 votes
1 answer
28 views

Send error messages to catch with subprocess.check_output()

I'm writing a web app (app.py) that when calling an API, runs a python script (main.py). I'm interested in two things: Printing/logging the logs of main.py in real time to the console Obtaining '...
Diego's user avatar
  • 660

15 30 50 per page
1
2 3 4 5
222