Questions tagged as 'python'

2
answers

how to show a Reportlab report in the browser?

I am new with reportlab, the problem I have is that despite being able to create reports with reportlab, I have only been able to save them in the root folder of my project, but when I upload it to a test server I get this error: Error and Tr...
asked by 10.03.2016 / 15:03
1
answer

Error with startswith Python

I am running a server written in python, and this error appears when I run it: Traceback (most recent call last): File "desarrollo/open/server/bin/openerp-server.py", line 124, in <module> pooljobs=False) File "/home/daniel/desar...
asked by 14.11.2018 / 16:33
1
answer

Publish Django in Apache [closed]

Someone could perhaps explain to me how I can put into production a Django project with Apache, I'm a little lost. Official Documentation Production I have read Django's documentation but the truth is not clear about this, I would appreciate a...
asked by 12.11.2018 / 20:47
1
answer

"UnicodeDecodeError" when starting the python shell on the Windows cmd

Good day, I have a problem when initializing the python shell in the Windows cmd, less than a day ago it worked perfectly, but suddenly, when I wanted to start the Python shell inside the Windows cmd with the command "python" ", it shows me the...
asked by 07.11.2018 / 17:59
1
answer

Sort the wildcard * in ascending numerical order

I'm using * to take all the files that start with out : We have : ['out0.jpg', 'out2.jpg', 'out4.jpg', 'out5.jpg', 'out1.jpg', 'out6.jpg', 'out3.jpg'] but I would like them to be sorted in ascending order. At the moment I am doing:...
asked by 04.11.2018 / 13:04
1
answer

I missed the following error expected an idented block

I'm something new in this programming, I've seen several codes, but I do not get the point I want to get, I want to put on my hobbies, a music player and a background photo. But this jumps me the error of the title. class App: def __init__(se...
asked by 04.11.2018 / 05:53
2
answers

Delete item from a list in python

I do not know what I'm wrong about, I have the concept but it confuses me a bit def eliminarEnLista(L): n=int(raw_input("Ingrese el numero que desea eliminar de la lista: ")) L=[] i=0 while i <len(L): for c...
asked by 21.10.2018 / 02:15
1
answer

how do I get these if statement to work?

What happens is that when I run my program, the output repeats the questions more than usual (sometimes 4 times sometimes 2 or 1). My mistake may be because I call the functions many times or because I misuse the if statement but I'm not sure...
asked by 13.10.2018 / 01:29
1
answer

Syntax error when assigning text to a Text widget

I try to make a window with scroll and it gives me a syntax error in the code: texto = tk.Label(elframe,wraplength=500,text="El ejemplo de texto ^ SyntaxError: EOL while scannin...
asked by 09.10.2018 / 20:46
1
answer

Error in parameterized query: TypeError: list indices must be integers, not str

I am developing a GUI that manages my database in Python 2.7 that connects to a MySQL database. You can already insert, consult and delete but what you can not do yet is update with the UPDATE statement. I get the following error: Exception in...
asked by 11.10.2018 / 23:59