Questions tagged as 'python-3.x'

0
answers

python - TypeError: Required argument 'flags' (pos 2) not found

My code is for a program that is activated by facial recognition to add two numbers, and shows the result with my voice, but on the line of an audio that appears the following message TypeError: Required argument 'flags' (pos 2) not found...
asked by 09.07.2018 / 04:29
0
answers

Problem with the index attribute of two DataFrame

I am loading a pair of data sets, one using DataReader and the other one of a csv downloaded from yahoo finance. import datetime as dt import pandas_datareader.data as web import pandas as pd import scipy.stats as stats import matplotlib.pyplo...
asked by 03.07.2018 / 03:26
0
answers

FileNotFoundError: File b'tek0000ALL.csv 'does not exist

I'm trying to get a .csv file and it gives me the following error:    FileNotFoundError: File b'tek0000ALL.csv 'does not exist The file is in the same department as the program and the name is well copied. The code is as follows: import...
asked by 04.07.2018 / 11:25
0
answers

Problem with conditional in python

I am developing a code in python to present the table of the Brazilian championship and the first and second place. However, I am not doing the conditional in the correct way for the second placed. Can someone help me? m = [] #Entrada do núme...
asked by 30.06.2018 / 20:21
0
answers

How to make a redirect by passing request.POST

I am doing a purchase process in which I want the user to follow the following steps: Fill card data Validate that the data is correct Check result For them, the first function they enter is this: def proceso_compra(request, slug, t...
asked by 28.06.2018 / 13:41
0
answers

graph = Graph (g) NameError: name 'Graph' is not defined. HOW DO I RESOLVE IT?

introducir el código#TAD DE DIJKSTRA, algoritmo de caminos mínimos. #es un algoritmo para la determinación del camino más corto. #dado un vértice origen. #hacia el resto de los vértices en un grafo que tiene pesos en cada arista. ############...
asked by 28.06.2018 / 17:11
0
answers

python - 'QPushButton' object is not callable

Good evening I am starting a new project in python, but I have the following screen: I have worked with other projects and did not throw any error at this idea? NOTE:  the self.boton is in the .ui file and from there I call it     
asked by 26.06.2018 / 05:21
1
answer

py2exe does not compile the executable

I'm trying to make an executable of a program made in python3.6 but when I run python setup.py py2exe it gives me the following error: running py2exe Traceback (most recent call last): File "setup.py", line 5, in <module> co...
asked by 25.06.2018 / 20:35
1
answer

Specific query in Firebase with python

I'm trying to integrate firebase with my python project. Using firebase cloud. I want to get a result like the following:    Name: xxxxx Surname: xxxxxxx Address: xxxxxxx To do this, use the following code to perform the query. impo...
asked by 03.07.2018 / 18:39
0
answers

Problem with variables and objects. Supestamente local variable behaves as global

I'm doing a code and this happens to me: First I made this class with the intention of using it as if it were a structure of those of C and C ++ class Data: titulo = [] id = [] fecha=[] Then I did a function where I gave values to...
asked by 18.06.2018 / 17:28