Bugs item #3498781, was opened at 2012-03-07 09:53
Message generated for change (Comment added) made by cito
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=3498781&group_id=4866

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: WebUtils
Group: None
>Status: Closed
Resolution: Fixed
Priority: 9
Private: No
Submitted By: Vitaly Kruglikov (vkruglikov)
Assigned to: Nobody/Anonymous (nobody)
Summary: PooledDB crashes in Jython

Initial Comment:
DBUtils.PooledDB.PooledDB crashes when instantiated in Jython.

>>> DBUtils.__version__
'1.1'
>>> pymysql.VERSION
(0, 5, None)

To reproduce:

$ jython
Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06) 
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_29
Type "help", "copyright", "credits" or "license" for more information.


import pymysql
from DBUtils.PooledDB import PooledDB
pool = PooledDB(pymysql)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/Users/vkruglikov/nta/current/lib/python2.6/site-packages/DBUtils/PooledDB.py",
 line 267, in __init__
    self._condition.wait = wait
TypeError: readonly attribute


----------------------------------------------------------------------

>Comment By: Christoph Zwerschke (cito)
Date: 2012-03-08 02:31

Message:
Fine, thanks for the feedback.

----------------------------------------------------------------------

Comment By: Vitaly Kruglikov (vkruglikov)
Date: 2012-03-07 15:11

Message:
Thanks for the lightning-speed response (all I can say is wow!).  The
change worked.  I tested the change using the 3-line steps in the bug body
as well as in my program.  Both passed.

----------------------------------------------------------------------

Comment By: Christoph Zwerschke (cito)
Date: 2012-03-07 11:17

Message:
Should be fixed in r8228.

Can you replace PooledDB.py with the current version at
http://svn.w4py.org/DBUtils/trunk/DBUtils/PooledDB.py and check if it's ok
now?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=3498781&group_id=4866

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to