54 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
117
views
Child widgets not shown correctly if parent Frame is gridded later
I have an application that divides the main window in two:
Left: a canvas, where a map will be displayed
Right: a frame, where several other frames will share space and one of them will be shown ...
Advice
1
vote
1
replies
112
views
How do I help Pylance to know that the base class is still a test case?
I have a series of unit tests that should run for two different implementations of a same "interface." Those tests use only the methods that exist in both implementations. Since they end up identical, ...
-4
votes
0
answers
31
views
Why do PyInstaller files consume so much memory? [duplicate]
Why do Python programs, when I package them into an exe use PyInstaller, are so large (often several hundred MB)? Packages made by others are very small. The same file, when I packaged it using cx ...
2
votes
0
answers
179
views
Memory leak in aioboto3 (aiohttp) after upgrading to Python 3.13
I’m seeing a steady memory increase in my ECS containers after upgrading Python and dependency versions.
The memory growth stops when I stop incoming gRPC requests, but it never drops back down ...
1
vote
0
answers
44
views
Interactive mode configuration in VS Code
There seems to have been a change in Python when interactive mode in VS Code.
When I would run
>python3 -i
Expected Result: the >>> would be pink and I could quit by typing quit
Now, it's ...
5
votes
1
answer
581
views
Python 3.13.5 sqlite3 DeprecationWarning persists despite registering custom date adapter
I am building an application using Python 3.13.5 and the native sqlite3 library. To correctly handle datetime.date objects and avoid the new DeprecationWarning, I am trying to implement the officially ...
1
vote
0
answers
339
views
Python 3.13.5 Ctypes and Tkinter imports not working
So I installed python 3.13.5 today and tried to run my projects with ctypes and tkinter.
It had worked fine before the installation, but it didn't work after
When I ran my project with ctypes in it ...
2
votes
3
answers
117
views
Can I name a variable as the data structure it represents?
I am using Python 3.13.5 in a Jupyter Notebook (inside VS Code) and ran into a TypeError.
First, I created a set, which worked fine:
my_set = {1, 2, 3, 4, 5}
print(my_set)
Then, in a different cell, ...
0
votes
0
answers
76
views
TCP socket server hangs randomly and rsa Decryption error raised randomly
I'm trying to make a server for a password manager I'm building, but the server seems to hang randomly and it seems to randomly throw rsa.pkcs1.DecryptionErrors randomly too. I did recently switch ...
0
votes
1
answer
86
views
How to make the corners of a text box rounded in Tkinter?
Here is my code -->
import tkinter as tk
from tkinter import ttk
win = tk.Tk()
WIDTH, HEIGHT = 500, 500
win.geometry(f"{WIDTH}x{HEIGHT}")
text = tk.Text(win, height=5, width=10)
text....
0
votes
0
answers
51
views
Tkinter button text/image not updating after incrementing a value in another class
I'm working on a Tamagotchi-like app in Python with Tkinter. I detect clicks on a canvas item and increment a "clicks" counter stored in a JSON-backed character object. When the clicks reach ...
0
votes
1
answer
62
views
GDB not detecting GLib auto-load python scripts
Following this article, GDB is installed in the same prefix as glib (I'm using official distro packages. However, when I run info auto-load python-scripts, I get No auto-load scripts. I have enable ...
0
votes
1
answer
69
views
Django POST error: response variable not associated with a value error
This one for python wizards. I got next code in some of my messenger class:
response: Dict[str, Any] | None = None
try:
response = self.client.post("url/", data=...
-2
votes
2
answers
606
views
pip install spacy errors with Python 3.13
I'm new to Python and I was given this code by my professor which includes "import spacy" and when I run the code I get the line: ModuleNotFoundError: No module named 'spacy'
That's where I ...
1
vote
1
answer
102
views
Python 3.13.0's tkinter's canvas.itemconfigure returns an error for some reason
I am making a program called "Clocker" and i am using canvas.itemconfigure to change canvas.create_text text property, i think i am just using it wrong, but i want to upload this to be sure,
...