Questions tagged as 'python'

1
answer

Django local variable 'vaiable' referenced before assignment

Good morning. I could not solve this error "local variable" - 'referenced before assignment ", my code is this: Vista: def palcosSearch(request): if request.method == 'POST': form = SearchPalco(request.POST) if form.is_valid(...
asked by 08.10.2018 / 04:02
1
answer

How to bring a window to the front again PyQt5

I have the following problem. I have a sale with a button whose function is to show a second window, but when I return to the first window the second window that was opened goes to the bottom of the first one and if I click again on the butto...
asked by 15.10.2018 / 06:43
0
answers

Python: MITM with scapy

Good morning, I am starting to create my own (in) computer security tools, I was playing with Python and Scapy, I created my own arpspoof and I used it in another tool that intercepts the data I receive, and processes them accordingly. I achi...
asked by 15.10.2018 / 04:31
2
answers

I need to extract the key from a dictionary to save it in a variable

I'm doing a program in which using the list of dictionaries, I need to extract separately the values "tag", "attribute" and "Value". I have managed to get the values of "tag" and "value", but I am not able to extract the value "attribute" becaus...
asked by 15.10.2018 / 12:42
0
answers

Create game without lists

what happens is that I must create a game but must not have lists (the truth does not work either but I plan to use them as XD), I just found out and now I do not know how to remove them or how to put it to work. This is the code import pygame...
asked by 06.10.2018 / 04:29
0
answers

Python: re.findall does not display digit strings correctly

My dear ones, I've been in this for awhile and I would like to know what I'm doing wrong. I have this chain    / file / items / show / 687 / file / items / show / 365 / file / items / show / 34 / file / items / show / 35 / file / items / s...
asked by 04.10.2018 / 04:34
0
answers

Python 2.7: can not import name RoboBrowser How do I solve this?

I'm trying to run a Python script, but when importing RoboBrowser it shows me "can not import name RoboBrowser" as if it were not installed. I installed it with pip and when executing the command pip freeze I see this framework, try with py...
asked by 04.10.2018 / 00:17
1
answer

Notification system

I have this model: and I want the system whenever a user creates an event that notifies the other users, the event created and the name of the user who created it. I do not see how to start implementing, I am using the version of pyt...
asked by 04.10.2018 / 04:08
0
answers

Value travel in columns

I have the following dataframe: and I want to go through each line of the column "CO_tin_no" to consult it with a webservice item=[] for nit in mydataset_df.CO_tin_no: nit = mydataset_df.CO_tin_no url = 'http://www.rues.org.c...
asked by 16.10.2018 / 18:39
1
answer

how to show .gif in QLabel Python

Good morning I would like to know if there is any way in which I can show a file.gif in a qlabel. Currently I've only tried this: from PyQt5.QtWidgets import QMainWindow,QApplication,QLabel class Nueva(QMainWindow): def __init__(self...
asked by 16.10.2018 / 17:44