Help needed to install ZOracleDA

2007-05-21 Thread Manish Kumar
Hi All,

 

How can I install ZOracleDA on Red Hat Linux machine? 

 

Configuration of my system is as below:

Zope-2.7

Python-2.3.5

Oracle-9i

 

I have tried to install ZOracleDA but installable needed
rh-7.1-python-1.5.2-dco2.so file which is not present in Binaries directory.

 

Any help from you people is appreciable.

 

 

Regards,

Manish Kumar


"Legal Disclaimer: This electronic message and all contents contain information 
from Cybage Software Private Limited which may be privileged, confidential, or 
otherwise protected from disclosure. The information is intended to be for the 
addressee(s) only. If you are not an addressee, any disclosure, copy, 
distribution, or use of the contents of this message is strictly prohibited. If 
you have received this electronic message in error please notify the sender by 
reply e-mail to and destroy the original message and all copies. Cybage has 
taken every reasonable precaution to minimize the risk of malicious content in 
the mail, but is not liable for any damage you may sustain as a result of any 
malicious content in this e-mail. You should carry out your own malicious 
content checks before opening the e-mail or attachment."
www.cybage.com 


-- 
http://mail.python.org/mailman/listinfo/python-list

Needs help to install ZOracleDA

2007-05-21 Thread Manish Kumar

Hi All, 

How can I install ZOracleDA on Red Hat Linux machine? 
Configuration of my system is as below:

Zope-2.7
Python-2.3.5
Oracle-9i

I have tried to install ZOracleDA but installable needed
rh-7.1-python-1.5.2-dco2.so file which is not present in Binaries directory.

Any help from you people is appreciable.
 

Regards,
Manish Kumar



"Legal Disclaimer: This electronic message and all contents contain information 
from Cybage Software Private Limited which may be privileged, confidential, or 
otherwise protected from disclosure. The information is intended to be for the 
addressee(s) only. If you are not an addressee, any disclosure, copy, 
distribution, or use of the contents of this message is strictly prohibited. If 
you have received this electronic message in error please notify the sender by 
reply e-mail to and destroy the original message and all copies. Cybage has 
taken every reasonable precaution to minimize the risk of malicious content in 
the mail, but is not liable for any damage you may sustain as a result of any 
malicious content in this e-mail. You should carry out your own malicious 
content checks before opening the e-mail or attachment."
www.cybage.com 


-- 
http://mail.python.org/mailman/listinfo/python-list


Needs help to install ZOracleDA

2007-05-21 Thread Manish Kumar
Hi All, 

 

How can I install ZOracleDA on Red Hat Linux machine? 

Configuration of my system is as below:

 

Zope-2.7

Python-2.3.5

Oracle-9i

 

I have tried to install ZOracleDA but installable needed
rh-7.1-python-1.5.2-dco2.so file which is not present in Binaries directory.

 

Any help from you people is appreciable.

 

 

Regards,

Manish Kumar

 


"Legal Disclaimer: This electronic message and all contents contain information 
from Cybage Software Private Limited which may be privileged, confidential, or 
otherwise protected from disclosure. The information is intended to be for the 
addressee(s) only. If you are not an addressee, any disclosure, copy, 
distribution, or use of the contents of this message is strictly prohibited. If 
you have received this electronic message in error please notify the sender by 
reply e-mail to and destroy the original message and all copies. Cybage has 
taken every reasonable precaution to minimize the risk of malicious content in 
the mail, but is not liable for any damage you may sustain as a result of any 
malicious content in this e-mail. You should carry out your own malicious 
content checks before opening the e-mail or attachment."
www.cybage.com 


-- 
http://mail.python.org/mailman/listinfo/python-list

Using variable in storbinary function of ftpilb module

2008-10-15 Thread Arya, Manish Kumar
Hi,

  I am new to python.

I have written a simple code to upload a file via ftp to remote server

-
import sys
import ftplib
host=sys.argv[1]
username=sys.argv[2]
passwd=sys.argv[3]
filename=sys.argv[4]

print host,username,passwd

ftp = ftplib.FTP(host,username,passwd)
fd=open(filename,'rb')
ftp.storbinary('STOR filename',fd)
---

I am passing file name in cmd line arg. but I have no idea how to use 
"filename" variable value in ftp.storbinary('STOR filename',fd) ?




  
--
http://mail.python.org/mailman/listinfo/python-list


Exception Handling

2006-01-11 Thread Manish Kumar (WT01 - Software Products & OSS)

Hi,

We have some modules of our project implemented in python and some in C.
We use shared library objects to access C functions from python.

