Questions tagged as 'python'

1
answer

Paginate result of a POST form in Django

Good, I've been looking for an optimal solution for paging a list of cars resulting from a search through a POST form. I found the solution by adding that list of cars to request.session but that solution is inefficient and very slow, it take...
asked by 31.12.2016 / 13:30
1
answer

I am learning with python update add and remove

Good Night I am left with homework to create a list of books where I can add delete and update the case is that I try it with a cycle for I can only update because when I try to add or delete the only thing that does is to repeat the question I...
asked by 04.02.2017 / 00:30
2
answers

cv2.calcHist causes error "pythonw.exe has stopped working"

I am working on a project with OCR using a webcam. I need to know the number of black pixels present in an image, so I tried to use the cv2.calcHist function but it causes python to stop when I execute the code. If I comment lines 13 and...
asked by 05.02.2017 / 16:47
1
answer

Tkinter I want to move forward with the enter key once the data is entered between several entry

In the example below, I want to enter the data in each of the cells and when pressing the enter / enter key, accept the data and look for the next one. I would also add if you can put an entry order in the manner of VisualBasic TabIndex. fr...
asked by 22.12.2016 / 21:18
2
answers

Delete part of a URL with Django

Performing an application in Django (without using the forms that the framework brings), when accessing to edit a record the url that the browser shows me remains as follows: Up here all good, but once I edit the record I have the same...
asked by 26.12.2016 / 16:37
0
answers

Python: error in cl.exe when installing pyscard

I'm trying to install pyscard for Python 3.5 but I get the following error when installing "pip install pyscard":    "error: command 'cl.exe' failed: No such file or directory." I have tried installing Visual Studio 2015 but the same erro...
asked by 14.12.2016 / 16:21
0
answers

PyQt, import class correctly

Again I was caught, in my slow progress with PyQt. Now I am with another example of connection with bbdd. The example is simple a QDialog, in which I have a button and pressing it inserts a record in a bodd Mongodb. The program I have divided in...
asked by 09.12.2016 / 01:13
1
answer

Python: install Pymaldi for card reader

Does anyone know where I can download the pymaldi library for Python? I have to use it to access an RDIF card reader but I can not download the library.     
asked by 13.12.2016 / 10:10
1
answer

Error compiling .pyw to exe with py2exe

Hi, I'm trying to compile a .pyw to .exe file with py2exe, the setup.pyw contains the following: from distutils.core import setup import py2exe setup(console=['laZagne.pyw'],options={'py2exe': { "dll_excludes": ["MSVFW32.dll",...
asked by 18.11.2016 / 21:43
2
answers

How to connect with SQLALCHEMY to a database?

I am doing a test in Python to verify that the database of a machine is active. My problem is that when I connect it gives me the error:    "sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1045," Access denied for us...
asked by 17.11.2016 / 10:59