To narrow down the problem. Django uses mysqldb, not pymysql. Could you try 
switch to mysqldb with web2py? 

import mysqldb
from gluon.dal import MySQLAdapter
MySQLAdapter.driver = mysqldb
db=DAL('mysql://....')

Anyway, it is hard to know for sure without looking at your code. For 
example web2py does connection pooling and may have different settings. It 
could be a threading issue since you use it in modules. 

Which version of web2py are you using?

Massimo

On Friday, 13 July 2012 10:01:11 UTC-5, Marcello wrote:
>
> My "Connection timed out" problem continues with trunk also.
> I also testes the same queries using Django. No problem.
>
> I tested many times.
>
>
> On Thu, Jul 12, 2012 at 9:25 PM, Massimo Di Pierro <
> [email protected]> wrote:
>
>> The Assertion error comes from pymysql which ships with web2py. I just 
>> upgraded trunk to a newer version. Give it a try. It may (or my not) 
>> resolve the problem. You may want to ask the pymysql mailing list for an 
>> explanations of the error.
>>
>>

Reply via email to