Questions tagged as 'python'

0
answers

Handling pdf files

Greetings to all (as) I need to make a program in python that allows to see a .pdf file that is delivered in a memory, but that in turn does not allow it to be copied, the truth is I'm lost on the most appropriate library to do this. I do not kn...
asked by 05.04.2018 / 15:09
0
answers

'LogFile' object has no attribute 'isatty'

I am a beginner in Kivy. I am creating an application with Pafy to download audio and video from Youtube and I get the following error. I am using Python 2.7 and Kivy 1.9.1. Traceback (most recent call last): File "ex.py", line 46, in <modu...
asked by 04.04.2018 / 19:50
1
answer

Send query parameters by e-mail Django

How can I send parameters of a query to the body of a message, and send it by email. The e-mail is already sent, but I need to send parameters. autorizar=AutorizacionDocumentos.objects.get(id=idDoc.id) asunto = 'autorizaciòn'...
asked by 04.04.2018 / 19:01
0
answers

python Obspy st.plot ()

I have a query about a code that I am running on a archivo.mseed : code: from obspy import read st=read('weather.mseed') tr=st[0] print (tr.stats) st.plot() This calls a archivo.mseed and plots it, the problem is that the...
asked by 10.04.2018 / 14:36
0
answers

Arduino random error

Edition 1: It seemed that the fault was a failure of wiring, which failed and from time to time makes a false contact. After disconnecting the pin 0 and having nothing connected, you still make the same mistake. End edition 1 I have...
asked by 10.04.2018 / 21:29
1
answer

how to clean request.POST? Django

I am doing a card payment process. When making the confirmation of the transaction I want to be able to delete the POST data so that I can not make a new transaction when reloading the page. My code is this: def comprar(request,producto,sto...
asked by 12.04.2018 / 09:59
1
answer

Error with python and postgresql

Error:    Is the server running on host "localhost" (127.0.0.1) and accepting   TCP / IP connections on port 5432? already install postgresql in its recent version but it does not remain. When I run the application I use django...
asked by 12.04.2018 / 04:47
0
answers

Receive a request http post from python to php

Dear, someone can give me a guide the paymentez company allows to make the payment by credit cards and they give a response after the transaction to a specific url which indicates to me that it is a post request and that I should receive it as a...
asked by 04.04.2018 / 21:24
0
answers

Apply visual effect on matploitlib

How can I change the style or visual aspect of a graphic made in specific matplotlib this: import wave import struct import sys import numpy as np from math import sqrt import matplotlib matplotlib.use('Agg') from matplotlib import pylab impor...
asked by 31.03.2018 / 20:12
0
answers

Download flat files within a directory of an ftp0 server with ftplib

I need to download the files stored inside a directory of a public ftp0 server, to later be able to generate a table with data extracted from them. I've tried with various programs taken out of ftplib but I get an error: import sys i...
asked by 03.04.2018 / 11:18