Questions tagged as 'python-2.7'

1
answer

Problems working with kivy in Python 2.7

I have Python 2.7 and I have installed kivy. It has to be installed correctly because when I import it from the Python console it does not give me an error. But if I keep entering code I have problems. I am new to this and I do not know what...
asked by 08.03.2016 / 13:04
1
answer

Draw on matrix

I would like to know how to fill a matrix in such a way that it would appear that I "draw" a figure, it is supposed that I should create the figure and then "paint" it (that would be done for example by adding another number to the "drawing"), I...
asked by 23.12.2018 / 17:24
0
answers

Unable to retrieve data with pydelicious when I initialize a dictionary

I want to use functions to create a database between users and items. I use the functions that you can see here that allow you to do it on the del.icio.us API. However, when I initialize the user dictionary there are problems: Python 2.7.12...
asked by 21.09.2018 / 13:01
0
answers

Mark this bug with the pickle in Python 2.7

I have this problem running my script I stress that I am using the python 2.7, I would like to see if you can help me     
asked by 14.11.2018 / 07:51
0
answers

Upload an Image with AsyncImage in Kivy

I have a problem loading images with the object AsyncImage generates an error, when I load images from the internal memory I have no problems. My code is _: #qpy:kivy import kivy kivy.require('1.10.0') from kivy import App from kivy.uix.gr...
asked by 03.05.2018 / 18:44
1
answer

Possible values for each set of Python variables

Use Python 2.7 I have 5 variables: Fillrate, eCPM, Revenue, Impresiones y Oportunidades . Each one can take the values: ALERTA, Down, Estable, Up, Incremento I need to know what options there may be for each set of variables. I...
asked by 04.01.2018 / 22:02
2
answers

How to apply a destroy () to a Top Level window?

I want to make my top level window close when I press the "Close" button that is located inside the top level itself. Could you tell me what's wrong? My code is as follows: def win2 (): t1 = Toplevel(bg="Brown") t1.title("Modificar Dat...
asked by 19.01.2018 / 22:09
0
answers

How many processes does a multi-process webserver support?

I have a server that must respond to multiple PCs at the time, but some respond to others not. Sometimes an alert comes up with the phrase: "Bad Gateway". This led me to suppose that the server is not able to receive many requests, or is over...
asked by 20.01.2018 / 14:48
0
answers

When using base64 on a string of bytes I receive the error 'utf8' codec can not decode byte 0x86 in position 2: invalid start byte

I'm trying to encrypt a file through a web api that uses Flask. First I read the bytes of the file, I put it in a json encoding with base64 and I send it in a post to the api: with open('/root/Desktop/fichero.txt', 'rb') as outfile: dat...
asked by 29.11.2017 / 11:26
1
answer

I need to get a title that is in an input. PYTHON web scraping

I need to get what it says on the title tag that is in an input: <div class="control-group" id="ApellidoDiv"> <label class="control-label" for="apellidos">Apellido<span class="requiredMarkApellidos"><font col...
asked by 24.11.2017 / 20:23