Questions tagged as 'python-3.x'

1
answer

unpack requires a byte object of length 17665190

I am trying to read the data from a .wav file for an audio visualization however I get the following error. Here I leave my code I hope you can help me import matplotlib matplotlib.use('Agg') from matplotlib import pylab import matplo...
asked by 29.03.2018 / 03:31
0
answers

python error list index out of range

I am generating a project in python an audio visualizer, without embark I find an error when running the program. This is the error: This is the code: import wave import struct import sys import numpy as np from math import sqrt im...
asked by 28.03.2018 / 18:21
1
answer

Filter data already read

I have the following code. read = fiona.open(r"\pre\data\PLANTA\URBANA.shp") for feat in read: corPoligono = feat['geometry']['coordinates'] poligonoType = feat['geometry']['type'] idCapaOrigen = feat['id'] Thes...
asked by 20.03.2018 / 12:06
1
answer

Interface in python terminal?

Dear users of the community, I would like to know if in Windows using Python 3.x it is possible to create and / or execute a program from the terminal as it would usually be done in systems like Linux. I leave an image as an example. I also...
asked by 16.03.2018 / 18:58
0
answers

I have problem with matrices in python

I have problems, I can not assign the complete data to the vector, it must be complete in the matrix and I could not, since I try to change the data type of the matrix, it does not give me. enter the description of the link here import...
asked by 18.03.2018 / 03:46
1
answer

Doubt about an error

I'm getting into the topic of derivatives in python but recently I'm having an inconvenience, it turns out that when I enter the function I get the following error:    NameError Traceback (most recent call last)   ---- > 3 equation = eval...
asked by 14.03.2018 / 04:30
0
answers

Error python unpack requires a buffer

I'm working on a code to visualize audio however I face 2 problems. The first one an error that shows the following: The second is that as far as I could read it is more practical to convert the files to .wav to work with them, so I...
asked by 29.03.2018 / 01:29
0
answers

How to import the PyQt5 module in SublimeText?

I am using debian 9, install the PyQt5 from pip3 but when executing from SublimeText 3, for example, the following import PyQt5 print("\t _> Ejecucion Correcta") gives by mistake    Traceback (most recent call last):     File...
asked by 29.03.2018 / 01:41
0
answers

MySQL / Python - Reject queries if the database, table and column are not written within '(accent grave / backtick)

I would like to know if there is a way in which I can create restrictions when executing a query. What I would expect is that by having a query like the following: SELECT * FROM 'database'.'table' WHERE 'column' = 1; -- Notese los ' (acento gr...
asked by 12.03.2018 / 17:19
0
answers

No program is executed in python

I am programming in python the use of the supersonic sensor HY-SRF05 using a Raspberry Pi 3. The program does not give an error, but it does not show the distance when executed, if I remove the class and the methods and leave only the linear cod...
asked by 09.03.2018 / 23:09