We need to catch the exceptions like segmentation fault occurring in the
C module in python and print the complete stack.

We tried 1) signal.signal(SIGSEGV, handler_function)   
2)  try:
call to C functions through shared object
except:
traceback.print_exc(file=sys.stdout)
We got this.
1) But it hangs the process.

2) It does not print the stack.

Can you please suggest some solutions ?

Thanks and Regards
Manish Kumar



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python-list Digest, Vol 28, Issue 191

2006-01-12 Thread Manish Kumar (WT01 - Software Products & OSS)

Hi,

It does not work. I had already tried this earlier.

Please suggest some other solutions.

Also, I would like to see the stack from where the exception started.

Thanks n regards,
Manish Kumar

On Thu, 2006-01-12 at 10:40 +0100, [EMAIL PROTECTED] wrote:
> Send Python-list mailing list submissions to
>   python-list@python.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   http://mail.python.org/mailman/listinfo/python-list
> or, via email, send a message with subject or body 'help' to
>   [EMAIL PROTECTED]
> 
> You can reach the person managing the list at
>   [EMAIL PROTECTED]
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Python-list digest..."
> Today's Topics:
> 
>1. Re: Exception Handling (Sheldon)
>2. Re: void * C array to a Numpy array using Swig (Jon)
>3. Re: flatten a level one list (Peter Otten)
>4. Re: Why keep identity-based equality comparison? (Paul Rubin)
>5. Re: flatten a level one list (Paul Rubin)
>6. How can I create a dict that sets a flag if it's been
>   modified ([EMAIL PROTECTED])
>7. Re: Python Scripts to logon to websites (Paul Rubin)
>8. Re: flatten a level one list ([EMAIL PROTECTED])
>9. Re: How can I create a dict that sets a flag if it's been
>   modified (Amit Khemka)
>   10. Re: How can I create a dict that sets a flag if it's been
>   modified (Paul Rubin)
>   11. Re: Unicode style in win32/PythonWin (Thomas Heller)
>   12. Re: Real-world use cases for map's None fill-in feature?
>   (Raymond Hettinger)
> email message attachment
> On Thu, 2006-01-12 at 10:40 +0100, [EMAIL PROTECTED]
> wrote:
> > Hi,
> > This is a non-trivial thing that you are trying to do. You can use some
> > of python's built-in exceptions, like RuntimeError or IOError and if so
> > then:
> > try:
> >call C
> > except IOError, e:
> > print e
> > 
> > But this will return and print only IOErrors if they occur.
> > 
> > You can define your own error handling using the function RAISE:
> > try:
> >   Call C
> > except:
> >   raise my_error.
> > 
> > A catch-all error is RuntimeError; try this first.
> > try:
> >  call C
> > except RuntimeError, r:
> >   print r
> > 
> > You can read up on it here:
> > http://docs.python.org/api/standardExceptions.html
> > 
> > 
> > Cheers,
> > Sheldon
> > 
> > 
> email message attachment
> On Thu, 2006-01-12 at 10:40 +0100, [EMAIL PROTECTED]
> wrote:
> > Krish,
> > 
> > In case you find a good solution, I am also looking for one!
> > 
> > For now I essentially use helper functions on the c side which wrap in
> > SWIG to return the data as a string in python. That string can then be
> > converted to a numpy array using the fromstring function. This is
> > inefficient as it does an unnecessary copy but avoids dependence on
> > numeric versus numarray etc. It uses the cstring thing in SWIG (see the
> > manual). The library I am wrapping does not have an image struct, but
> > returns the data into memory that the user has to malloc.
> > 
> > In the swig file I have something like this, which I've simplified to
> > try to get to the point. It assumes you have two c functions which take
> > a pointer to your struct as argument, the first returns the size of the
> > data (what to malloc), the second copies the data into your memory
> > where a pointer to the memory location was second arg.
> > 
> > Doubtless I've introduced typos below, but hopefully you get the idea?
> > 
> > Good luck,
> > 
> > Jon
> > ---
> > typedef struct
> > {
> > stuff/* I don't know or care what is in here */
> > } imagefilestruct;
> > 
> > %extend imagefilestruct {
> > 
> >  [... snip constructor destructor other functions etc]
> > 
> > %cstring_output_allocate_size( char ** s, int *slen, free(*$1))
> > get_data ;
> > 
> > void get_data(char **s, int *slen){
> >void * array;
> >size_t size;
> >size = libraryfunction_get_size(self);
> >array=malloc(size));
> >libraryfunc_get_data(self, array);
> >*slen = size;
> >*s = (char *) array;
> >}
> > }
> > 
> > 
> email message attachment
> On Thu, 2006-01-12 at 10:40 +0100, [EMAIL PROTECTED]
> wrote:
> > Tim Hochberg wrote:
> > 
> > > Here's one more that's quite fast using Psyco, but only aver

Re: Exception Handling

2006-01-12 Thread Manish Kumar (WT01 - Software Products & OSS)

I tried with this piece of code

def temp():

try:
print "In try"
libsummac.main1()
except RuntimeError, re:
print "caught" + re
except e:
print "caught" + e

I think the control is not coming to python code. The output of the
above is ..(In main1 before assignment -- this print is inside the C
function).


In try
In main1 before assignment
Segmentation fault

Can u give some solutions for this???

Thanks n Regards,
Manish Kumar

On Thu, 2006-01-12 at 10:40 +0100, [EMAIL PROTECTED] wrote:
> Send Python-list mailing list submissions to
>   python-list@python.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   http://mail.python.org/mailman/listinfo/python-list
> or, via email, send a message with subject or body 'help' to
>   [EMAIL PROTECTED]
> 
> You can reach the person managing the list at
>   [EMAIL PROTECTED]
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Python-list digest..."
> Today's Topics:
> 
>1. Re: Exception Handling (Sheldon)
>2. Re: void * C array to a Numpy array using Swig (Jon)
>3. Re: flatten a level one list (Peter Otten)
>4. Re: Why keep identity-based equality comparison? (Paul Rubin)
>5. Re: flatten a level one list (Paul Rubin)
>6. How can I create a dict that sets a flag if it's been
>   modified ([EMAIL PROTECTED])
>7. Re: Python Scripts to logon to websites (Paul Rubin)
>8. Re: flatten a level one list ([EMAIL PROTECTED])
>9. Re: How can I create a dict that sets a flag if it's been
>   modified (Amit Khemka)
>   10. Re: How can I create a dict that sets a flag if it's been
>   modified (Paul Rubin)
>   11. Re: Unicode style in win32/PythonWin (Thomas Heller)
>   12. Re: Real-world use cases for map's None fill-in feature?
>   (Raymond Hettinger)
> email message attachment
> On Thu, 2006-01-12 at 10:40 +0100, [EMAIL PROTECTED]
> wrote:
> > Hi,
> > This is a non-trivial thing that you are trying to do. You can use some
> > of python's built-in exceptions, like RuntimeError or IOError and if so
> > then:
> > try:
> >call C
> > except IOError, e:
> > print e
> > 
> > But this will return and print only IOErrors if they occur.
> > 
> > You can define your own error handling using the function RAISE:
> > try:
> >   Call C
> > except:
> >   raise my_error.
> > 
> > A catch-all error is RuntimeError; try this first.
> > try:
> >  call C
> > except RuntimeError, r:
> >   print r
> > 
> > You can read up on it here:
> > http://docs.python.org/api/standardExceptions.html
> > 
> > 
> > Cheers,
> > Sheldon
> > 
> > 
> email message attachment
> On Thu, 2006-01-12 at 10:40 +0100, [EMAIL PROTECTED]
> wrote:
> > Krish,
> > 
> > In case you find a good solution, I am also looking for one!
> > 
> > For now I essentially use helper functions on the c side which wrap in
> > SWIG to return the data as a string in python. That string can then be
> > converted to a numpy array using the fromstring function. This is
> > inefficient as it does an unnecessary copy but avoids dependence on
> > numeric versus numarray etc. It uses the cstring thing in SWIG (see the
> > manual). The library I am wrapping does not have an image struct, but
> > returns the data into memory that the user has to malloc.
> > 
> > In the swig file I have something like this, which I've simplified to
> > try to get to the point. It assumes you have two c functions which take
> > a pointer to your struct as argument, the first returns the size of the
> > data (what to malloc), the second copies the data into your memory
> > where a pointer to the memory location was second arg.
> > 
> > Doubtless I've introduced typos below, but hopefully you get the idea?
> > 
> > Good luck,
> > 
> > Jon
> > ---
> > typedef struct
> > {
> > stuff/* I don't know or care what is in here */
> > } imagefilestruct;
> > 
> > %extend imagefilestruct {
> > 
> >  [... snip constructor destructor other functions etc]
> > 
> > %cstring_output_allocate_size( char ** s, int *slen, free(*$1))
> > get_data ;
> > 
> > void get_data(char **s, int *slen){
> >void * array;
> >size_t size;
> >size = libraryfunction_get_size(self);
> >array=malloc(size));
> >libraryfunc_get_data(self, array);
> >*slen = siz