Re: [Tutor] Python 3.2 Install Not Responding To Python Command!!

2011-04-28 Thread Rohan Sachdeva
I know this was a while ago but you can add the ppa by going to the terminal and typing: sudo add-apt-repository ppa:irie/python3.2 then sudo apt-get update and sudo apt-get install python3.2 Rohan On Sun, Apr 10, 2011 at 1:33 PM, Walter Prins wrote: > > > On 9 April 2011 19:45, Nevins Duret

Re: [Tutor] Pictures

2011-04-28 Thread Joel Goldstick
On Wed, Apr 27, 2011 at 11:41 PM, wrote: > Hello, > > I'm still quite new at this but I'm trying to get a list of the pictures > adress (... .jpg) of a page of a website. > > I thought of using the import urllib and import re, trying to fetch the > website, parse it, and collect the adresses but

Re: [Tutor] Pictures

2011-04-28 Thread naheed arafat
On Thu, Apr 28, 2011 at 6:48 PM, Joel Goldstick wrote: > > > On Wed, Apr 27, 2011 at 11:41 PM, wrote: > >> Hello, >> >> I'm still quite new at this but I'm trying to get a list of the pictures >> adress (... .jpg) of a page of a website. >> >> I thought of using the import urllib and import re, t

Re: [Tutor] Pictures

2011-04-28 Thread naheed arafat
Observing the page source i think : page=urllib.urlopen('http://finance.blog.lemonde.fr').read() x=re.findall(r"http://s2.lemde.fr/image/2011/02/16/87x0/1480844_7_87fe_bandeau-lycee-electrique.jpg " x.extend(y) x=list(set(x)) for img in x: image=img.split('.')[-1]

[Tutor] distutils site.cfg variable expansion

2011-04-28 Thread Bill Campbell
I'm learning my way around package building using setuptools, and would like to have scripts for a system administration package installed under $(prefix)/sbin instead of under the default $(prefix)/bin directory without requiring the installer to use the manual 'python setup.py install --install-s

[Tutor] Calling a python script using subprocess

2011-04-28 Thread GoodPotatoes
I am trying to execute a python script using the subprocess module.  I am feeding parameters into the script, which reads them using argparse and returns a list. The script simply returns a list when called.  When I execute my script from my prompt, I get the following: H:\pythonscripts>install

Re: [Tutor] Calling a python script using subprocess

2011-04-28 Thread James Mills
On Fri, Apr 29, 2011 at 7:18 AM, GoodPotatoes wrote: > > p = subprocess.Popen(r'installModule.py --mods mod1 mod2 mod3', executable = > sys.executable, stdout = subprocess.PIPE, stderr = subprocess.STDOUT) Try this (untested): p = subprocess.Popen(["/usr/bin/env python", "installModule.py", "--