Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28407 > unrolled thread
| Started by | Sreenath k <sreenathk17296@gmail.com> |
|---|---|
| First post | 2012-09-04 10:08 -0700 |
| Last post | 2012-09-05 08:38 +0100 |
| Articles | 6 — 6 participants |
Back to article view | Back to comp.lang.python
Error 32 - Broken Pipe . Please Help!! Sreenath k <sreenathk17296@gmail.com> - 2012-09-04 10:08 -0700
Re: Error 32 - Broken Pipe . Please Help!! Laszlo Nagy <gandalf@shopzeus.com> - 2012-09-04 19:21 +0200
Re: Error 32 - Broken Pipe . Please Help!! Emile van Sebille <emile@fenx.com> - 2012-09-04 10:26 -0700
Re: Error 32 - Broken Pipe . Please Help!! Ramchandra Apte <maniandram01@gmail.com> - 2012-09-04 20:40 -0700
Re: Error 32 - Broken Pipe . Please Help!! Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-05 01:33 -0400
Re: Error 32 - Broken Pipe . Please Help!! Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-05 08:38 +0100
| From | Sreenath k <sreenathk17296@gmail.com> |
|---|---|
| Date | 2012-09-04 10:08 -0700 |
| Subject | Error 32 - Broken Pipe . Please Help!! |
| Message-ID | <a4c3d8fe-b5d6-46aa-b97f-9f8af00bdf2d@googlegroups.com> |
Error:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/monitor.py", line 575, in run
already_pickled=True)
File "/usr/lib/python2.7/dist-packages/spyderlib/utils/bsdsocket.py", line 24, in write_packet
sock.send(struct.pack("l", len(sent_data)) + sent_data)
error: [Errno 32] Broken pipe
Code :
#code
s=1
f=0
c=0
for i in range (1,100):
c=0
for j in (1,i):
s+=j
c=0
for k in range(1,(s/2+1)):
#print s
t=s%k
if t==0:
c+=1
if c>=5:
f=1
print s
break
print s
#code ends.
The program is runnning. It has been more than 10 minutes ( currently). Should I raise my hopes for an answer ?
[toc] | [next] | [standalone]
| From | Laszlo Nagy <gandalf@shopzeus.com> |
|---|---|
| Date | 2012-09-04 19:21 +0200 |
| Message-ID | <mailman.182.1346779324.27098.python-list@python.org> |
| In reply to | #28407 |
2012.09.04. 19:08 keltezéssel, Sreenath k írta:
> Error:
>
>
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
> self.run()
> File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/monitor.py", line 575, in run
> already_pickled=True)
> File "/usr/lib/python2.7/dist-packages/spyderlib/utils/bsdsocket.py", line 24, in write_packet
> sock.send(struct.pack("l", len(sent_data)) + sent_data)
> error: [Errno 32] Broken pipe
>
> Code :
>
> #code
>
> s=1
> f=0
> c=0
>
> for i in range (1,100):
> c=0
> for j in (1,i):
> s+=j
> c=0
> for k in range(1,(s/2+1)):
> #print s
> t=s%k
> if t==0:
> c+=1
> if c>=5:
> f=1
> print s
> break
>
> print s
>
> #code ends.
>
> The program is runnning. It has been more than 10 minutes ( currently). Should I raise my hopes for an answer ?
It must not be your full program. The traceback shows "Thread-1" which
indicates that you are using the threading module. The other possibility
is that you are feeding the output of your program into another program
with a pipeline. In that case, the exception might have occured in the
other program, not yours.
[toc] | [prev] | [next] | [standalone]
| From | Emile van Sebille <emile@fenx.com> |
|---|---|
| Date | 2012-09-04 10:26 -0700 |
| Message-ID | <mailman.183.1346779435.27098.python-list@python.org> |
| In reply to | #28407 |
On 9/4/2012 10:08 AM Sreenath k said...
> Error:
>
>
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
> self.run()
> File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/monitor.py", line 575, in run
> already_pickled=True)
> File "/usr/lib/python2.7/dist-packages/spyderlib/utils/bsdsocket.py", line 24, in write_packet
> sock.send(struct.pack("l", len(sent_data)) + sent_data)
> error: [Errno 32] Broken pipe
>
> Code :
<snip non-relevant code to the above traceback>
So, what code is invoking spyderlib stuff that's causing the error?
Emile
[toc] | [prev] | [next] | [standalone]
| From | Ramchandra Apte <maniandram01@gmail.com> |
|---|---|
| Date | 2012-09-04 20:40 -0700 |
| Message-ID | <98256fa5-e921-41a7-ae93-82a432c99056@googlegroups.com> |
| In reply to | #28407 |
On Tuesday, 4 September 2012 22:38:03 UTC+5:30, Sreenath k wrote:
> Error:
>
>
>
>
>
> Exception in thread Thread-1:
>
> Traceback (most recent call last):
>
> File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
>
> self.run()
>
> File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/monitor.py", line 575, in run
>
> already_pickled=True)
>
> File "/usr/lib/python2.7/dist-packages/spyderlib/utils/bsdsocket.py", line 24, in write_packet
>
> sock.send(struct.pack("l", len(sent_data)) + sent_data)
>
> error: [Errno 32] Broken pipe
>
>
>
> Code :
>
>
>
> #code
>
>
>
> s=1
>
> f=0
>
> c=0
>
>
>
> for i in range (1,100):
>
> c=0
>
> for j in (1,i):
>
> s+=j
>
> c=0
>
> for k in range(1,(s/2+1)):
>
> #print s
>
> t=s%k
>
> if t==0:
>
> c+=1
>
> if c>=5:
>
> f=1
>
> print s
>
> break
>
>
>
> print s
>
>
>
> #code ends.
>
>
>
> The program is runnning. It has been more than 10 minutes ( currently). Should I raise my hopes for an answer ?
*Please* make your variable names more descriptive.
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2012-09-05 01:33 -0400 |
| Message-ID | <mailman.209.1346823191.27098.python-list@python.org> |
| In reply to | #28445 |
On Tue, 4 Sep 2012 20:40:57 -0700 (PDT), Ramchandra Apte
<maniandram01@gmail.com> declaimed the following in
gmane.comp.python.general:
>
> *Please* make your variable names more descriptive.
No kidding... I haven't seen such cryptic names since 1972 -- an era
when BASIC only allowed for
A..Z{"" | 1..0}{"" | $}
{that is, one letter, with optional single digit, with optional $ for
string}
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2012-09-05 08:38 +0100 |
| Message-ID | <mailman.217.1346830723.27098.python-list@python.org> |
| In reply to | #28445 |
On 05/09/2012 06:33, Dennis Lee Bieber wrote:
> On Tue, 4 Sep 2012 20:40:57 -0700 (PDT), Ramchandra Apte
> <maniandram01@gmail.com> declaimed the following in
> gmane.comp.python.general:
>
>>
>> *Please* make your variable names more descriptive.
>
> No kidding... I haven't seen such cryptic names since 1972 -- an era
> when BASIC only allowed for
>
> A..Z{"" | 1..0}{"" | $}
>
> {that is, one letter, with optional single digit, with optional $ for
> string}
>
Presumably BASIC aficianodas still insist that BASIC is the second best
programming language in the world, with the best yet to be invented :)
--
Cheers.
Mark Lawrence.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web