Category "python"

Kivy .exe file not working - AttributeError: 'NoneType' object has no attribute 'size'

I have an issue when I create an .exe of a Kivy application. The application runs perfectly in .py, but when I create an executable, I receive an error - Attrib

Odoo15 error while converting odoo11 to Odoo15

I want to covert a module from odoo11 to odoo15. But there is an error with ast.py . I'm using python 3.7 This is the error. File "/usr/local/lib/python3.7/ast

Randomizing Sentences In Python

I not long ago finished my project which comments on a video based on a keyword on YouTube, it will pick a random comment using the random library. The program

How to remove the background from an image

I want to remove the background, and draw the outline of the box shown in the image(there are multiple such images with a similar background) . I tried multipl

Use Keras Neural Translation Model (h5 format model) in spacy v3

first 'im not a developer by trade, my developer is not available for health reasons but i have some experience in python/spacy development. I need some guidanc

local variable 'search_keyword' referenced before assignment

I have been working on a search form and it's giving me this error when i open the url or submit the form. I am watching a codemy django tutorial and the only t

How to install TA-Lib On vscode/windows(64bit)

I have installed Anaconda and then cd to my project folder and then I installed TALIB using pip install TA_Lib-0.4.19-cp38-cp38-win_amd64.whl When I run pip fr

Pytorch model weights change when put on GPU

I noticed a very strange behaviour regarding the 3D Resnet by Facebookresearch. Using their sample code from the website, I receive different results, when putt

tensorflow.python.lib.io._pywrap_file_io.BufferedInputStream(filename: str, buffer_size: int, token: tensorflow.python.lib.i

I have a problem while converting from xmls to TFrecords. Here the problem with the code !python {GTFrecords + 'generate_tfrecord.py'} -x {IMAGE_PATH + '/train'

Plotting CSV data on a map in Python

I have to plot data from 1200 isotopic measuring stations (worldwide) in a map for a thesis. For this I have downloaded them in a CSV file. Afterwards I have di

Django models in admin return TypeError: bad operand type for unary -: 'str'

I'm working on a project using Django(3) and Python(3) in which I have added few models and added those models in admin.py, but when I open the admin panel and

How to solve an explicit wait which isn't waiting long enough selenium python

I'm trying to program a sequence of events which are dependent on the last in selenium. First click login which loads a new page, then click a scrollbox on that

Keras: Having trouble converting depreciated 'merge' layer to new version

I am trying to implement this model: https://github.com/abhishekkrthakur/is_that_a_duplicate_quora_question/blob/master/deepnet.py but it is from an older versi

How can I use custom filters in the Stack Exchange API?

I am trying to get the questions and answers from StackApi to train a deep learning model. I have the problem that I don't understand how to use the custom filt

Python Rolling Window with Timestamp

I'm having a hard time looping through my pandas data frame while trying to apply a) a specific window size (6hours) and b) specific step size (1hour). I have t

dependencies reference nonexistent child node

I tried to dockerize my Wagtail Web Application and this error Occurred. I tried docker-compose build there was no errors. after that i tried docker-compose up

Serving local webcam video stream to web with "multipart mixed replace" HTTP response

This article shows how to stream a local webcam to the browser with Python + Flask + OpenCV + multipart HTTP response. After launching the following self-contai

Django OperationalError at new model object

I created a system with Django. My model was working until I added a new field but when I add new field it gives an error. My new field is owner_id Operational

Python Lambda function using boto3 uploads 0 bytes image file to s3

My use case is that I'm trying to take a screenshot of a view in Tableau, and save that screenshot in a bucket in s3. This is done through a Lambda function wri

How to stream audio from microphone to Google Speech-to-Text in Python using WebRTC

I'm looking for documentation about transcribing audio streaming data coming from WebRTC using Google Cloud Speach-To-Text. I'm using aiortc as a library in Pyt