Questions tagged as 'python'

1
answer

Permission denied when extracting document in zip

I'm trying to extract some documents from a zip and I have the following error. The folder has all the permissions if I do manual the extraction works.    PermissionError: [Errno 13] Permission denied:   'D: \ requestsOSM \ downloadPOI' T...
asked by 19.12.2018 / 18:15
1
answer

Error in Jupyter with SPARK (Pyhton)

Python , Spark , Jupyter in my notebook and I see a failure when I try to run the following code, I put this example (text analysis), but it jumps in many other programs, I tried everything, configure the clusters, review the...
asked by 18.12.2018 / 11:23
1
answer

Calculate module 11 factor 2

I am trying to calculate the module 11 factor 2 of a number of 48 digits in python I have the following code: def GenerarClaveAcceso(clave_acceso_48): """Funcion encargada de crear la clave de Acceso con 49 digitos basado en...
asked by 03.01.2019 / 15:50
0
answers

Background image is constantly loaded in Python

Good morning, I have a game in python to which I assign a background that I want to be changed by another when I reach a number of points, the problem is that when the background is changed it is constantly loaded and the framerate is lowered, i...
asked by 21.12.2018 / 18:55
0
answers

NameError: name '__callback' is not defined

I am trying to use gupnp (GNU library for UPnP and DLNA operations), using GObjectIntrospection: import functools import gi gi.require_version( 'GSSDP', '1.0' ) from gi.repository import GSSDP from gi.repository import Gtk __callback =...
asked by 12.12.2018 / 19:53
0
answers

Voice to text almost solved, with android and python

I have running a Python script on an Android phone. Recognize the voice continuously and send it by socket to a Raspberry and from there to the sensors and everything else. When you do not interpret a word, ask to try again but you have to...
asked by 11.12.2018 / 00:31
1
answer

Help Python Loops

I am learning to use python and there is one thing that I can not do, I want to make a loop for when I ask a question, just let me put one of these letters a, b, c, d, e that in the first run, after that ask me again which letter I want t...
asked by 15.12.2018 / 20:59
1
answer

what error are you referring to when creating a local directory in Python?

I create a function to download an FTP Server directory and try to create it before in local and I miss an error def Down_Dir(ftp, dir): ftp.cwd('\datos') try: os.makedirs(os.getcwd()+"\"+dir) except OSError as e:...
asked by 05.12.2018 / 11:30
1
answer

Python: Index Out Of Range when traversing a vector

I work in a function that should look for the element with the highest value in a vector, but I get an error when compiling, the code is the following: def getVPPXSenialXMovXFilaMaximosMinimos(self, mov_canal, fila): line = [self.file.getV...
asked by 01.12.2018 / 02:02
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