Questions tagged as 'python'

0
answers

how to load scripts from a folder with subfolders in python?

I need a simpler way to load my script since it is used by other people and at the same time different operating system that are between linux and windows at the moment I use execfile () but you have to change the format of The addresses also...
asked by 04.10.2018 / 16:34
0
answers

Use a.any () or a.all ()

I have this code: from PIL import Image import numpy as np import matplotlib.pyplot as plt import FuncionesFiltros as fun Im = Image.open('build.jpg') Im_a = np.array(Im) plt.figure() plt.imshow(Im_a) plt.title('IMAGEN ORIGINAL') plt.axis("of...
asked by 04.10.2018 / 22:30
1
answer

Create menu and difficulty in pygame

I have everything ready, I just need to create the menu and I do not know where to put it, the complete code is this import pygame, sys, os, random from pygame.locals import * pygame.init() #Se crea la ventana y le damos un titulo screen = py...
asked by 09.10.2018 / 01:55
0
answers

Jenkins I returned this error ImportError: Import by filename is not supported

My problem is this: I am trying to integrate jenkins with my python project, where I have already been able to configure some things like pep8 and pylint, but I am now trying the tests through unittest. This in what I have put in the configurati...
asked by 01.10.2018 / 22:50
0
answers

Python: Global name 'info' is not defined

Good morning, I really do not have so much experience programming in Python (I'm a student, really) what happens is the following: I have an assignment in which I must put into practice the use of linked lists, creating nodes. And then that,...
asked by 01.10.2018 / 07:26
1
answer

How to use Android clipboard in Python scripts

I'm doing some tests for an Android script. It is a series of randomly generated numbers that automatically and without displaying anything on the screen, go to the clipboard and is available to be copied anywhere. For now, I run without problem...
asked by 02.10.2018 / 13:39
0
answers

Run a dll from python

I'm trying to execute a dll from python. I found this code # Importamos ctypes import ctypes as c # acceso a la biblioteca dll = c.CDLL("funciones.dll") # acceso a la variable global de la biblioteca # longitud del array size = c.c_int.in...
asked by 01.10.2018 / 01:42
0
answers

Python error not enough values to unpack (expected 3, got 2)

I have this code: from PIL import Image import numpy as np import matplotlib.pyplot as plt import FuncionesFiltros as fun Im = Image.open('build.jpg') Im_a = np.array(Im) plt.figure() plt.imshow(Im_a) plt.title('IMAGEN ORIGINAL') plt.axis("of...
asked by 28.09.2018 / 00:13
0
answers

socket UDP python and RFID antenna

I am working with an RFID antenna and Raspberry pi (raspbian). The connection is through the UDP socket over Python 2.7.x. import socket import sys import time sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server_address = ('192.168....
asked by 29.09.2018 / 09:19
0
answers

Permissions in the views of django admin

I am doing a web based system for several transport companies in django the issue is that it must be multi user but I am having a problem to display the data fix in the image that I put all good that I display the data that way but this...
asked by 29.09.2018 / 21:22