2,206,479 questions
Tooling
0
votes
0
replies
21
views
Airflow use cases for different repos
I am newbie in Airflow and I use currently task scheduler on remote desktop to automate our tasks but it is based on my credentials and I cannot share with other team members, so I clone all projects ...
0
votes
1
answer
29
views
numba unsupported opcode FORMAT_WITH_SPEC
I am getting an error when using numba/jit.
Here's the function:
@jit(nopython=True)
def find_map(nodes1, nodes2, feather2, verbose=False):
def conndirections(i1,i2):
dr1,dr2=[0,0,0,0],[0,...
Best practices
0
votes
1
replies
29
views
In Django, where to define user
For a site where users host discussions communicate with each other like on X(twitter), using Django, where should i define a user; in the forms.py, models.py or views.py file. This site will work ...
-2
votes
1
answer
40
views
TypeError: 'NoneType' object is not subscriptable? [duplicate]
The code is
print(score.sort(reverse=True)[:3])
And it makes an error
TypeError: 'NoneType' object is not subscriptable
What is the problem?
2
votes
1
answer
49
views
Issues with redirecting output text to a separate window in Python
I am very, very new to programming having just finished a semester-long course on Python. I wanted to take an existing program I had written for my class and redirect all the output text to a separate ...
0
votes
2
answers
59
views
MySQL query fetchall() result
I am currently trying to make a nested MySQL query using Python. But I am a bit confused about how the respond to a query that comes in a weird format with "()" and "," rather than ...
Tooling
0
votes
1
replies
33
views
Dockerized Streamlit RAG with Native Ollama & GPU/CPU Hybrid Logic
I am building a RAG Study Assistant and need advice on finalizing my Docker setup. I have a specific architecture in mind to maximize performance and portability.
The Architecture:
App: Streamlit + ...
-4
votes
1
answer
48
views
Handling a cross-click to close an app on Pywebview
I recently ran into a problem: I needed to create a pywebview app, but I wanted to customize the top control bar where the buttons for minimizing and closing the app are located. First, to make sure ...
-2
votes
1
answer
65
views
Why do I get a syntax error with set_thumbnail in Discord webhook using discord.py? [closed]
Even though the embed sends just fine when I don't attempt to add set_thumbnail, it gives me an error when I try to add it:
from discord import SyncWebhook, Colour, Embed
import requests
ABwebhook = ...
0
votes
0
answers
34
views
Opentelemetry in AWS Lambda leads to serialization errors
We have a setup where we use Lambda serverless flask application behind an API Gateway. We started adding Opentelemetry as an additional layer in the lambda function (arn:aws:lambda:eu-central-1:...
0
votes
1
answer
59
views
How to replace non-commutative products in SymPy with expressions?
I want to work around sympy's limitation of assuming partially commutative behavior. If I define the non-commutative symbols
import sympy as sy
u = sy.Symbol('u',commutative=False)
v = sy.Symbol('v',...
Advice
0
votes
1
replies
94
views
How to anonymize PII before sending data to GPT APIs?
I’m building an application that sends user-generated text to GPT APIs, but the data may contain personally identifiable information (PII) such as names, emails, phone numbers, or account details.
...
-3
votes
0
answers
92
views
Why does my translate command no longer work? [closed]
I was experimenting with PyDictionary because I wanted to add a Define/Translate feature to my discord bot, but it only gives me {} as a response to print(dictionary.meaning("indentation")) ...
0
votes
0
answers
70
views
OpenCV not detecting unfilled circle outlines as bubbles in OMR sheet - what detection method works for both empty and filled bubbles?
I am building an OMR (Optical Mark Recognition) system in Python using OpenCV. My answer sheet has 180 bubbles arranged in 4 columns of 45 questions, with 4 options (A, B, C, D) per question. Each ...
1
vote
1
answer
50
views
session.run fails on a script containing comments, does it not strip comments?
I have a .dos script that runs fine in the DolphinDB GUI but fails when executed via the Python API's session.run. The error goes away when I manually remove all comments from the script.
Script (...