2,211,864 questions
- Bountied 3
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
4
views
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1
This means you should update your PyTorch/torch which is more safe and robust.
pip ...
-2
votes
0
answers
10
views
Odoo 18: 'extra data' error when trying to install custom module
RPC_ERROR
Odoo Server Error
Occured on localhost:8069 on model ir.module.module and id 12 on 2025年04月21日 08:48:10 GMT
Traceback (most recent call last):
File "C:\Program Files\Odoo 18.0.20250330\...
0
votes
0
answers
9
views
Issues with Product Detection and Consistent Person IDs Using YOLOv8 and DeepSORT
I'm working on a real-time object tracking system using YOLOv8 for object detection and DeepSORT for tracking. The goal is to detect both customers (persons) and products, and assign each person a ...
0
votes
0
answers
10
views
What could I be doing wrong in this gurobi optimization problem, I have included the mathematical formulation as well, but it is not working well
from gurobipy import Model, GRB, quicksum
I = 8 # Generators
J = 5 # Consumers
Gamma_q = 0 # Demand uncertainty budget
Delta_p = 0.5 # Capacity uncertainty budget
F = [53] * 2 + [30] * 6 # Fixed ...
0
votes
1
answer
15
views
Importing geographic data with WFS works on Chrome but not on Python
I am trying to pull a geojson file from here.
The JSON appears as expected when I paste that link into Chrome or Safari. However, I get the following error every time when I run the following code on ...
0
votes
0
answers
14
views
Celery raises `ValueError: not enough values to unpack (expected 3, got 0)` when calling task
I'm using Celery in a Django project to schedule notification tasks. When I start the Celery worker and the task runs, I get the following error:
ValueError: not enough values to unpack (expected 3, ...
0
votes
0
answers
10
views
AttributeError: 'QueuedLocalWorker' object has no attribute 'wrapper' when using LocalExecutor in Airflow 2.6.3
I'm getting this error when I try to run Airflow 2.6.3 with LocalExecutor:
AttributeError: 'QueuedLocalWorker' object has no attribute 'wrapper'
I've double-checked my airflow.cfg and confirmed I have ...
-8
votes
0
answers
30
views
Why the bug information is so detailed and long? [closed]
The bug information is too detailed and contain some useless information such as array values. How to make it shorter as normal? I mean just make it do not show the value of arrays but only shows ...
0
votes
1
answer
20
views
How to select certain indices for multiple dimensions of a PyTorch tensor?
I have a situation where I need to add one PyTorch tensor to parts of another tensor. An example is like this:
import torch
x = torch.randn([10, 7, 128, 128]) # [batch, channel, height, width]
# In ...
-5
votes
0
answers
42
views
Why Does Python's list.sort() Return None Instead of the Sorted List? [duplicate]
I'm facing an issue while trying to sort a list in Python. I expected to store the sorted result in a new variable, but ended up with None. Here's a sample of my code:
my_list = [3, 1, 2]
sorted_list =...
-4
votes
2
answers
50
views
How to remove duplicates from a list in Python while preserving order? [duplicate]
I'm trying to remove duplicate items from a list in Python, but I want to preserve the original order of the elements.
For example,
my_list = [1, 3, 2, 3, 1, 5, 2]
I tried using set() to remove ...
0
votes
0
answers
12
views
Zerodha API connection issue
I have designed a system that connects zerodha api that can automatically place orders on a specific time entered by the user. For example if a user want to place an order at 9:15:00 am, the user can ...
-2
votes
1
answer
37
views
Mylist has an AttributeError when i was trying to capitalize it and find its length?
I want the following code to give me the title form and length of the list:
mylist = ['clean the keyboard', 'meet tom', 'throw the trash']
mylist.capitalize()
for index, item in enumerate(mylist):
...
0
votes
1
answer
18
views
How to install and run cx_freeze
I executed the command pip install cx-Freeze to create an executable for my Streamlit application. However, I am unable to locate the cx_Freeze file after installation. When I attempt to run the ...
-3
votes
0
answers
15
views
i want to using customize Django-jazzmin [closed]
enter image description here
📌 Step 1: Install Jazzmin
Run the following command to install Jazzmin:
pip install django-jazzmin
📌 Step 2: Add Jazzmin to Installed Apps
Add jazzmin at the top of ...