Questions tagged as 'python'

1
answer

Work with "named pipe" in python

I am trying to write a sript python to read from a file and send the output to a named pipe or named pipe. Unlike the standard pipe, the named pipe persists in the system and not in memory. So far I have seen that with popen you can work with...
asked by 10.03.2017 / 21:21
1
answer

Heat map from dictionary

I have a dictionary and I would like to create a map of heat or heatmap or densitymap of specific values. I only manage to plot the points but not the heat map. This is what I have. for id,msj in diccionario.items(): pylab.plot(msj['Longit...
asked by 15.03.2017 / 12:35
1
answer

Managing the value of a variable among several functions in Kivy project

Be the following layout of my app: I am looking for when the "Successful question" button is clicked, the variable score = 10 and when the "Failed question" button is clicked, the variable score = -5 For both cases, the purple label also show...
asked by 19.04.2017 / 22:45
1
answer

Converter of decimal, binary, hexadecimal, octal bases in Python

How can I get back two values in the request value function, since doing so gives me an error? import re #Importo las expresiones regulares para comparar los hex bin_fraccionaria =[0] print("Bienvenido al conversor de bases."+'\n...
asked by 23.02.2017 / 21:54
1
answer

Error Django: Page not found (404)

I can not make my form url work in django. Error description:    Using the URLconf defined in django1_project.urls, Django tried these URL patterns, in this order:   1. ^ admin /   2. ^ pet ^ $ [name = 'index']   3. ^ pet ^ new $ [name = '...
asked by 20.03.2017 / 15:54
2
answers

Help with: NoReverseMatch at!

help with this error: Reverse for 'pedido_sub' with arguments '()' and keyword arguments '{'cod_experto': 'AA-0002', 'id_pedido': 53}' not found. 1 pattern(s) tried: ['solicitar/aprobar/(?P<id_pedido>\d+)/(?P<cod_experto>\d+)$'...
asked by 17.02.2017 / 03:47
1
answer

How to generate a PYTHONPATH environment variable for django

I recently updated my Ubuntu operating system 14.04 to 16.04 and it turns out that I can no longer run a project on Django that is running on a virtualenv throws me this error. File "./manage.py", line 17, in <module> "Couldn't imp...
asked by 17.02.2017 / 04:23
1
answer

NoReverseMatch at

Hi, could you help me with this error: Reverse for 'order_sub' with arguments '()' and keyword arguments '{' request_id ': 53,' code_expert ':' AA-0002 '}' not found. 1 pattern (s) tried: ['request / approve / (? P \ d +) / (? P \ d +) $']...
asked by 17.02.2017 / 00:51
1
answer

Django.como subtract amount entered minus stock in product table?

I am new to python and it has been difficult for me to formulate a logic for this problem, it is necessary to subtract the amount entered from an article minus the stock that is already in the article table. here the classes: class Pedido(mode...
asked by 09.02.2017 / 22:26
1
answer

How to store imported data to Python in a memory cache

Working with Python 3.5. and Pandas I am developing an application which performs a series of calculations and processes on a dataframe in Pandas. I filled that dataframe through a select that I launched against my database in SQL Server thro...
asked by 19.01.2017 / 16:17