Questions tagged as 'python'

1
answer

Error message: "io.UnsupportedOperation: not readable" in Python

I want to make a little program that reads a txt file and generates a list of lines of that file. The code that I have is the following: f = open("rutas de archivos.txt","w",encoding="utf8") linesfilelist = f.readlines() f.close() When exec...
asked by 21.01.2017 / 19:31
1
answer

how to return a 4-digit value (neither more nor less) and return with your figures invested in python

Friends help me with this question that they left me in a workshop, I've really tried but it does not give me, I tried this: def invertida(n): """ problema: recibir un numero de 4 cifras y devolver sus cifras invertidas entrada:...
asked by 12.02.2017 / 19:25
1
answer

Receive data every time through API using websockets

I am working with the API of a platform to receive currency quotes minute by minute, I have a way of doing it but it is not very functional and I wanted to check if someone could help me, this is my code: from iqoptionapi.api import IQOptionAP...
asked by 25.01.2017 / 08:27
1
answer

Python multiprocessing (Pool) error

I have a problem with multiprocessing my program. This is the code of the program and below I insert the error: Program: import argparse import sys import multiprocessing from multiprocessing import Pool import time def main(): parser...
asked by 24.01.2017 / 22:12
1
answer

Create a new field within a table and enter the value of another but taking the value of a next row

I commented: I have previously asked a question "Create a new field within a table and enter the value of another but taking the value of a previous row" and I have already solved. Now another problem arises and I want to do the same but taking...
asked by 24.01.2017 / 21:02
2
answers

Server Error (500) Django

Hello, I have this error when opening the site I develop in Django, this is my settings.py: SECRET_KEY = '$+(+t#5=etj8+=osa$0v%ouzw%04piwfo!3%b8mli24!s$u6#j' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False AL...
asked by 16.02.2017 / 04:27
2
answers

How do I type the symbol "¿" in Python 2.7?

How can you write the symbol "¿" in a manageable text string in Python 2.7?     
asked by 09.12.2016 / 01:29
1
answer

Accessing nested elements in a JSON from a Django template

I have the following document JSON { "paciente": { "id": 1234, "nombre": "Pablo Andrés Agudelo Marenco", "sesion": { "id": 12345, "juego": [ { "nombre": "bonzo", "nivel": [...
asked by 29.11.2016 / 05:39
1
answer

Pip install Mysql for Pynthon in windows 10 64 bits gives me SKD error 7.1

On a 64-bit Windows 10 Notebook, with Python 3.3 installed. When I want to install Mysql through Pip in Python I get the following error:    error: Microsoft Visual C ++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft...
asked by 04.12.2016 / 16:54
1
answer

Problem installing a django project with virtualenv in debian

I have a problem, I already installed the virtual environment and I already installed with pip django, only that there is a problem when creating the project structure, the following appears: (venv)padawan@debian:~/Documents/Git/landing-page$...
asked by 07.12.2016 / 00:49