2,207,445 questions
Advice
0
votes
0
replies
13
views
Azure Functions EventHub trigger lagging
I have a problem that my Function App (written in Python v1) is not processing the events fast enough so I am experiencing lagging. I don't have access to the EventHub so I cannot change anything to ...
-2
votes
0
answers
25
views
PySpark script hangs after job completion — ThreadPoolExecutor + PyJ4 daemon threads never terminate
Environment
Spark: 3.3.2 (Cloudera parcel SPARK3-3.3.2.3.3.7191000.0-78-1.p0.56279928)
Python: 3.10
PyJ4: 0.10.9.5
Deployment: YARN
OS: Linux
Problem
I have a PySpark script that uses concurrent....
0
votes
0
answers
38
views
Keep the image behind the spinner visible
I want that the image behind the spinner stays visible while the spinner runs:
How to do it?
from dash import Dash, html, callback, Output, Input
from time import sleep
import ...
0
votes
0
answers
27
views
Linking failed, python313.lib cannot be opened
I am working on a project in Visual Studio. I need to include Python libraries in it, but for some reason the linking fails and I cannot figure out why. I have checked that I don't have duplicate of ...
6
votes
1
answer
89
views
How can I control an autoclicker without emulated clicks turning it back off?
I want to make an autoclicker that can toggle on and off using = only activates the autoclicker if I hold the left mouse button.
However, the emulated clicks using pynput are being detected as me ...
0
votes
2
answers
53
views
How to dump objects with images in groups with pickle [duplicate]
I need to dump a group's objects into a .dat file.
The problem is that when I write (using the open function) the .dat file and dump the objects in the group the program gives me the following error: ...
-11
votes
0
answers
112
views
Is there a Python AI library that works without an API key or account? [closed]
Every AI library I find requires creating an account and managing API keys (OpenAI, Anthropic, Cohere, etc.). For a small project I'm building, this is too much friction.I found that ollama llama3 was ...
0
votes
0
answers
45
views
QThread: Destroyed while thread is still running - only when using QThread(parent=self) [duplicate]
When I first wrote the below code, I didn't have parent=self on the self.worker_thread = QThread(), it ran fine, but if the I clicked the Start button a second time after the Worker had finished or ...
0
votes
2
answers
59
views
Plotly 3D background/foreground lines cause flicker and draw conflicts
I am adding a border to lines in plotly3d contexts by layering a thinner line over a thicker one, e.g.
import plotly.graph_objects as go
import numpy as np
t = np.linspace(0, 10, 100)
x, y, z = np....
1
vote
1
answer
67
views
Using "%" in ArchiveBox config option
I have a new ArchiveBox setup (0.8.5rc51) and I would like to change the yt-dlp options to have a different formatting of the output file name. This option contains a % (percent sign), for example -o '...
Advice
0
votes
2
replies
72
views
Why is there no `orient=table` option for `pandas.DataFrame.to_dict`?
I'm trying to save a pandas.DataFrame object to disk, as a JSON. The slight complication is that I need to store some additional data alongside it. So my intended JSON would be
{
"...
Advice
1
vote
1
replies
95
views
Need Guide for AI/ML
I am looking to grow my career in the AI/ML field, but I am currently feeling a bit confused about the right direction. At the moment, I am learning Python, NumPy, and Pandas.
Could someone please ...
0
votes
1
answer
93
views
Unable to read sqlite table from "Python in Excel" [closed]
I'm trying to display the contents of a (local) sqlite table in Excel. I want to use "Python in Excel" for various reasons. This is the code I have written in cell A1 using the PY() formula:
...
-2
votes
1
answer
58
views
Polymarket Relayer v2 — POST /submit returns 400 "bad request" with Gnosis Safe + Privy custodial wallet
Context
I'm building a platform that integrates with the Polymarket gasless relayer (https://relayer-v2.polymarket.com/submit) using:
Gnosis Safe proxy wallet (deployed via Polymarket's factory ...
0
votes
1
answer
87
views
Visual Studio Code / Cursor terminal cannot handle Python comment with special characters
In a Python script there exists the following comment that shows the structure of an intermediate Polars data frame.
print('a')
# ┌──────────┬──────┬────────┬─────────────────┬────────────────────┬────...