Questions tagged as 'python'

1
answer

Permission denied - Logging

I have implemented Logging of python into several Flask projects successfully. But when I tried to re-implement Logging in a project it gives the following error:IOError: [Errno 13] Permission denied . To try to solve the problem...
asked by 20.10.2015 / 18:46
1
answer

Is there a way to kill a thread in Python?

Is there any way to stop a thread in python? And is it a bad practice to do this?     
asked by 20.10.2015 / 02:32
1
answer

Define an analytic function in python

I need to do some operations with arrays (of very large size), but the elements of it are analytical functions. Is there a way to do this in Python? Ex: Matrix = [[x ** 2 + 3x, x + y + 1] ... [...] ..... [...]]     
asked by 31.10.2015 / 06:26
0
answers

Error loading script uwsgi - can not be loaded as Python module

I made the settings to work Django with Apache, but always gives the following error:    can not be loaded as Python module My file: import os import sys sys.path.append('/home/myuser/public/site.com.br/public_html/app/') sys.path.appen...
asked by 18.09.2015 / 17:47
1
answer

ImportError: DLL load failed:% 1 is not a valid Win32 application

When I run a Python script the following error occurs: Traceback (most recent call last): File "C:\Users\flemos\AppData\Local\Programs\Python\Python35-32\lib\pandas\__init__.py", line 7, in <module> from pandas import hashtable, ts...
asked by 19.10.2015 / 17:35
1
answer

How to place the mouse cursor at a specific position in a text field?

I am trying to format a field of type entry of gtk that I am using for the dates entry and wanted to add the character / in certain positions confirm the user will typing .. And the only thing missing is to position the mouse cu...
asked by 27.08.2015 / 22:11
1
answer

I want to learn to program [closed]

I want to learn how to program, what do you recommend that I do first? I saw in several sites about python, which is a language to learn first, is it good? Which one should I leave after? Obg!     
asked by 05.08.2015 / 01:48
0
answers

how to use pyserial in interaction with pci modem

I'm trying to create a program that dials for certain phone numbers, call twice and change to the next number. I am using pyserial for communication with the pci modem only that the program occupies the port but the modem does not dial. Th...
asked by 16.07.2015 / 17:18
1
answer

Create a list of dict python

I have the following function in python def playersID(self, listDetals): listPlayersID = [] tempDict = {} for x in listDetals: for y in x['result']['players']: tempDict.clear()...
asked by 05.09.2015 / 02:04
1
answer

Write to file, replace words / numbers

I have this code that is supposed to read a file and erase all the numbers that are there, the file is type a list of words, Ex: "Ana \ n Bruno \ n 123 \ n 10 \ n ... ". A line has letters or numbers, never the two mixed together. What I...
asked by 20.03.2015 / 09:10