You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
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'" 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
The text was updated successfully, but these errors were encountered:
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
test.py
The text was updated successfully, but these errors were encountered: