Using select.kqueue to monitor garageband transcode completion

2011-01-25 Thread harijay
I want to automate a series of functions in python that trigger when the OSX application Garagband finishes writing to a file called "todays_recording.mp3". A Typical transcode process takes 20 minutes , and I fancy starting the python program immediately after I start the transcode and then walki

Re: OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread harijay
thing I am doing is dir1 and dir2 will each have a script1.sh . But that still makes it mutually exclusive paths. Hari On Dec 30, 5:34 pm, "Thomas L. Shinnick" wrote: > At 03:46 PM 12/30/2010, harijay wrote: > > >Hi, > >I am writing some multithreaded code

OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread harijay
e will be greatly appreciated. Thanks hari The orchestrator class is at: https://github.com/harijay/auriga/blob/master/process_multi.py A sample thread subclass is at : https://github.com/harijay/auriga/blob/master/scatomtzrunthread.py Detailed error: Exception in thread Thread-1: Traceback

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread harijay
Thanks Tim for your reply. I did get that build . Also thanks for the examples. Looking forward to using the module Hari On Dec 7, 3:22 pm, Tim Golden wrote: > You want something from here: > >    http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/ > > Which one you need will depe

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread harijay
orresponds to the latest build ( same time stamp as the link labeled "Download Binaries / View all Files") There was an exe file corresponding to my python version. Which came with an installer that installed the binaries Thanks for your help I looked in the right place. Hari On Dec

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread harijay
Using the "binary" offered on sourceforge and calling "python setup.py install" Has the install asking for "vcsvarsall.bat" . So this does not seem to be a binary build On Dec 7, 1:27 pm, Ian wrote: > On Dec 7, 11:02 am, harijay wrote: > > > >

win32com pythonwin extensions part of stdlib?

2010-12-07 Thread harijay
Hi I am using Python 2.6.5 on Windows. I wanted to start using the win32com extensions which I understand are "essentially part of the stdlib" ( quoted in http://tgolden.sc.sabren.com/python/win32_how_do_i.html) Since I didnt have the extensions as standard I went to sourceforge to get the module

Re: multicpu bzip2 using os.system or queue using python script

2010-07-27 Thread harijay
Thanks a tonne..That code works perfectly and also shows me how to think of using queue and threads in my python programs Hari On Jul 27, 1:26 pm, MRAB wrote: > harijay wrote: > > I want to quickly bzip2 compress several hundred gigabytes of data > > using my 8 core , 16 GB

multicpu bzip2 using os.system or queue using python script

2010-07-27 Thread harijay
I want to quickly bzip2 compress several hundred gigabytes of data using my 8 core , 16 GB ram workstation. Currently I am using a simple python script to compress a whole directory tree using bzip2 and a system call coupled to an os.walk call. I see that the bzip2 only uses a single cpu while the

Re: running shelscript inside python

2009-03-26 Thread harijay
t; %(options.symm,cellparams) import subprocess f2mtzargs = ["f2mtz hklin %s hklout %s" % (options.phs,options.mtzfile),"< wrote: > On Thu, 2009-03-26 at 15:23 -0700, harijay wrote: > > Hi > > I want to run shell scripts of the following kind from inside python

running shelscript inside python

2009-03-26 Thread harijay
Hi I want to run shell scripts of the following kind from inside python and for some reason either the os.system or the subprocess.call ways are not working for me . I am calling a fortran command (f2mtz ) with some keyworded input that is normally piped (<<) in. The section of code that deals wi

Re: getting at individual bits inside byte field: struct module : bitwise operator

2009-02-23 Thread harijay
now in my working code (element1,) = struct.unpack(" wrote: > "harijay" wrote in message > > news:4c7d58a1-830f-4f02-ba07-aa4910f5f...@b16g2000yqb.googlegroups.com... > > > > > In my last post I had asked about reading data from a binary file > > usin

getting at individual bits inside byte field: struct module : bitwise operator

2009-02-23 Thread harijay
In my last post I had asked about reading data from a binary file using the struct module. Thanks to some excellent help , I have managed to read in successfully most of the header of this binary format that I want to parse. These are some time-voltage traces from a digital to analog converter for

Re: Reading a tab delimited text file.

2009-02-23 Thread harijay
myval1.append(line[0]) myval2.append(line[1]) myval3.append(line[2]) etc etc . The csv module defines a dialect excel_tab. Each line is then parsed into an array . You can insert that array into another array and have an array line mydata = [ [line1],[line2] ...] Hopw this helps harijay

reading binary data from a 32 bit machine on 64 bit machine

2009-02-19 Thread harijay
Hi I am very confused with the use of the struct module to read binary data from a file. ( I have only worked with ascii files so far) I have a file spec for a Data-logger (http://www.dataq.com/support/ techinfo/ff.htm) I am collecting some voltage , time traces on one channel and they are writte

Re: matching exactly a 4 digit number in python

2008-11-21 Thread harijay
am always amazed at how helpful everyone on this group is Hari On Nov 21, 5:12 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Nov 22, 8:46 am, harijay <[EMAIL PROTECTED]> wrote: > > > Hi > > I am a few months new into python. I have used regexps before in perl >

matching exactly a 4 digit number in python

2008-11-21 Thread harijay
t given below Thanks for your help Harijay PyMate r8111 running Python 2.5.1 (/usr/bin/python) >>> testdigit.py Matched I have 2004 rupees Matched I have 3324234 and more Matched As 3233 Matched 2323423414 is good Matched dc sav 2412441 asdf SKIPPED random1341also and also SKIPP

Re: please solve

2008-10-13 Thread harijay
p://www.nongnu.org/fab/documentation.html> > > --R ALso please look at the pexpect module. This allows you to supply "human" input to automate scripts that require it. Look at http://www.noah.org/wiki/Pexpect#Description_of_Pexpect Hope this helps Harijay -- http://mail.python.org/mailman/listinfo/python-list

Re: NameError question - def(self, master) - master not in namespace within class?

2008-10-09 Thread harijay
grateful to everyone for their time . harijay On Oct 9, 12:07 pm, "Jerry Hill" <[EMAIL PROTECTED]> wrote: > On Thu, Oct 9, 2008 at 11:43 AM, harijay <[EMAIL PROTECTED]> wrote: > > Hi I am new to writing module and object oriented python code. I am > > trying to

Re: NameError question - def(self, master) - master not in namespace within class?

2008-10-09 Thread harijay
h Now I have the variable master name setnameinchild and master.trash hj On Oct 9, 11:54 am, [EMAIL PROTECTED] wrote: > On 9 Ott, 17:43, harijay <[EMAIL PROTECTED]> wrote: > > > > > Hi I am new to writing module and object oriented python code. I am > > trying t

NameError question - def(self,master) - master not in namespace within class?

2008-10-09 Thread harijay
rame my question. I am pasting the code contained in the three files and the error message here Thanks for your help harijay The detailed error I get is hazel:tmp hari$ python runner.py Traceback (most recent call last): File "runner.py", line 3, in import child File "/