abrt: detected unhandled Python exception

2013-12-29 Thread smilesonisamal
Hi all, I am facing a script issue whenever i run my script in /var/log/messages and it gives error something as below: abrt: detected unhandled Python exception in x.py. Can anybody help me figuring out how do i know which line number has thrown the python exception? Regards Pradeep

Re: python socket query

2013-12-23 Thread smilesonisamal
On Monday, December 23, 2013 8:49:30 AM UTC+5:30, Chris Angelico wrote: On Mon, Dec 23, 2013 at 2:05 PM, smilesonisa...@gmail.com wrote: I wrote a small program which creates the socket, bind to the socket, connect to socket and send() close(). I see that there is no reply coming from

python socket query

2013-12-22 Thread smilesonisamal
Hi, I am trying to write a TCP socket program in python. I am using python 2.6 in linux. I referred following link: http://www.ibm.com/developerworks/linux/tutorials/l-pysocks/section4.html I am actually writing the client-side stream socket. I wrote a small program which creates the socket,

Unpacking the structures

2013-12-18 Thread smilesonisamal
Hi all, While performing the packing/unpacking of xdr structures of rpc I get an error as following. x = struct.unpack('L', data)[0] struct.error: unpack requires a string argument of length 4. Can anybody help me in this regard? I checked the following link:

Logger module in python

2013-12-17 Thread smilesonisamal
Hi, I am a newbie in python. I am looking for a existing module which I can import in my program to log the objects to a file? I know there is a module Data::Dumper in perl which dumps the objects to file. But not sure about python. Can anybody help me in this regard? Regards Pradeep --

python import error

2013-12-10 Thread smilesonisamal
Hi, I am a new bie in python I was trying to execute the python script aaa.py in fedora which imports different modules. Actually when I am executing the aaa.py I am getting the following error and PYTHON_PATH=/bin/python which has a symlink to python-2.7. Please help me in this regard? I am

Re: python import error

2013-12-10 Thread smilesonisamal
On Wednesday, December 11, 2013 10:23:34 AM UTC+5:30, John Gordon wrote: In 93405ea9-6faf-4a09-9fd9-ed264e313...@googlegroups.com smilesonisa...@gmail.com writes: File aaa.py, line 5, in module from ccc.ddd import sss ImportError: No module named ccc.ddd directory