Re: lipo: can't figure out the architecture type of

2009-03-23 Thread VJ
On Mar 19, 4:48 pm, Vijayendra Bapte wrote: > Hi, > > I am getting an gcc compilation error while installing FSEvents > (http://pypi.python.org/packages/source/p/pyobjc-framework-FSEvents/ > pyobjc-framework-FSEvents-2.2b1.tar.gz) package on my Mac (OS X > 10.4.11, Intel Core Duo 32 bit processor,

Re: Help needed with translating perl to python

2007-06-26 Thread vj
I posted too soon: > Statement 1: > my $today = sprintf("%4s%02s%02s", [localtime()]->[5]+1900, > [localtime()]->[4]+1, [localtime()]->[3]) ; 1. is localtime the same as time in python? 2. What does -> ? do in perl? 3. What is 'my' > Statement 2: > my $password = md5_hex("$today$username") ;

Help needed with translating perl to python

2007-06-26 Thread vj
I have a perl script which connect to network stream using sockets. The scripts first logins in to the server and then parses the data comming from the socket. Statement 1: my $today = sprintf("%4s%02s%02s", [localtime()]->[5]+1900, [localtime()]->[4]+1, [localtime()]->[3]) ; Statement 2: my

Re: Questions on migrating from Numeric/Scipy to Numpy

2007-03-14 Thread vj
What should I be using to replace Numeric/arrayobject.h: numpy/arrayobject.h or numpy/oldnumeric.h Thanks, VJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Questions on migrating from Numeric/Scipy to Numpy

2007-03-13 Thread vj
found this strange. It should just give an error if you try to use a mask array of non booleans. It's working great so far. Thanks for all the hard work. VJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Questions on migrating from Numeric/Scipy to Numpy

2007-03-13 Thread vj
insert() does. See the docstring: Then this behavior is different from the scipy_base.insert > In [7]: a[mask] = 100 What I needed was a[mask] = array_of_values I just tried it and it works. Thanks, VJ -- http://mail.python.org/mailman/listinfo/python-list

Questions on migrating from Numeric/Scipy to Numpy

2007-03-13 Thread vj
array([ 100.]) I would have expected numpy.insert to update a so that the second element in a would be 100. Thanks, VJ -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: IbPy 0.7.0-9.00 - Interactive Brokers Python API

2007-02-23 Thread vj
Cool. Why is python 2.5 required, will it not work with python 2.4? VJ -- http://mail.python.org/mailman/listinfo/python-list

Does anyone have the db_row module compiled for python 2.4 on windows?

2007-02-12 Thread vj
Would really appreciate the binary files for the db_row. Thanks, VJ -- http://mail.python.org/mailman/listinfo/python-list

I'm looking to learn pyqt

2006-12-06 Thread vj
Is there a a tutorial or a sample application I can start with (that works with qt4 and pyqt4)? Thanks, VJ -- http://mail.python.org/mailman/listinfo/python-list

Re: os.mkdir and mode

2006-12-02 Thread vj
> To fix your problem, reset your umask thus :- Thanks for the detailed reply. Your fix works like a charm. VJ -- http://mail.python.org/mailman/listinfo/python-list

os.mkdir and mode

2006-12-01 Thread vj
How do I do the following unix command: mkdir -m770 test with the os.mkdir command. Using os.mkdir(mode=0770) ends with the incorrect permissions. Thanks, VJ -- http://mail.python.org/mailman/listinfo/python-list

Anynoe have any examples on how to use python with paypal?

2006-11-17 Thread vj
rails Any examples would be greatly appreciated. VJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Has anyone generated Open Office Calc XML files from python

2006-11-16 Thread vj
> Isn't generating CSV output suitable to your needs? > Python's CSV module makes that very simple - unless you want to include > images, etc. in the XLS file? You cannot create multiple worksheets using this method, or apply any other form of formatting. VJ -- http://mail

Re: Has anyone generated Open Office Calc XML files from python

2006-11-16 Thread vj
w) # Save the document to the file you want to create doc.save("calc-example01.ods") ------- VJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Has anyone generated Open Office Calc XML files from python

2006-11-16 Thread vj
I just found something in perl: http://tools.openoffice.org/profiling/pod/LogFile/XML.html Will try and reverse engineer this, unless something like this exists in python. VJ -- http://mail.python.org/mailman/listinfo/python-list

Has anyone generated Open Office Calc XML files from python

2006-11-16 Thread vj
? Any idea on the XML format used by Open Office Calc? VJ -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: PyQt v4.1 Released

2006-11-05 Thread vj
> Riverbank Computing is pleased to announce the release of PyQt v4.1 > available from http://www.riverbankcomputing.co.uk/pyqt/. What's the best way to learn pyqt. Do the examples from the book GUI Programming with Python: QT Edition still work? Is the material from the book mostly valid or have

Re: wing ide vs. komodo?

