-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] InterfaceError: (0, '') #277
Comments
pony version is 0.7.1 |
Database... I had this issue with mysql. |
i got the same error, someone find some way to solve it? |
No. But I found out that it is related to mysql driver and global cursor usage. |
how to test this? i planed to switch to sqlalchemy |
incredibly, i replace the PyMySQl using the MySQL-python, the bug had gone! |
@Achillesxu could you provide some code? This bug driving me crazy! Did you replace mysql driver? I didn't know there is such option. :D |
I mean that I didn't know there is option to choose specific driver. What should I do? Just remove PyMySQl and install MySQL-python? |
Meh, MySQL-python doesn't seem to work with python3.6. :( |
Hi @xunto , I think this issue is related to #219. You can check Pony version from GitHub, the bug should be already fixed in 1146ff1. Before the fix, |
@kozlovsky wow, new release is good news. I'll check today if problem is fixed on the lastest commit of the orm branch and will let you know. |
Now I caught this. Is it something with Mysql configuration or what? |
I think probably so. Some of the following links may help: If you discover a reason for the issue, then please leave a comment here for other MySQL users. |
Oh, that legacy. :) But it doesn't look like there are such problems with php app. |
Pony tries to use the MySQLdb driver for working with MySQL. If this module cannot be imported, Pony tries to use pymysql. See the MySQLdb and pymysql documentation for more information regarding these drivers. from 'https://docs.ponyorm.com/api_reference.html#mysql' |
I'm not the one the who is administrating database but asked this man to give me that. This configuration seem to solve the problem. |
I think everything is OK now. But I have more mysql related problems! I close this one for now. |
Looks like it happen when you do nothing to db for some time and then do something. For example, when script waits for http request and when it get it, pony throws the exception. If you do another request after that, everything will be ok.
I had this issue with aiohttp (but i thought that it's related to threadpool that i used) and flask.
The text was updated successfully, but these errors were encountered: