Questions tagged as 'python'

1
answer

Problem with application for stopwords and accents filter

Good morning, I'm trying to develop a simple algorithm in Python for removing stop words from text, however I'm having problems with words that have accents. The Code is as follows: import io from nltk.corpus import stopwords from nltk.toke...
asked by 27.06.2018 / 16:21
0
answers

Adding files to pyinstaller

When I use the --onefile option, my program can not find the files added to .exe . I do not know which path to specify for my program to find the files. My code looks like this: import winsound winsound.PlaySound ('a.wav',wi...
asked by 28.03.2018 / 00:19
0
answers

Problems Elements / Images in Selenium Django

I'm having some problem with elements not loading properly on the ChromeDriver page using selenium in my Django application. I dumped Django's testing tool because in my scenario, I need the whole loaded database. And doing a load fi...
asked by 26.06.2018 / 18:28
1
answer

Infinite loop in the on_message method

Hello everyone. I have an infinite loop in my discord bot, but I do not know how to solve it. import discord import asyncio import strings_codes #minha classe de string e códigos import auxiliary_functions #minha classe de funções auxiliares...
asked by 24.02.2018 / 04:16
0
answers

Help speech recognition

I'm using the speechrecognition library and would like to know how do I do if it finds a certain text in my speech it does a certain action. For example, if it detects that the word I said was 'test' it writes in the output 'Congratula...
asked by 20.05.2018 / 20:46
0
answers

TypeError: not all arguments converted during string formatting - Python 3.6 - Power account [closed]

I am a beginner in the area and during the programming studies in Python I got caught up in this exercise, the purpose being to appear on the user screen how much it should pay for kwh used, depending on whether it is for trade, industry or resi...
asked by 30.12.2017 / 00:17
1
answer

How to pair two queries using Django Filter

I was breaking my head to make union of two queries using Django Filter and ended up doing it on the same hand ( Model.objects.raw("SELECT....") ). How could I do union with Django's ORM? Note: I have 2 different tabl...
asked by 14.12.2017 / 21:44
1
answer

Regex can not find all the required expressions

Hello, I'm new to python, and I'm probably taking a very amateur approach to the problem. I'm trying to find N-digit sequences in .txt files (in example N = 17). I have thousands of files and I've been creating regular expressions for the most c...
asked by 23.11.2017 / 20:20
1
answer

How could I make an app that works in the background with python and kivy?

I'm trying to make an app in kivy that takes information from a database in the background, and when there is a change in the database, send a notification to the user. Could you please tell me if it's possible, and if so, how?     
asked by 09.11.2017 / 20:24
0
answers

How to get texts and images from pdf file

I need to get text and images from a pdf file. I tried to use PyPDF2, but with it I can only get the text. Can anyone help me?     
asked by 10.11.2017 / 16:42