Questions tagged as 'python'

0
answers

Problem with Multiprocessing and Process in GUI with Tkinter

I'm designing a GUI with Tkinter in python 2.7 for a project that is working ( link ). The project makes a photomosaic from a bank of images, it is done through the Pillow library. The script when working with image processing uses the multip...
asked by 10.05.2017 / 15:53
0
answers

Migration Django 1.10 a 1.11 Error environment can only contain strings

Recently I actulize django from its version 1.10 to 1.11 and the console sends me the following error Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "C:\User...
asked by 12.05.2017 / 15:38
1
answer

Compare an element of one matrix with the next one and if it is equal to eliminate the complete row in python

I have this matrix    and I need to delete the rows that have the elements of the second column repeated I need something like this:    I have this code: for i in range(a,b): if lines3[i-1,1] == lines3[i,1]:...
asked by 20.05.2017 / 00:21
2
answers

Doubt simple list of lists in Python

I'm starting with Python , I was trying to edit a list, but I discovered that I could not do it, since the strings are immutable . I found this solution: lista = [0, 0, 0, 0, 0] lista_temp = [] a=3 b="c" for i in range(0,len(lista)):...
asked by 20.05.2017 / 23:12
1
answer

Create a matrix of matrices in python

Dear, I have a query, how can I make a board or array of matrices in Python ?, whereas the matrix that will form my board or main matrix is a class (has the taxes to be able to rotate and fill in data inside from that same matrix) class matriz...
asked by 20.05.2017 / 17:54
0
answers

8 relay Board how can I do a program to control it [closed]

I have this box of relays called link What I want and intend is to make a program in python or java that connects to it through a com port and activate and deactivate the relays Is this possible?     
asked by 28.04.2017 / 12:53
1
answer

Problem Recognition of numbers from an Image

I have been trying to recognize a serial number in several images from rifles like the following: I have tried with an OCR for image recognition called Asprise: Asprise OCR and it has worked, however I developed the project to carry i...
asked by 02.05.2017 / 23:02
1
answer

Publish to a Facebook group with requests / Python without the API

#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import datetime import json import logging import re import random import requests import shutil from pyquery import PyQuery as pq def main(username, password, page, imgurURL):...
asked by 15.04.2017 / 13:32
1
answer

Display contents of a Python dictionary in the same order of insertion

I am trying to create a dictionary to store the number of incidents that occurred in a month of the year. It's all right to declare the months and store the data in the dictionary. But when trying to show the data always shows them in an alph...
asked by 14.04.2017 / 20:22
0
answers

How to change the order in which it is printed in a program with MultiHilos?

Paralleled program, which uses n independent threads to process a given list of m requests. The threads take the requests in the order they are given in the entry. If there is a free thread, it immediately takes the next request fr...
asked by 15.04.2017 / 23:44