Questions tagged as 'python'

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 / 22:09
0
answers

Is Tensorflow not compatible with all PCs?

I feel like I'm dealing with an internal TensorFlow error. I am trying to replicate the convoluted neuronal network developed by David Shahrestani for the Kaggle classification competition for toxic comments. Clonolo on Github here . I hav...
asked by 12.03.2018 / 18:03
0
answers

How to adapt one database in the form of another?

I try to create a neural network with a long-term short-term memory layer to classify the toxic comments for the Kaggle competition . In the original database we have in train: ... ['id', 'comment_text', 'toxic', 'severe_toxic', 'obscene', 't...
asked by 15.03.2018 / 15:52
1
answer

Why is not the pip command recognized if the module is installed in Python?

I just installed Python 3.6.4 on a test server in debian 8, it does not have internet access . Use the following command tar xvhf Python-3.6.4.gz cd Python-3.6.4 ./configure make su make altinstall Once ready, try to use pip and it di...
asked by 15.03.2018 / 18:08
0
answers

What python library supports Authentication of 2 factors in a django rest framework application that uses OAuth?

I have an application in Django Rest Framework that uses OAuth for authentication flows. I need a library that implements two-factor authentication (2FA) and integrates with OAuth. I thought of Deux, but it is no longer supported. Any ideas? Tha...
asked by 09.03.2018 / 18:55
0
answers

Help with audio graphic display in python

Hi, I have the following code to generate a graphic audio visualizer but after a modification I made it I could not make it work anymore. And two proclems with the code are presented to me. 1.-I get an error that I do not know how to solve...
asked by 26.03.2018 / 02:02
0
answers

Error and slow response in specgram matplitlib

I've been working on an audio spectrum analyzer in pyqt with python, I have almost finished just that I have 3 last situations, 1.- It is very slow when making the representation of the file, that is to say in general the program is slow...
asked by 26.03.2018 / 01:00
0
answers

Get color by clicking PyQt5

Hello basically I want to know how to get the color of some element by clicking on it. Now try invoking PyQt Color Picker widget: def color_picker(self): color = QtGui.QColorDialog.getColor() self.styleChoice.setStyleSheet("QWidget...
asked by 08.03.2018 / 05:08
0
answers

Generate an audio track animation

I would like to know how to make an animation with any sound like the one in the following image: I have searched how to do it but I can not find much information. This I have tried: import wave import struct import sys import nump...
asked by 23.03.2018 / 07:12
0
answers

How to transform a dict into a byte?

I am trying to test the code given by Sachin Joglekar in a project on convolutional neural networks to classify toxic comments using python3. But I have numerous problems when configuring my computer for it .. At the moment when I use token...
asked by 11.03.2018 / 23:37