Questions tagged as 'python'

1
answer

Launch window when the process ends in ffmpeg. PyQt

In Python, PyQt and ffmpeg: I need to learn how to make a window appear with the typical message: "The process has finished" That window has to appear when the ffmpeg process ends. Ffmpeg launched it with subprocess. I can not know how to execut...
asked by 10.05.2017 / 17:57
2
answers

Compile Web2Py in .exe with CX_Freeze

Dear, I have a problem, I want to convert the app created in Web2Py in an .exe app, but when I run cx-freeze it tells me this error: Traceback (most recent call last): File "setup.py", line 10, in <module> from cx_Freeze import...
asked by 10.05.2017 / 15:09
1
answer

Make objects in a DJango view do not leave the screen

You see, I have the following html code (I have removed part of the code so you do not get lost): {% load staticfiles %} <html> <body> <h1>Lista de animales</h1> <table> {% for alfa in animales %} <td> <i...
asked by 09.05.2017 / 22:45
1
answer

Send e-mail from mutt using Python

I've been working with the Mutt mail client for a while and trying to implement it in my Python script but something is giving me an error. First tell you that I have it configured well and that I can send e-mails from the console with the comma...
asked by 09.05.2017 / 12:03
1
answer

Read gyroscope data and display in graphical interface attributeError: 'NoneType' object has no attribute 'after'

I need to read the data from a gyroscope and display it in a graphical interface, however it shows me this error:    attributeError: 'NoneType' object has no attribute 'after' This is my code: import smbus import math import sys impor t...
asked by 31.05.2017 / 18:57
1
answer

Update my IP using DynDns in Python

I am verifying a small program to update my IP in DynDns. What I do is the following: #!/usr/bin/python import requests import json user = "email" password = "pass" checkip = "http://thisisnt.com/api/getRemoteIp.php" dynupdate = "https://me...
asked by 13.03.2017 / 20:33
1
answer

For loop in python

Good morning, The value of x is a decrease of 1.0 - 0.01 asi, the first value of x=0.99 the second x=0.98 and the third x=0.97 The first value is x1=1.0 The problem is the update of x1 and t...
asked by 13.03.2017 / 19:19
3
answers

How to generate a POST response, with Django REST Framework Bulk?

I would like to know what is the way for the Response of a POST with rest_framework_bulk, to be modifiable since by default it always returns the same object or array of object that is sent to it by the service. model: class employee():...
asked by 20.03.2017 / 21:49
1
answer

TypeError: unsupported operand type (s) for /: 'dict_values' and 'int'

Every time I run this code in python I get the error:    TypeError: unsupported operand type (s) for /: 'dict_values' and 'int' . How could I solve it? def analizar(): dic = {} fClasses = open(nomFileClasses,'r') lna = fCla...
asked by 19.03.2017 / 21:02
1
answer

No module named simpy

I have installed SimPy using the pip install -U simpy command as set by this page link but trying to import it as import simpy gives me the error of the title:    ImportError: No module named 'simpy' I have installed...
asked by 22.03.2017 / 19:28