Error 32 - Broken Pipe . Please Help!!

2012-09-04 Thread Sreenath k
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 ?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Topic Modeling LDA Gensim

2015-03-17 Thread Sreenath k
Hi, 
I don't know how to contact you by email, nor am I going to answer your 
question.
I have a question for you. Please help if you can.

On running the code from this page ( Unsupervised Learning ):
http://nbviewer.ipython.org/gist/rjweiss/7158866#

The output of 
'lda[corpus[1]]'
keeps changing each time. Why is it so ? 

Please help! 

Waiting for your reply, 
Sreenath K
-- 
https://mail.python.org/mailman/listinfo/python-list