[web2py] Re: Rocket errors on importing python library

2012-04-08 Thread Unyo
rocket breaks sometimes if you have limited memory, try entering ulimit -s 
1024 into the shell before executing web2py. Not sure why it works, but it 
does.

On Tuesday, March 27, 2012 3:33:58 AM UTC-10, Rohan wrote:

 any updates?

 On Monday, 26 March 2012 20:03:07 UTC+5:30, Rohan wrote:

 Web2py Version 1.99.7 (2012-03-04 22:12:08) stable
 Python 2.7.2+

 I am trying to load external library from python (
 http://pypi.python.org/pypi/readability-lxml/0.2.3)

 import urllib2
 import readability
 page = urllib2.urlopen(url)
 html = page.read()

 page is fetched properly but in my console I am getting Rocket errors. If 
 i comment 'import readability' or not use this lib then no rocket errors 
 are published.

 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 DEBUG:Rocket.Monitor:In receive timed-out connections loop.
 DEBUG:Rocket.Monitor:Received a timed out connection.
 DEBUG:Rocket.Monitor:Adding connection to monitor list.
 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 ...
 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 ...

 and it get keep on printing same message over and over again. I have not 
 changed any values in rocket.py. 

 Is this expected and Is there any way I can disable this?  With this 
 continuous printing actual debug messages are getting lost, making dev 
 really hard.



[web2py] Re: Rocket errors on importing python library

2012-04-08 Thread Unyo
rocket breaks sometimes if you have limited memory, try entering ulimit -s 
1024 into the shell before executing web2py. Not sure why it works, but it 
does. 

[web2py] Re: Rocket errors on importing python library

2012-04-08 Thread Unyo
Also, how in the world did you enable debugging? I want to see if the 
minthreads and maxthreads settings passed via command string actually work.

On Saturday, April 7, 2012 8:08:51 PM UTC-10, Unyo wrote:

 rocket breaks sometimes if you have limited memory, try entering ulimit 
 -s 1024 into the shell before executing web2py. Not sure why it works, but 
 it does. 



[web2py] Re: Rocket errors on importing python library

2012-04-08 Thread Unyo
Try editing the readability logger to specify a logger name instead of just 
the root:

https://github.com/buriy/python-readability/blob/master/readability/htmls.py
 

-logging.getLogger().setLevel(logging.DEBUG) 
+logging.getLogger('readability').setLevel(logging.DEBUG) 



On Tuesday, March 27, 2012 3:33:58 AM UTC-10, Rohan wrote:

 any updates?

 On Monday, 26 March 2012 20:03:07 UTC+5:30, Rohan wrote:

 Web2py Version 1.99.7 (2012-03-04 22:12:08) stable
 Python 2.7.2+

 I am trying to load external library from python (
 http://pypi.python.org/pypi/readability-lxml/0.2.3)

 import urllib2
 import readability
 page = urllib2.urlopen(url)
 html = page.read()

 page is fetched properly but in my console I am getting Rocket errors. If 
 i comment 'import readability' or not use this lib then no rocket errors 
 are published.

 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 DEBUG:Rocket.Monitor:In receive timed-out connections loop.
 DEBUG:Rocket.Monitor:Received a timed out connection.
 DEBUG:Rocket.Monitor:Adding connection to monitor list.
 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 ...
 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 ...

 and it get keep on printing same message over and over again. I have not 
 changed any values in rocket.py. 

 Is this expected and Is there any way I can disable this?  With this 
 continuous printing actual debug messages are getting lost, making dev 
 really hard.



[web2py] Re: Rocket errors on importing python library

2012-03-27 Thread Rohan
any updates?

On Monday, 26 March 2012 20:03:07 UTC+5:30, Rohan wrote:

 Web2py Version 1.99.7 (2012-03-04 22:12:08) stable
 Python 2.7.2+

 I am trying to load external library from python (
 http://pypi.python.org/pypi/readability-lxml/0.2.3)

 import urllib2
 import readability
 page = urllib2.urlopen(url)
 html = page.read()

 page is fetched properly but in my console I am getting Rocket errors. If 
 i comment 'import readability' or not use this lib then no rocket errors 
 are published.

 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 DEBUG:Rocket.Monitor:In receive timed-out connections loop.
 DEBUG:Rocket.Monitor:Received a timed out connection.
 DEBUG:Rocket.Monitor:Adding connection to monitor list.
 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 ...
 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 DEBUG:Rocket.Errors.ThreadPool:Examining ThreadPool. 10 threads and 0 Q'd 
 conxions
 ...

 and it get keep on printing same message over and over again. I have not 
 changed any values in rocket.py. 

 Is this expected and Is there any way I can disable this?  With this 
 continuous printing actual debug messages are getting lost, making dev 
 really hard.