Questions tagged as 'python'

1
answer

Scroll with Selenium in Python: Error

I have a list of items on the screen, in which I need to click one by one to parse data. It happens that, at a certain moment, Selenium can not click anymore, because when it tries, the following error happens: selenium.common.exceptions.WebDr...
asked by 10.05.2018 / 15:45
1
answer

Python: Running slow code and other problems

Dear colleagues, Can anyone clarify what might be happening? In short, this is a code for reading cells from a worksheet, sorting and transporting to a new worksheet. The problem: The code does not run and does not display an error. I...
asked by 21.05.2018 / 04:34
0
answers

How to create a tridiagonal array in Python?

Hello, I'd like to know how to write a tridiagonal NxN array. I have three vectors that will be updated in a loop. I'm working on something similar to this: Note: I would just like to know about zeros and what Python parameters I could...
asked by 21.05.2018 / 14:16
1
answer

random choice in python

I am a beginner and I am creating a program to make tables, but I did not want the program to follow a growing order like "1x1, 1x2" and so on. So I used a "random.choice" function to randomly display the tables, I created a list to show the tab...
asked by 21.05.2018 / 01:36
0
answers

Syntax Error: AcroForm field object is wrong type in Python

I'm developing a python spider that should collect some information and download the PDF. The code seems to be correct as it downloads to the directory of the first PDF and then returns the .json. However, it happens that after the first read...
asked by 09.05.2018 / 14:17
0
answers

Anaconda Python Installation - PyCharm Projects

I use Windows 10 and recently I realized that my files and projects developed through the PyCharm IDE, as well as the installation of the Anaconda package, are located in a folder in the directory that contains spaces (C: \ Users \ Thiago Panini...
asked by 08.05.2018 / 16:00
1
answer

problems with return "None" in Python

Hello, I'm trying to get data from an API for a university job, but when I try to print the data I get the following error:    AttributeError: 'NoneType' object has no attribute 'text' Follow the code used: def list_all_political_par...
asked by 07.05.2018 / 17:28
1
answer

Photo upload with Model name in Django

I would like help with a task saving images with a custom name and a folder also with the current name, suppose the following Model: class ProdutoA(models.Model): nome_produto_a = models.CharField(max_length=50, verbose_name='Nome do Produ...
asked by 11.05.2018 / 18:04
0
answers

Problem making multiprocessing between files in python

I was trying to run an application using the OpenBCI kit, in case, I used their programs in python. My objective is to analyze the data obtained by this program in real time, however, from what I realized, it only works by running at a predeterm...
asked by 08.05.2018 / 18:44
1
answer

Removal of Duplicate Elements: divide and conquer

I'm having trouble getting an algorithm that removes duplicate elements in an array (it can only be integers), which uses the Divide And Conquer method. I'm needing for a college job, and unfortunately I'm not able to find / implement an algor...
asked by 14.05.2018 / 22:32