342,573 questions
1
vote
2
answers
28
views
tkinter.Listbox has a "shadow selection" beside the proper selection. How to sync both?
I built and populated a tkinter.Listbox. Now I have events that will select
the item at index index. Like so:
listbox.selection_clear(0, tk.END)
listbox.select_set(index)
And it works in that the ...
1
vote
1
answer
34
views
Avoiding unnecessary caching of data when using numpy memmap
I have a program that reads through very large (~100GB-TB) binary files in chunks using numpy memmap. The program does a single pass over the data, so there is no need to cache anything since there is ...
3
votes
1
answer
67
views
Why does Python disallow chaining descriptors `@classmethod` and `@property` since 3.13? What is the ultimate solution for class property?
Disclaimer: I know that there are similar questions already answered, but my question focuses more on the reason behind the solution instead of the solution itself. If this is considered duplicate I'...
0
votes
0
answers
14
views
How to create a linear virtual corridor with panda3d to have specific texture patches at specific position of the corridor?
I am trying to build a virtual linear corridor using panda3ds rendering modules for my experiments. I am fairly new into this kind of model building. I used the in built box.egg.pz model from panda3ds ...
0
votes
1
answer
48
views
pip building wheel for wxPython on Ubuntu
I have tried to install wxPython on Python versions 3.10, 3.12, and 3.13, and they all fail with much the same error.
I've installed as many of the required packages as are necessary.
Does anyone have ...
0
votes
2
answers
104
views
Compare string variables to another string variables
I am trying to compare digits of a string to other digits of another string. guess_str is my input turned into a string and then num_str is the randomly generated number turned into a string.
Example:
...
-1
votes
0
answers
22
views
Save pandas dataframe in postgres database
Is there a way to save pandas dataframe as a value in a postgres database column? Let's say the column was named df_metadata
The use case is that we want to save the dataframe to later run statistical ...
0
votes
0
answers
4
views
OCO invalid parameters
so I have tried all the possible combinations of parameters to use when trying to set the OCO parameters. However every time remove the aboveType/belowType, i am being sent a message that i need to ...
0
votes
0
answers
16
views
Can aws-lambda-python image be used as base image for aws batch?
For aws batch job that needs python I use python:3.11.11 image. What if I replace this with amazon/aws-lambda-python:3.11-x86_64?
Are there any restrictions for using amazon/aws-lambda-python:3.11-...
-1
votes
0
answers
35
views
Buildozer tries to install from SQLite website, and it's not avaliable, even trying to make it use local file
I tried to export my app to Android Application using WSL, and I've got a problem when buildozer was installing packages that are needed for app: everything gone wrong with SQLite3.
Firstly I tried to ...
0
votes
0
answers
34
views
Forbidden (CSRF cookie not set.): /517775/users/approve-decline/4
@method_decorator(csrf_exempt, name='dispatch')
class ApproveOrDeclineUserView(APIView):
def patch(self, request, org_code, user_id):
try:
organization = Organization.objects....
0
votes
1
answer
37
views
Python FileNotFoundError When Reading CSV Files in My Script
I'm a beginner and I'm working on a Python script that processes gene expression data, and I'm trying to plot volcano plots for different brain regions (EC, PC, and Hippocampus). However, I keep ...
0
votes
2
answers
49
views
Is it good practice to override an abstract method with more specialized signature?
Background information below the question.
In Python 3, I can define a class with an abstract method and implement it in a derived class using a more specialized signature. I know this works, but like ...
0
votes
1
answer
57
views
The underlying compression routine could not be loaded correctly error when deplying Function App
Tried running in vs code this command:
func azure functionapp publish [the function app name]
got this output:
Getting site publishing info...
[2025-04-23T12:26:20.365Z] Starting the function app ...
0
votes
1
answer
38
views
Python PyQt5 hanging and exiting console when run twice
I was given the code below, which runs great as a standalone script.
What I'm trying to do is turn that standalone script into a function that I can run as many times as I need to.
I've done that, and ...