Questions tagged as 'python'

1
answer

How to create a registration form with Django

I recently studied Django, but I came across a problem in creating forms, I tried to go in the official documentation of the Framework but I did not find the solution. forms.py from django import forms from .models import Novo_Usuario cl...
asked by 03.06.2018 / 16:59
1
answer

Code mandelbrot set

I am studying a specific code of the mandelbrot set (equation with complex numbers) focusing on object-oriented programming. However, there is a specific part that I did not understand from the code, as below: columns = 2000 rows = 2000 res...
asked by 02.06.2018 / 16:16
1
answer

Doubts Points Recognition with OpenCv and Dlib

Hello, I want to do facial recognition with Dlib and Open through WebCam but I'm having a Numpy error that I can not solve, if anyone can give me a hint it would be of great help. My Code. import cv2 import dlib def imprimePontos (webcam,...
asked by 02.06.2018 / 22:02
1
answer

Django login view only works with users created in createsuperuser

I've been busting my head with this problem for a few days. I am doing a project for college and created a custom user, I can add users normally in my template, they are committed in the bd, but in the login template, they do not log in. I can o...
asked by 27.05.2018 / 01:46
0
answers

Error pyttsx3.init ('sapi5') in Python

I'm having a question in Python, I'm trying to use the pyttsx3 library, with python3.6. And when I run the pyttsx3.init('sapi5') boot command an error appears, and I can not start the library. follows the ERROR: ================== RE...
asked by 30.05.2018 / 20:01
1
answer

How to transform a list that will be given on entry into an array?

I'm trying to transform this list that was given to me in input into an array u l i o a e a p b e a r y l s j i t u a e e h u b e u o r r c t n e p b i o s b This is one of the input examples, my But the most I've achieved so far...
asked by 29.05.2018 / 19:53
0
answers

Using MechanicalSoup to navigate through the selected dropdown after logging

I used MechanicalSoup to log in to a page. Opening the browser, it remained as one page application opening only the dropdowns. With BeautifulSoup I can select which dropdown I want to open, but I can not do it. >>> page.select('a[hre...
asked by 23.05.2018 / 16:08
1
answer

How to find the largest value in an array? [duplicate]

Well, I have a 3x4 array and I want to know how to develop a python code to get the highest value from this array. My code done so far was this: LINHAS = 3 COLUNAS = 4 LINHA_ MatrizM = [] for i in range(LINHAS): MatrizM.append([])...
asked by 06.06.2018 / 18:15
0
answers

How to convert video in memory with moviepy?

I'm converting videos into python and I'm using the moviepy library. I'm using the instructions: clip = VideoFileClip('/home/developer/Pictures/aa.mov') clip.write_videofile('/home/developer/Pictures/aa.mp4') And it is working perfectly, h...
asked by 06.06.2018 / 18:25
2
answers

Run terminal from Python program

I am doing a distributed systems job, in which I am using PYRO, in it I am using objeto.adapter.rebindURI() to use the same object when the server that was (downed) is "restarted" ... I want this restart to be from my Python program...
asked by 21.05.2018 / 16:41