Quantcast
Channel: Active questions tagged python - Stack Overflow
Browsing all 13921 articles
Browse latest View live
↧

When I am developing Python in WSL, importing Heartpy cannot debug and debug

My Python version number is 3.11, Heartpy version number is 1.2.7, and wsl2 uses Ubuntu 20. When I try to import Heartpy and there is a debug below, QT will generate an error message as...

View Article


TypeError: 'GraphModule' object is not subscriptable (Access Weights for...

I have a popular .onnx ML model for weather forecasting and am trying to convert this to PyTorch for finetuning. I use the following code to convert this:import osimport numpy as npimport onnxfrom onnx...

View Article


How can I stop a thread that have a while loop immediately (python)?

I using a simple facial recognition program for a little project and I am trying to make like a stop button in case of an emergency. I have tried every way from stop_event to Queue but for some reason...

View Article

rows in the wrong place, I'm looking for a way to organize them in their...

i want to move this values to another column#i only want to keep the example: A123..., move the data to the right place, is a one row upI would like to know how I can clean this data, I have this...

View Article

What is the difference between authentication and permission in Django Rest...

What is the difference between authentication and permission in Django Rest Framework?

View Article


Can not train the new data?

https://github.com/LiuShiBen/LANetIn the above is the github link I tried to train the data (data was from a external source dataset) but when ever I try to train the data I...

View Article

Is there a way to retrieve more than 50 recently played tracks using spotipy?

I've been playing around with spotipy and the spotify API and I wanted to create a dashboard where I present some metrics about my main playlist and my recently played songs. As it happens, in most...

View Article

less memory intensive mechanism (vs .communiciate) for capturing output from...

My use case here is to run a number of python subprocesses, using multiple threads, and capture the output of those commands (which is just a sometimes-quite-large blob of text) into the values of...

View Article


update rows with adjacent dates with same location

want to update the dates eg if the dates are as below then update the end date of the date to2024-03-19 16:27:00.000 for record 1 and delete record 22024-03-17 22:59:00.000 2024-03-19...

View Article


Python For Loop explanation

I am new to python, can someone please explain to me why below code will loop for 5 rounds?I roughly guess it is because of this [i>=4 for i in ratings], but I still don't get it.Codedef...

View Article

Image may be NSFW.
Clik here to view.

Create a Custom AI model that extracts specific data from any input website

I want to make a custom script that can extract specific type of table data from the websites (can be any website with similar type of data). Because there are lot of websites with different...

View Article

ModuleNotFoundError: No module named 'torch' when installing TRT_pose

I am trying to get started using TRT_pose, but I am stuck when trying to install plugins from setup.py, using this line in terminal: sudo python3 setup.py install --plugins. I get the error File...

View Article

How to solve the error for import torch on macOs?

ImportError Traceback (most recent call last)Input In [1], in <cell line: 1>()----> 1 import torchFile...

View Article


when run locust --master and client locust --master-host,locust can not run...

qswhen run locust --master and client locust --master-host,locust can not run api stress,why?envserver: locust -f locustfile.py --master (centos)client: locust -f locustfile.py --worker --master-host...

View Article

from torch._C import * ImportError: DLL load failed: The specified module...

I am trying to import torch in my windows machine using python 3.5. (CPU only)(pip)I have followed the steps given in the official website. When I try to import torch it gives me the error: from...

View Article


OSError When Loading TensorFlow Hub Model in Python

I'm trying to load Vision Transformer (ViT) models from TensorFlow Hub using the hub.KerasLayer method. However, when I attempt to load the model, I encounter an OSError indicating that the URL does...

View Article

"Enter" doesn't work in VS Code for Python

I installed Anaconda. Somehow, afterwards, when I press Enter in Python files, it no longer works. This error shows up:command 'pythonIndent.newlineAndIndent' not foundHow do I solve this problem?

View Article


Image may be NSFW.
Clik here to view.

ValueError: 'tab10' is not a valid color value and code optimization

Im trying to predict MNIST data using my own k-means algorithm.What I want to do:1. MNIST data is loaded and pixel values are normalized to the range [0, 1].2. Parameters for the K-means algorithm are...

View Article

Capsule Network for Steganalysis (Binary Classification) Not Training

I am currently working on a steganalysis model using a capsule network. I used this implementation of CapsNet, which was based on Xifeng Guo's Keras code.I replicated DRCaps, a CapsNet model used for...

View Article

Image may be NSFW.
Clik here to view.

Configuring python for IIS [duplicate]

Following the steps in https://learn.microsoft.com/en-us/visualstudio/python/configure-web-apps-for-iis-windows?view=vs-2019 to configure flask app to run behind IIS and searching online I couldn't...

View Article
Browsing all 13921 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>