Questions tagged as 'python-3.x'

1
answer

Save model with many-to-many field using CreateView

I have the following problem I have two models one Themes and another Videos have a relationship much to many already that a video can deal with different topics, the problem is that when saving a video I do not give any error and I am saved but...
asked by 16.05.2018 / 04:23
1
answer

Start two processes and wait for the second process to finish to finish the first one

Dear users of the community after starting two processes simultaneously, how can I make Python 3 wait for the second process to finish and then finish the first one, I tried with time.sleep () But this only gives me a certain time, the idea is t...
asked by 17.05.2018 / 17:20
0
answers

PermissionError: [Errno 13] Permission denied Windows

I am doing a web application with flask and in one part an image is uploaded but when I do the process I get the error that I do not have permissions, I already executed as administrator the windows CMD, I gave it permissions of the folder in th...
asked by 12.05.2018 / 00:02
0
answers

"python" is not recognized as an internal or external command, program or batch file executable

I have an error and I do not know how to solve it. When I try to execute the python command this error appears in the cmd "python" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. I have a...
asked by 11.05.2018 / 15:07
0
answers

In Blender, how to save object properties in key-frames with python

When I change the material of an object as I can save that action in a keyframe, since the idea is that during the animation the objects change material repeatedly. The materials have color and transparency data. This from a script in Python lan...
asked by 10.05.2018 / 21:04
0
answers

Problems with PyPDF2 and wand

I'm trying to show a preview of a pdf loaded via form. I also share the error when I try to do python3 manage.py makemigrations A help is greatly appreciated. Python Version: 3.5 Django Version: 1.11 Now I share the cod...
asked by 10.05.2018 / 20:53
0
answers

Optimize opening of a Python program

I find the following problem, I have the following code, but it takes a long time to open the first time, I would like to know if there is any way to optimize the code. Or something like that here I leave my code: The interface is in a sep...
asked by 10.05.2018 / 01:01
1
answer

Create an executable from a python script?

I already asked a similar question but it did not end up giving results using cx_freeze. So what would be the best way to create an executable from a python script? Use python 3.6.5 (32 bits) The imports: # -*- coding: utf-8 -* import pyga...
asked by 01.05.2018 / 02:31
1
answer

Modify data from a listbox in python with tkinter using postgresql ... mouseEvent

I have an interface where I show a list of data from different clients with a Listbox. I was wondering if it is possible to select a data from there and that can be modified directly? those are the data that I have in postgresql a...
asked by 08.05.2018 / 22:27
0
answers

PYTHON - struct.error: unpack requires a buffer of 17665190 bytes

I have generated an audio graphic representation script, however, it throws me the following error: Here I leave my code: import wave import struct import sys import numpy as np from math import sqrt import matplotlib matplotlib.use('...
asked by 01.05.2018 / 19:19