Questions tagged as 'python'

1
answer

Error: "no module named xxxx"

I have Python installed in my pcs (Windows 7 and 8) but I can not execute any script that contains import . The error message always appears:    import error: no module named xxxx.     
asked by 12.11.2015 / 11:59
1
answer

Problem installing RPM on Ubuntu [closed]

I'm trying to install some RPM packages in my Ubuntu , but I'm getting messages from dependency failures. The strange thing is that all the dependencies are already installed in my SO . I created a deps directory with 4 rpm: eve...
asked by 24.03.2016 / 13:44
2
answers

Linux runtime

I need to take the average run time and CPU de 30 execuções consumption of a program done in Python . I have to use the command time of Linux . Since I've never worked with Linux before I'm having trouble doing t...
asked by 03.06.2015 / 21:15
1
answer

For x in range (y) does not return right

I have a problem with a def x () in python. the Problem is "inside" it. Even though I put it right, it returns the else, no matter. I've tried everything but I could not tell because it does not return right. Here's the code. def filters...
asked by 20.05.2015 / 01:30
2
answers

I can not print a variable that receives the value of a list position

List exercise. Select the largest and smallest element of a vector. import os os.system("clear") vetor=[] #declara o vetor #solicita o n° de elementos n = int(input("Digite a quantidade de elementos a ser adicionada..")) #declara o i i = 0...
asked by 07.09.2015 / 00:29
1
answer

Freeze Windows clock [closed]

Would it be possible to freeze the Windows clock with Python? If yes, what library does this?     
asked by 14.03.2015 / 12:51
1
answer

Download NFe [closed]

I want to do a program to consult and download NF-e and would like to know what Web Services I would connect to get my application to run.     
asked by 17.11.2014 / 20:53
2
answers

Python - get data from .txt file with regex

Hello, I'm trying to make a program but I'm not able to remove the data from the .txt file, it would look more or less bold. PokerStars Hand #135235596385: Tournament #1228747530, $0.23+$0.02 USD Hold'em No Limit - Level I (10/20) - 2015/05/14...
asked by 22.05.2015 / 20:02
1
answer

Django Authentication with Legacy Database

I am developing a project with a legacy database (Firebird), and I was able to configure settings.py and it is working with the database. At the time of creating a login using forms, I am not able to create authentication with the database, a...
asked by 12.11.2014 / 19:49
1
answer

Problem with Django authentication

I'm having trouble validating login, I'm using a legacy firebird 2.5 database. Could someone help me?     
asked by 11.11.2014 / 16:18