Questions tagged as 'python-2.7'

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 / 02:31
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 / 02:29
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 03.10.2018 / 22:17
1
answer

Create menu and difficulty in pygame

I have everything ready, I just need to create the menu and I do not know where to put it, the complete code is this import pygame, sys, os, random from pygame.locals import * pygame.init() #Se crea la ventana y le damos un titulo screen = py...
asked by 08.10.2018 / 23:55
0
answers

calculate the% of ampoule saves, its previous consumption and the new consumption - Python

You must tell me how many ampules of so many watts I need. Your test cases are: import sys Ampolletas = int (raw_input("Ingrese el numero de ampolletas: ")) Watts = int (raw_input("Ingrese el consumo de la ampolleta en watts: ")) Mult...
asked by 20.09.2018 / 02:34
1
answer

TypeError: can not multiply sequence by non-int of type 'float'

How do I fix that error? Traceback (most recent call last): File "main.py", line 7, in AreaL = (PI *(Generatriz * Radio)) TypeError: can not multiply sequence by non-int of type 'float' import math PI = 3,1415 Diametro = int (raw_i...
asked by 19.09.2018 / 04:42
0
answers

Converting .ui to .py from PyQt4 for Python 2.7 generates me error

This is the error that leaves me when I try to convert it. I have searched the Internet, but I can not find any solution to my problem. I am learning to work with PyQt and if I do not convert it I can not move forward. If someone can help me, I'...
asked by 13.09.2018 / 20:34
0
answers

fill out two forms (one to edit and one to create) in a single template in django?

My question is this, I have two forms to edit and the other to create and I want them to be in a single template, and been trying to make it work but nothing comes out, the template itself does not show any form. here I leave the reference code...
asked by 11.09.2018 / 19:39
0
answers

Create CSV from a list of Dictionaries and enclose the data

I have a list of dictionaries like this: lotes = [{'lote': '30045612', 'producto':'nombre_producto1'}, {'lote': '30045613', 'producto':'nombre_producto2'}, {'lote': '30045614', 'producto':'nombre_producto3'}, {'lote'...
asked by 23.08.2018 / 15:21
0
answers

Problems when using bb_serial_read python

These are developing a small panel of monitoring in flask and I want to acquire some data from the serial port, the function that I am using to acquire the serial is: import wiringpi import wiringpi2 #as wiringpi import random import time impo...
asked by 28.08.2018 / 22:08