Questions tagged as 'python'

0
answers

Google Sheets with Python

I'm trying to upload some data to Google spreadsheets with Python. For this I use in module requests. I have managed to read a spreadsheet without problem using this code: import requests import json url = "https://sheets.googleapis.com/v4/s...
asked by 15.11.2018 / 12:23
1
answer

Import keyword in the Python program [closed]

How does the operating system know how to handle the keyword "import" in a python program? In other words, how does the referred module know how to "import"?     
asked by 15.11.2018 / 12:29
1
answer

Go through a file and save it in variables to make an FTP function?

login.txt # Contenido del fichero login.txt - ['10.0.0.3','Root','*****','/usr/amat','C:\Users\becario2adm','yyyymmdd'] - ['10.0.0.4','Administrador','*******','/zzz','C:\Users\becario2adm','yyyy_mm_dd'] - ['10.0.0.5','Administrador','*******','/...
asked by 15.11.2018 / 11:31
0
answers

MultiValueDictKeyError

hi I'm trying to make a sales system where to make a sale I need to open cash but I get the errors in my code of views amount = Decimal (request.POST ["amount"]), total = Decimal (request.POST ["total"]), difference = Decimal (request.POST ["di...
asked by 14.11.2018 / 01:19
3
answers

Doubts about arrangements at PYTHON

   ~ Load two arrays of integers of N and M positions.   ~ It is requested to generate a program that produces the intersection between the two arrangements. a = [] b = [] n1 = int(input("Ingrese la cantidad de elementos del primer arreglo: "...
asked by 14.11.2018 / 02:15
0
answers

How to break a while loop?

My while loop, it does not break, the function that I put to break it is ignored, and I would like to know how to fix it. to break when I enter the asterisk. form itertools import cycle; ewe=cycle([0]); Nom_entrada=""; Agenda={}; Bucle_pricipa...
asked by 14.11.2018 / 03:51
2
answers

I need to solve a Django problem - manage.py createsuperuser | UnicodeEncodeError

When executing: (env) luis@ux-pc:~/projects/administrador-webapp-django$ python3 manage.py createsuperuser Nombre de usuario (leave blank to use 'luis'): superusername I get a Unicode error: Traceback (most recent call last): File "mana...
asked by 15.11.2018 / 04:01
1
answer

Grid Layout and Stack Layout in Kivy does not work for me

It does nothing that I started to learn Kivy, I'm in the different types of Layout but I do not work either the Grid Layout or the Stack Layout. I do not miss any mistakes; the problem is that when I run the program it stays in total black. Help...
asked by 15.11.2018 / 01:21
0
answers

In python2.7 how to save data in MySQL captured from an interface

Hello colleagues I have this little doubt about how to save this data in my BD I have my connection import mysql.connector db = mysql.connector.connect( host = "127.0.0.1", port = "3307", user = "root",...
asked by 13.11.2018 / 21:18
0
answers

Run subprocess.run on a terminal other than the one that executes the Python script

I'm writing a program in Python3 with a Tkinter GUI. I have included a terminal xterm in one of my frames: Frame2 = Frame(master) Frame2.place(x=self.anchoVentana,y=2*self.alto/3,width=self.ancho-self.anchoVentana,height=self.alto/4) w...
asked by 14.11.2018 / 11:35