Questions tagged as 'python-2.7'

1
answer

how to get OS processes with python

I wanted to know if there is any way to make python able to know which processes are open in my OS (win 7 in my case) ex: [I have google open] print "los procesos abiertos son:", procesos the open processes are: google.exe I hope t...
asked by 22.07.2018 / 01:25
1
answer

Python - Working on a file

I'm starting in Python and every sentence I try to write gives me an error. I created a archivo.txt with a fasta sequence that I downloaded, with its spaces and numbers. Now I try to work on it, making small changes, in plan to remo...
asked by 15.05.2016 / 19:03
1
answer

Create an executable with ptyhon cx_freeze

I'm creating an executable with python using the cx_freeze library, but I have a problem, when I run the setup.py to create the .exe this throws me an error asking me to close Python 2.7: Firma con problemas: Nombre del event...
asked by 31.03.2016 / 12:24
1
answer

Delete multiple folders in Python

They could advise me, I have the following problem. I have thousands of folders which in turn has several sub-folders, there is specifically a sub-folder that is named "0". Example: ├ DISCO_1 (CARPETA_Principal) | ├─ 2014353(SUB-CARPETA)...
asked by 19.01.2016 / 19:04
1
answer

Python collation excel report with Pandas

I am generating a report with the Pandas module in Python, I get the data from MySQL, but there is a column with accented data, at the time of generating the report it falls, I leave information related to the problem. Connection code: con...
asked by 11.05.2018 / 12:21
1
answer

help with python and pycrypto

my headache is this I want to make a program that encrypts certain files and then delete the original version, because I tried it only works with only one file and creates a new one, I work with delicate files and when I finish to moficarlos is...
asked by 18.08.2016 / 15:49
1
answer

I need to do a consolidated product in Python

I have a list of dictionary objects like the following: productos = [ {'nombre': 'Jumbo maní', 'cantidad': 30, 'categoria': 'Jet'}, {'nombre': 'Jumbo maní', 'cantidad': 50, 'categoria': 'Jet'}, {'nombre': 'Papas de pollo', 'cantidad': 15, 'c...
asked by 22.12.2018 / 21:31
1
answer

Views and render () in Django

I am learning to use Django (specifically version 1.9). However, when creating a view, and when starting the Django server, I have the following error: TypeError: render() takes at least 2 arguments (1 given) What I do not understand is, wh...
asked by 15.12.2015 / 19:51
4
answers

For nested in python

Good, I have a list and I want to iterate on it, and then inside that for iterate on the same list from the next value I read until the end. In a Java-like programming style it would be: int[10] array; for (int i=0; i < array.le...
asked by 08.05.2016 / 15:01
2
answers

Problem urllib2 with HTTPS

I'm trying to retrieve a page on Flickr using urllib2 and I get the following error when I execute the command urllib2.urlopen('https://www.flickr.com') File "/usr/lib/python2.7/urllib2.py", line 104, in urlopen return _opener.open(...
asked by 21.04.2016 / 20:08