Questions tagged as 'python-3.x'

0
answers

pyodb package connects to SQLSERVER 2008 and does not get data

I am working with python 3.5.4 and django 1.11.13 install pyodbc and pyodbc-azure, it connects but it does not make any sql, here I put an image of the code and the debugging with the answer , also probe with 'DATABASES = { 'default': {...
asked by 15.08.2018 / 16:51
0
answers

show a field knowing its name in a django template

if I have a "person" model with a "name" field to show the field in a template I use {{person.name}} But as it is done when I have the name of the field in a variable. For example: nombrecampo='nombre' {{persona[nombrecampo]}}...
asked by 30.07.2018 / 15:38
0
answers

Why can not I send the value of the qlineedit

from PyQt5.QtWidgets import QMainWindow, QApplication from PyQt5 import uic, QtCore, Qt import threading from Inicio import * class Principal(QMainWindow): def __init__(self): QMainWindow.__init__(self) uic.loadUi("C:/Users/A...
asked by 05.08.2018 / 18:15
0
answers

How to execute function in an interval?

I am trying to execute a function in the background every 5 seconds in which I check the data of an object and modify it. I have found this form (see code) but I can not get it to run when I deploy the Django server. Code import threadin...
asked by 20.07.2018 / 12:18
0
answers

How to translate a queryset to subquery in django?

This is my problem I want to group by a field which is a result of an annotate, but I can not do it. from django.db.models import Max, Sum queryset = queryset.values('period', 'cell').annotate(x=Max('total')) result = queryset.values('period')...
asked by 19.07.2018 / 21:24
1
answer

Select intervals of a column in a DataFrame

I have a DataFrame made with pandas, formed by the columns ['x','y','z0','z','arbol'] , attached screen of its structure: From the data of that general DataFrame I have extracted all those whose tree value is equal to 1 creating a...
asked by 13.07.2018 / 11:03
0
answers

Assignment of values to parameters in ISO 8583 with python

I am new to the creation of sockets and frames for virtual card transactions or reloads, I am currently working with python and its iso 8583 library, so I am seeing the need to see how I can assign the parameters to the library correctly , the e...
asked by 24.07.2018 / 20:42
1
answer

pyusb can not find device

I am trying to decry all the usb connected to my pc using pyusb, but I have the following problems: 1.- you can not find all the devices (there is no hdd connected at the moment of execution) 2.- How can I get the iInterface (to detect the...
asked by 22.07.2018 / 04:38
0
answers

Lighttpd + fastcgi + python3 = child exited with status 8

I'm trying to run a small program in python: import os from flup.server.fcgi import WSGIServer from webapi import webapi from configuration import config from setup import setup if __name__ == "__main__": setup() if config.getboolean...
asked by 16.07.2018 / 20:52
1
answer

Document hash with hashlib, TypeError: object supporting the buffer API required

I'm trying to make an application where I can indicate a file and its hashes (SHA1, SHA256, md5). The problem is that when it comes to removing the hash, I get the following error, referring to a missing API:    Traceback (most recent call...
asked by 02.07.2018 / 19:05