Questions tagged as 'python'

0
answers

How to search and start an application using python

I am developing a code that allows me to find and run any application (for the moment only from the desktop) using python 2.7, using a phrase, this in Windowns 10. Ex: open firefox. Test code: import os def run_prog(self): for p in self...
asked by 09.07.2018 / 00:06
0
answers

Selenium Bug in result

I'm trying to create a robbery that takes all the phone information from Brazilian postal agencies, it's two dependent dropdowns that when selecting state and municipality, the agencies appear in place. My code so far is: from selenium import...
asked by 09.07.2018 / 22:18
1
answer

Import csv as float

Good morning! I have the following problem, I'm importing a base for python, but I can not manipulate it (average), because it's like str, I need to import all the values to come as float. data = pd.read_csv ('C: \ path \ df.csv', index_co...
asked by 07.07.2018 / 14:48
0
answers

Error heroku-Django

I developed a project with django, it ran normal on my internal server however, I did the deploy on heroku and when I went to open the app on the same site, I presented the following message: "An error " I checked the logs of my application and...
asked by 04.07.2018 / 17:12
1
answer

Using Tkinter next to a Database

I'm doing a people registration program with interface (still pretty basic, just to do tests) and I'm having several difficulties: I am extracting the data using .get() , however, I can only type 1 character. If I type more then the fo...
asked by 04.07.2018 / 20:27
0
answers

Phyton service has no data

I have this python code from a service that fetches my database the 'responder' result. But I can not present this result, it only appears in this way '{"chickensAviary": "answer"}' @route('/matematica3/naoAutomatica/get', method = "GET")...
asked by 04.07.2018 / 17:10
1
answer

Mean between vectors within functions (python)

Good afternoon guys, I have the following code: def Ler_vetor(): VET= []*10 for i in range(0,10): VET.append(int(input('Digite um número: '))) return VET def Escreva_vetor(VET): print('Dentro do vetor (permutado) tem:',VET) def Somar_vet...
asked by 04.07.2018 / 17:09
1
answer

Post method Python service example

Any examples of a Python method service? I do not know how to do this with the database connection. I know how to do 'Get' and I'll leave an example below. @route('/dadosBloqueios', method = "GET") def dadosBloqueios(): respons...
asked by 04.07.2018 / 17:53
0
answers

"Django celery beat" table is not filled

I started in a Django project that already had Django Celery Beat and some records of some Task's in their tables: django_celery_beat_crontabschedule django_celery_beat_intervalschedule django_celery_beat_periodictask django_celery_b...
asked by 10.07.2018 / 14:58
1
answer

Screens in Tkinter-Python

I'm having trouble getting back to one screen without creating another ... I could not get her to go back to the same canvas I created. Can I use .destroy() ? Here is the code: from tkinter import * def janela_principal(): janela1 =...
asked by 10.07.2018 / 05:53