Questions tagged as 'python'

0
answers

How to type in a textarea with selenium python?

I'm trying to comment on instagram with selenium just for testing, but I'm not able to type inside the textarea, follow the part of the code. comentar = driver.find_element_by_tag_name('textarea') comentar.clear() comentar.send_key...
asked by 04.05.2018 / 13:15
0
answers

How to run engine on the GPU? [closed]

I'm studying a simulator called simian ( link ), I'm mainly based on this article here: link In this article, where one of the authors is the developer of the engine, it is said that in the main program loop it is possible to have it execut...
asked by 04.05.2018 / 21:14
0
answers

Code review: Program that simulates the "game of doors": either you win a car or a goat!

Write a program to simulate the Door game . Make a program that has the output as the following: Hello, welcome to our program! Let's see if you will win a car or not! Choose a door: 3 You chose Door 3, but I inform you that at Gate 2 there...
asked by 24.03.2018 / 15:55
1
answer

Library python asyncio

Hello, I'm trying to install the asyncio library for Python 2.7.13 but I'm not getting success, it follows the error:    rafamttz @ rafamttz: ~ $ pip install asyncio '       Collecting asyncio Retrying (Retry (total = 4, connect = None,   rea...
asked by 28.03.2018 / 02:02
1
answer

Django tests are not recognized

When running Django test commands, no tests are recognized. My file structure is as follows: Eagle/ eagle/ __init__.py settings.py urls.py wsgi.py dashboard/ __init__.py admin.py apps.py forms.py mod...
asked by 30.03.2018 / 02:16
0
answers

Error trying to access ftp.debian.org using Python script: "OSError: [Errno 101] Network is unreachable"

The script: import os from getpass import getpass #nao ecoa o que digita na tela! from ftplib import FTP # Variavél que determina se devemos usar o modo ativo # para FTP nonpassive = False # Nome do arquivo a ser baixado nome_arquivo = 'READ...
asked by 08.04.2018 / 03:02
0
answers

I understand a parallel execution using _thread. Is there any more pythonic way of writing the same code?

import _thread def filho(tid): print('Ola da thread', tid) def pai(): i = 0 while True: i += 1 _thread.start_new_thread(filho, (i,)) if input() == 'q': break pai() Is there any more pythonic way of writing...
asked by 07.04.2018 / 22:36
0
answers

Filling a series of images from data in a table [closed]

I need to make cards for about 500 people, I have a table with the name and image attached and I want to know how to put these data in the template.     
asked by 17.03.2018 / 17:33
0
answers

Get the Start Address of a thread from a process and terminate it individually

What I want to do is open up to check if a process is open, view the thread list, identify it by the Start Address, and end a thread specific to the process. I can do it manually by the processhacker, but I need a script for it. Itriedtomake...
asked by 17.03.2018 / 11:02
1
answer

I can not close the Tkinter Window

Well I'm doing an application in python using tkinter, I made a login window after the user verification and password I would like to open a system window and close the login window. I'm breaking my head and I can not find the error, if anyone c...
asked by 11.04.2018 / 00:29