2006-11-04 Thread vj
yy in the files the list of files with matching yyy reduces automatically. This is very cool and very useful. Another thing I like about WING is that it warns you if you have tabs ans spaces mixed in a file. The embedded python shell is also a useful feature. VJ -- http://mail.python.org/ma

Re: wing ide vs. komodo?

2006-11-04 Thread vj
pment, while komodo supports all the major scripting languages. VJ -- http://mail.python.org/mailman/listinfo/python-list

Re: recommended general-purpose string template packages?

2006-08-15 Thread vj
I use preppy from reportlab: http://www.reportlab.org/preppy.html It's one file, is fast and can be easily embedded in any application. Vineet -- http://mail.python.org/mailman/listinfo/python-list

Re: PyLint 0.11 / astng 0.16

2006-04-21 Thread vj
It does. In my case I'm thinking of embedding pylint to check user scripts which are written in python. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyLint 0.11 / astng 0.16

2006-04-20 Thread vj
Are there any plans to release pylint under the LGPL license? -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex installation on windows XP: step-by-step guide

2006-04-19 Thread vj
Can you use the stock python build or do you have to build python from scratch with mingw to use pyrex modules built with mingw? -- http://mail.python.org/mailman/listinfo/python-list

Need help with python one liners which will not be caught by signal.alarm

2006-04-19 Thread vj
I'm trying to create a semi restricted env where users are not able to bring my application down. I know the following: 1**1000 will not be caught by signal.alarm since it is executed in c code. Are there other examples? Will [100]*100 be cought by signal.alarm? Thanks

how to use ez_setup on a machine which does not have access to the internet

2006-03-28 Thread vj
I did the following: 1. Downloaded ez_setup.py 2. Downloaded the setuptools-0.6a10-py2.4.egg 3. Downloaded the pysqlite-2.0.6-py2.4-linux-i686(2).egg Transferred all the files to the computer which is behind a firewall (with no access to the internet). I then did the following: path_to_python e

What's the best way to learn perl for a python programmer?

2006-03-24 Thread vj
I've been given a project which requires writing scripts that need to be run on over 3000 servers. Only about 15% of them have python installed on them. While all/most of them will have perl. I'll try and do as much as possible in pexpect but am sure I'll have do some significant perl. Any suggest

Re: How to find out the next Friday using RelativeDateTime

2006-03-23 Thread vj
Thanks for pointing out that the days=+0 is not necessary. Your other points are well noted. Thanks VJ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find out the next Friday using RelativeDateTime

2006-03-23 Thread vj
I figured out how to do it. This does not work: delta = ReltaiveDateTime(days=0, weekday(mx.DateTime.Friday, 0)) But this works: delta = ReltaiveDateTime(days=+0, weekday(mx.DateTime.Friday, 0)) -- http://mail.python.org/mailman/listinfo/python-list

How to find out the next Friday using RelativeDateTime

2006-03-23 Thread vj
I'm doing: a = now() delta = ReltaiveDateTime(days=+6, weekday(mx.DateTime.Friday, 0)) Next Friday: a+delta a: march 23 a+delta: Gives me March 31st and not March 24th Any ideas? -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help with restricting number of new objects a user script can create

2006-03-22 Thread vj
I think the only option is to come up with my own mini language. Searching on google, I found several examples where people replaced python with lua for scripting. Am reading up on lua and looks very promissing. I also tried doing the following: for i=1,1 do print(i) end on: http://doris.

Need help with restricting number of new objects a user script can create

2006-03-22 Thread vj
I'm building a large infrastructure with about 30 servers (all running linux). I allow my end users to write scripts which then get broken down in smaller parts and run across the 30 servers. The results from each individual run are combined and presented back to the user. I'm currently using pyli

File Permissions

2006-03-10 Thread VJ
#x27;ST_IREAD' " any idea how to resolve this error ?? Basically i want to write into a file .If the permissions are not there then print a error message. How do i achive this ??? Thanks, VJ -- http://mail.python.org/mailman/listinfo/python-list

The .NET Framework SDK needs to be installed before building

2005-09-21 Thread vj
I have installed the .NET Framework SDK 1.1. Yet I recieve this error message when I install PYDB2. Could you please pour in your suggestions . Thanks. Vj. -- http://mail.python.org/mailman/listinfo/python-list

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vj
Unfortunately I get another error Your DB2 root is: C:\Program Files\IBM\SQLLIB\ running install running build running build_py creating build creating build\lib.win32-2.4 copying DB2.py -> build\lib.win32-2.4 running build_ext error: The .NET Framework SDK needs to be installed before building ex

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vj
I am new to Python . Please let me where should I issue the command "setup.py install". I have been using the IDLE to run Python scripts. -- http://mail.python.org/mailman/listinfo/python-list

I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vj
ase let me know , what should have been the issue. Thanks in advance. Vj -- http://mail.python.org/mailman/listinfo/python-list