Questions tagged as 'python-3.x'

0
answers

how do I save variable values in a mysql database

I'm trying to create a facial recognition system using Opencv to record user access to the school lab but the problem is that I'm not able to save the access time information for each user and neither the image of it at the time that he entered....
asked by 26.07.2018 / 14:01
1
answer

Adafruit_BMP in python 3

I'm testing the BMP180 sensor on RaspberryPi 3 B + and when I run the file on Raspbian it gives me this error: WhenIrunthesamefilethroughthecommandlineitgivesthevaluesitshouldgive,itdoesnotgiveanerror,ascanbeseenfromthefollowingimage: W...
asked by 26.07.2018 / 11:31
1
answer

Python - Function with incorrect return

The code below is a simplistic example, but that represents exactly the error it is giving in my official code. def MontarURL(self): URL = "C:\Users\tttt\Desktop\Imagens\2.png" return (URL) A = MontarURL print (A) The r...
asked by 22.07.2018 / 01:51
1
answer

Add value 5 at the end of the list / tuple

lista_da_tupla_a=(["0", "33", "40"], ["8", "30","9"], ["7", "0", "0"]) lista_da_tupla_a = list lista_da_tupla_a[2] = "5" print(lista_da_tupla_a) Desired output: (["0", "33","5"], ["8","30",5], ["7","0","5"])     
asked by 21.07.2018 / 00:33
0
answers

How do I get text from a textField in python and insert it in a window as if it were a Label?

I'm having this difficulty getting the TextField text and "printable it" in the Tkinter window Code: from tkinter import * from tkinter import messagebox import time jan = Tk() jan.title('KNOM OS') jan.geometry('1366x760+0+0') jan.configur...
asked by 15.07.2018 / 22:48
1
answer

How to check the latest file in a folder with Python?

Assuming you have a folder with several TXT files with different names and need to know the latest file, how do I do this using Python?     
asked by 20.04.2018 / 14:13
0
answers

How to change the password of an Ips list?

How do I change the user and password of a large number of servers with different ips, rather than an ip only? Follow the code: # Copyright 2016 Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0...
asked by 12.07.2018 / 21:08
0
answers

Error executing this opencv code and image comparison skimage

I'm developing a program that analyzes two videos and removes similar frames using opencv and saves it again, but I've tried a lot of things and the final part that analyzes the similarity and saves, but always a problem and I do not know where...
asked by 13.07.2018 / 02:21
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

Error in pycharm

Good morning, In the following example, And I'm experiencing the following error in pycharm: /home/brito/projetos/venv/saj_projects/bin/python /home/brito/projetos/saj_projects/exemplos/me/impressao_tratamento.py Traceback (most recent...
asked by 10.07.2018 / 17:09