Questions tagged as 'python'

1
answer

Compare rows of a file with data from a worksheet

I'm new to Python and I have a problem that's getting me out of the way ... It is as follows, I want to get the strings from a file and compare its elements with the phrases written in the spreadsheets of my .xlsx file. Only the...
asked by 13.10.2016 / 21:37
1
answer

Problem when calling DLL in Python ctype windows

I'm having trouble calling a dll in Python ... is giving the following error: WindowsError: exception: access violation reading 0x026A65F0, sometimes works without giving this error but most do not work. I'm using this way: from ctypes import...
asked by 27.08.2016 / 21:50
1
answer

IDLE: Your Python may not be configured for Tk

I'm trying to use Python in Slackware, in Ubuntu I know how it is, but in Slackware I could not. When I type in the terminal idle to open Python, the following message is displayed:    Your Python may not be configured for Tk Ho...
asked by 13.08.2016 / 00:55
1
answer

Comparing a data entry with a list, regardless of whether or not the word begins with a capital letter

I would like to know how to do this comparison without taking into account if the month you typed is in uppercase or lowercase, since the program only works if I type in lower case. prompt = "Digite o mês de seu nascimento (digite exit para sa...
asked by 16.08.2016 / 19:36
0
answers

The command prompt does not recognize the "python" command even though it is in the PATH

I installed Python 2.7.9 64 bit. In PATH was added "C: \ Python27 \ python.exe" where Python was installed. The problem is that the prompt does not recognize the "python" command     
asked by 13.09.2016 / 22:26
1
answer

Error installing package ffvideo python

I'm working with Raspberry Pi with the Raspbian system. I need to install the ffvideo package, but when I try to install it, I get this: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 Cleaning up... Command /usr/bin/python...
asked by 14.07.2016 / 20:21
0
answers

How to correctly start the board in the old game [closed]

def imprimeCampo(campo): c = 0 for i in campo: if c % 3 == 0: print ("") c = 0 print (i), c += 1...
asked by 13.07.2016 / 16:37
1
answer

Creating data set to sklearn with dataframe pandas

I have the following situation from sklearn.linear_model import LogisticRegression import pandas as pd x = pd.DataFrame({'A':[1,3,8,6,1],'B':[2,6,9,3,2]}) y = pd.DataFrame({'C':[8,6,3,6,1]}) How do I make this happen? LogisticRegression(...
asked by 01.07.2016 / 19:02
1
answer

Infinite Loop in Exercise Using Classes

I'm doing an exercise in Python, which is a game using classes. It happens that when you get into the "EscapePod ()" room and select the correct POD, the looping becomes infinite, not the reason. from sys import exit from random import randint...
asked by 26.06.2016 / 17:22
0
answers

Display text in plot in python application

I'm developing an application that counts people per video, but it's displaying the count by the terminal, how do I display "Found N people" on the video screen? follow my code: print help_message hog = cv2.HOGDescriptor() hog.setSVMDetector(...
asked by 08.06.2016 / 22:00