Questions tagged as 'python-3.x'

0
answers

Compare files in two directories and copy duplicates into a third directory - python

I have the following situation: A directory with more than 3,000 files .jpg of which were copied half of the files to another directory, but after a problem in the computer the copied files were corrupted. Then I created a code to acce...
asked by 17.08.2018 / 15:05
0
answers

How to capture what triggers the Warnings of sklearn.GridSearchCV.fit ()?

In a rasa_nlu function they are calling GridSearchCV.fit () with clf.fit () and it generates some Warnings that I would like to capture and modify for know what drives them: Fitting 2 folds for each of 6 candidates, totalling 1...
asked by 06.08.2018 / 19:30
2
answers

How to use this script for a list of servers? - Python

Good afternoon, guys. I am using this code to update some servers here in my company, via ssh: link on line 11, we have: self.ssh.connect(hostname='ip_do_servidor',username='Administrator',password='senha_servidor') and o...
asked by 06.08.2018 / 21:48
1
answer

Error installing python library

I'm having a problem trying to install the pyaudio library on Windows. The following result appears:    Command   "c: \ users \ digia \ appdata \ local \ programs \ python \ python37-32 \ python.exe   C: \ Users \ Dig \ AppData \ Local...
asked by 13.08.2018 / 21:55
1
answer

Package sending error with scapy

I'm doing the Python course for Hackers, but I came across a problem in the lesson on HOW TO CREATE YOUR FIRST PACKAGE. I can create the package, but I can not send it through sr (), sr1 (), srloop (), srloop1 (), etc ... I always come across th...
asked by 05.08.2018 / 19:18
0
answers

start threads together python3

How to start the threads together? Context : I have a class that extends the Threading.Thread class. However, when I start the threads, it seems to me that they are running sequentially. Example: 1. Enter the for; Home 2. The first thre...
asked by 04.08.2018 / 01:57
0
answers

Transfer of temperature data through the socket module

I'd like to send data between a client and a server with two raspberry pi 3 being that the client executing the get command will return the server's temperature value from the BMP180 sensor to the client. However, with the code I build when I ru...
asked by 30.07.2018 / 13:19
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 can I resize an image in tkinter?

I tried to do it this way but I could not search in the documentation and for what it seems there is .zoom () and .subsamble () I did not quite understand how it works. I could not deploy to my code from tkinter import * root = Tk() root.geo...
asked by 30.07.2018 / 02:57
0
answers

Interface hangs while running while using from kivy.app

I'm studying image processing using Python. I made an interface with Kivy.app , but it is crashing when it runs while . I'm using the code below to fill an array with "0" or "1", making the image binarized . Any tips on how to...
asked by 31.07.2018 / 14:54