Questions tagged as 'python'

0
answers

How can I control the events that take place inside my python script?

I have three files: login.txt contains: the data to make an FTP connection. DatosMail.txt contains: origin, destination, smtp, passwd. FTP test contains Ftp connection, mail, log. I need to check that these two files exist (login.txt,...
asked by 06.11.2018 / 13:21
1
answer

draw inverse of a matrix in module n?

I need to draw the inverse of a matrix but in module 29,  [[6 3 26]  [28 10 7]  [12 22 20]] it is assumed that if the matrix in module 29 is well taken out, it would be as follows:  [[13 7 29]  [1 22 11]  [17 7 9]]     
asked by 06.11.2018 / 04:49
0
answers

Failed to load dynlib / dll Pyinstaller: Error

I am working with Python 2.7 and I am deploying it to .exe through PyInstaller, my application connects to an inventory and management system called Contpaqi Comercial and I use a dll that is in this route: 'C: \ Program Files (x86) \ Compac \ C...
asked by 05.11.2018 / 21:50
0
answers

PermissionError: [Errno 13] Permission denied

I am creating an application in python (3.4) with tkinter and I am compiling it with pyinstaller. The code fragment that brings the error is this: client = paramiko.SSHClient() known_hosts = open(self.resource_path("known_hosts")) # Linea 73 c...
asked by 05.11.2018 / 14:38
0
answers

Unable to import name 'get_uid' (keras)

I'm trying to run keras of a github code link I get problems on the line that matters Sequentials . from keras.models import Sequential The error that appears to me: File "C:\Users\adri_\Anaconda2\lib\site-packages\ke...
asked by 05.11.2018 / 10:58
0
answers

pd.cut to establish quintiles based on the filtering of a field

I have an excel with three columns, one is the family code, another the product code and the other the price of the product, so I would have something similar to this: 1. Familia Producto Precio 1. -------- --------- -------- 1....
asked by 05.11.2018 / 13:30
0
answers

Help with reading graph from txt

I need help with implementing a code that does the same thing as the following: import math, urllib2, json, re def download(): graph = {} page = urllib2.urlopen("http://fx.priceonomics.com/v1/rates/?q=1") jsrates = json.loads(page...
asked by 05.11.2018 / 20:02
0
answers

Diagonal matrix problem

partners could help me with this code I need to print the two diagonals of a matrix and the problem is that it only prints the main diagonal (the one that starts from the left corner) try: matriz=[] matriz2=[] longitud=3 for a in range(3):...
asked by 05.11.2018 / 19:43
1
answer

Update the status of a widget in tkinter

I've been trying to make a button in tkinter update. The thing is that putting what I thought was right and the solutions of other Stackoverflow questions, still does not work. The example: def cambiacolor(): boton.config(bg= "Gray")...
asked by 05.11.2018 / 18:54
0
answers

Not to be an IP SPAM

My problem is that my system no longer sends account validation emails for users who register in the web application. They told me that there is a way to validate that they are users of my database and that they want to receive those emails,...
asked by 09.11.2018 / 16:09