connection aborted error please help to fix it

2021-08-17 Thread hi
Sent from [1]Mail for Windows References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list

Re: Error .. Please Help

2012-12-13 Thread Dave Angel
On 12/13/2012 04:23 AM, inshu chauhan wrote: >> >> if-else doesn't define a loop, but each of the for statements do. >> >> You have defined a classification for 8 of the possible colors, leaving >> millions of them undefined. If the first time through the loop you >> manage to hit one of those und

Re: Error .. Please Help

2012-12-13 Thread Neil Cerutti
On 2012-12-13, inshu chauhan wrote: > For this I put an else clause at end but is there a better way > to avoid this kind of situation ?? An if-elif-else structure is usually broken if you leave out the else part. When I don't expect it to ever actually happen when the program is working correctl

Re: Error .. Please Help

2012-12-13 Thread Chris Angelico
On Thu, Dec 13, 2012 at 8:23 PM, inshu chauhan wrote: >> Are you really getting floating point values, or are they always going >> to be equal to an integer? Those if/elif statements might be a problem >> if you ever need to compare to a value like (128.4, 255.0, 255.0). > > > I dont have values

Re: Error .. Please Help

2012-12-13 Thread inshu chauhan
> > if-else doesn't define a loop, but each of the for statements do. > > You have defined a classification for 8 of the possible colors, leaving > millions of them undefined. If the first time through the loop you > manage to hit one of those undefined ones, you'll have no value for > classificat

Re: Error .. Please Help

2012-12-12 Thread Ulrich Eckhardt
Am 12.12.2012 16:00, schrieb inshu chauhan: color = image[y,x] if color == (0.0,0.0,0.0): continue else : if color == (0.0,255.0,0.0): classification = 1 elif color == (128.0, 0.0, 255.0): classifi

Re: Error .. Please Help

2012-12-12 Thread Dave Angel
On 12/12/2012 10:00 AM, inshu chauhan wrote: > In this code : > > import cv > g = open("PointCloudmitClass.txt", "w") > image = cv.LoadImageM("Z:/modules/intensity_01.tif", > cv.CV_LOAD_IMAGE_UNCHANGED) > print image > for y in xrange(0,image.height): > for x in xrange(0,image.width): >

Re: Error .. Please Help

2012-12-12 Thread Chris Angelico
On Thu, Dec 13, 2012 at 2:00 AM, inshu chauhan wrote: > In this code : > > import cv > if color == (0.0,255.0,0.0): > classification = 1 > ... > elif color == (255.0, 0.0, 255.0): > classification = 7 > > print >> g, x , y , color

Error .. Please Help

2012-12-12 Thread inshu chauhan
In this code : import cv g = open("PointCloudmitClass.txt", "w") image = cv.LoadImageM("Z:/modules/intensity_01.tif", cv.CV_LOAD_IMAGE_UNCHANGED) print image for y in xrange(0,image.height): for x in xrange(0,image.width): color = image[y,x] if color == (0.0,0.0,0.0):

Re: import gzip error (please help)

2008-01-13 Thread syahreza.octadian
On Jan 11, 7:14 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > the core zlib library (libz.so) isn't installed on your machine. but in my machine there is file -rwxr-xr-x 1 bin bin48576 Sep 20 2006 /usr/local/lib/ python2.5/lib-dynload/zlib.so if i have to install zlib library c

Re: import gzip error (please help)

2008-01-11 Thread Fredrik Lundh
syahreza.octadian wrote: > Please help, i have error message when i import gzip module. The error > like this below: > > bash-3.00$ python > Python 2.5 (r25:51908, Sep 20 2006, 03:46:40) > [GCC 3.4.6] on sunos5 > Type "help", "copyright", "credits" or "license" for more information. import g

import gzip error (please help)

2008-01-11 Thread syahreza.octadian
Dear all, Please help, i have error message when i import gzip module. The error like this below: bash-3.00$ python Python 2.5 (r25:51908, Sep 20 2006, 03:46:40) [GCC 3.4.6] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import gzip Traceback (most recent cal

Re: python readline error - please help - need it for scanner!

2006-09-08 Thread Frederic Wenzel
On 9/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > can configure, make and install > everything fine. I'm using python 2.4 I have ubuntu dapper drake. I am > trying to install hplip which requires python. When I do this, this > also works but while running the following error occurs: > Tr

python readline error - please help - need it for scanner!

2006-09-08 Thread benjamin . grant
can configure, make and install everything fine. I'm using python 2.4 I have ubuntu dapper drake. I am trying to install hplip which requires python. When I do this, this also works but while running the following error occurs: Traceback (most recent call last): File "/usr/local/bin/hp-setup",