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

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

Open
xnzj opened this issue Jul 26, 2016 · 5 comments
Open

Comments

@xnzj
Copy link

xnzj commented Jul 26, 2016

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
@xnzj
Copy link
Author

xnzj commented Jul 26, 2016

MySQLdb work, but pymysql

@wukaka
Copy link

wukaka commented Mar 24, 2017

the bug has fixed

@xnzj
Copy link
Author

xnzj commented Mar 24, 2017

兄弟,最晚的提交是2015年(Latest commit 5b7a14e on 15 Jun 2015),你确定作者修复这个bug了?还是根本就没有这个bug?

@wukaka
Copy link

wukaka commented Mar 24, 2017

这个bug是存在的,是由pymysql引起的。我已经提交了pull request,等待作者合并。

@xnzj
Copy link
Author

xnzj commented Mar 24, 2017

666,不过这个作者好像没动静了啊。你弄个新分枝,然后在回复里带上你的分枝的链接就完美了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants