"ResourceWarning: unclosed" error using mysql-connector-python

19 views
Skip to first unread message

Zemian Deng

unread,
Jun 23, 2014, 11:02:04 PM6/23/14
to django...@googlegroups.com
Hi there,

I am using mysql-connector-python (1.1.6) with Django (1.6.5) and myapp is working fine. But each SQL call to DB will result the following warning messages:

Exception ignored in: <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketType.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 62622), raddr=('127.0.0.1', 3306)>

ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketType.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 62622), raddr=('127.0.0.1', 3306)>


Has anyone seen this and know a way to resolve it?

Also, FYI, I am using the following in my settings file.
DATABASES = {
    'default': {
       'ENGINE': 'mysql.connector.django',
       'NAME': 'mydb',
       'USER': 'test',
       'PASSWORD': 'test',
    },
}

Thanks,
Zemian
Reply all
Reply to author
Forward
0 new messages