Saturday, February 28, 2015

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

I was also getting these errors, upgrading resolved them for me as well.

On Friday, July 4, 2014 at 6:59:03 AM UTC-7, Zemian Deng wrote:
No problem. Thanks for the reply.


On Fri, Jul 4, 2014 at 12:51 AM, cercatrova2 <cerca...@gmail.com> wrote:
On 04/07/14 05:09, Zemian Deng wrote:
Hum... I am surprised that no one has experienced this warning msg yet, or maybe I can't catch anyone to reply.

For those are curious, I do now see mysql-connector-python 1.2.2 is available, and upgrading to this version got rid off these warnings.

On Thursday, June 12, 2014 11:24:40 PM UTC-4, Zemian Deng wrote:
Anyone?

On Tuesday, June 10, 2014 11:26:18 PM UTC-4, Zemian Deng wrote:
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
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a443d950-fe72-4380-bf61-1fc9c71c9af9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Zemian - I saw these warning messages too with 1.1.6 but indeed they went away with 1.2.2 about a month ago so I didn't post anything. Sorry but I didn't know of your message at the time.



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/53B632EE.2080203%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ea575334-f11d-4841-8ac2-1ffb4b278b14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment