2,205,874 questions
0
votes
0
answers
28
views
Checking for values with .values() isn't working
I've already defined another function to add user input to the dictionary initially, and the data of the dictionary is defined as 'data'.
This is the bit of code I'm working with:
def update_allergies(...
-6
votes
0
answers
52
views
CLoud Server TCP/IP [closed]
I am building a smart meter/DLMS application. The meter connects to a server using a public IP address and TCP port (for example, IP: x.x.x.x, Port: 4059).
I am looking for a free cloud service that ...
-2
votes
0
answers
41
views
django throws me an error when i try to open up a table in admin view suddenly? it didnt do this before
AttributeError at /admin/storyage/story/
'super' object has no attribute 'dicts' and no __dict__ for setting new attributes
Environment:
Request Method: GET
Request URL: http://localhost:8000/admin/...
0
votes
0
answers
37
views
CoolProp cannot calculate densities for some specific pressures and temperatures
I would like to calculate the density of a gas for certain pressures and temperatures, using CoolProp in Python. Generally, that works well, but for some values of p and T, there is an error.
The code ...
Advice
0
votes
4
replies
86
views
Writing a Neural Network which can have an arbitrary number of hidden layers, could someone tell me if this is the best way to do it?
#Multiple Layers
import numpy as np
class NeuralNetwork:
def __init__(self, input_size, hiddenLayerSizes, output_size):
self.input_size = input_size
self.hiddenLayerSizes = ...
1
vote
0
answers
66
views
QSpinBox Accessibility causes Windows Magnifier to focus on wrong screen when cursor position changes
When the Windows Magnifier is active and zoomed in, it should follow the cursor inside a QSpinBox. This worked for me on a single screen setup. However, if there are two screens and the QSpinBox is on ...
1
vote
1
answer
113
views
Error sending HTML form data with JavaScript front end through Flask backend to MySQL database [closed]
I get the error "400 (BAD REQUEST)" in the browser (dev tools) console when trying to send HTML form data with JS frontend to MySQL database through a flask back end.
HTML form:
<form id=&...
Best practices
1
vote
2
replies
85
views
Tracking visited nodes when traversing datastructure
I am new to Python, reading the book "Learning Python" by Mark Lutz, https://learning-python.com/about-lp6e.html.
It mentions avoiding cycles (or repeat visits) when traversing structured ...
0
votes
0
answers
114
views
Python 3.14 annotationlib throws NameError on local factory function defaults
I am testing the new Python 3.14 annotationlib module to build a dynamic validation tool. I want to inspect annotations lazily without causing import circular dependencies.
The problem is that if my ...
0
votes
1
answer
59
views
AttributeError: 'NormalizedLandmark' object has no attribute 'landmark' [closed]
I have NormalizedLandmark object has no attribute landmark but can't resolved I trying convert, tuple, list.
Error Output:
Exception has occurred: AttributeError
'NormalizedLandmark' object has no ...
-4
votes
1
answer
107
views
On macOS why does an unexpected python process keep restarting? [closed]
On my Mac mini M1 with system 26.1.3 I have a python script, SoilTempMonitor.py, I want to run in background to monitor data from a thermometer device via MQTT. The MQTT broker is running on the mini....
Best practices
0
votes
5
replies
149
views
How do I revive vibe code that was automated by Claude
Are there any recommendations from the group here? What are the best practices to have a type of quality assurance, security review, type of verification when you do vibe coding?
Context is the ...
-4
votes
0
answers
100
views
Why does set() raise 'TypeError: unhashable type: dict' when removing duplicate dictionaries? [duplicate]
I'm trying to remove duplicate dictionaries from a list while preserving the original order.
I expected the result to contain only unique dictionaries, but using set() raises an exception.
Minimal ...
0
votes
1
answer
117
views
video generation in blender using python scripts
I am doing a task as to import glb file and adding keyframes and animation and generate it as a video, so i was working on it, I was able to work until I add keyframes and the animation is also ...
2
votes
1
answer
92
views
Can I access variables within a user-defined function in Jupyter Lab while debugging?
In Matlab, I can easily set a breakpoint inside of a function, then Matlab's console lets me access the variables inside of the function to do whatever I want with them as can be seen in the image ...
