Skip to content
This repository was archived by the owner on Jan 24, 2018. It is now read-only.
This repository was archived by the owner on Jan 24, 2018. It is now read-only.

Exception AttributeError: "'Connection' object has no attribute 'socket' #39

@xnzj

Description

@xnzj

Exception AttributeError: "'Connection' object has no attribute 'socket'" in <bound method DatabaseType.__del__ of <skylark.DatabaseType object at 0x7f3343bc2fd0>> ignored

win7 64 is OK, but CentOS release 6.6 (Final)

Here is my simple code:
models.py

import pymysql
from skylark import Database, Model, Field

class ImageUrls(Model):
       image_url = Field()
       article_url = Field()
       save_filename = Field()
       is_download = Field()


Database.set_dbapi(pymysql)
Database.config(user="root", passwd="root", charset="utf8")

test.py

from skylark import Database
from models import ImageUrls

Database.change("caiji_db")
row = ImageUrls.at(1).select().execute().one()
print row
# python test.py
Exception AttributeError: "'Connection' object has no attribute 'socket'" in <bound method DatabaseType.__del__ of <skylark.DatabaseType object at 0x7f3343bc2fd0>> ignored

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions