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
PyMySQL version 0.10 produces ImportError crash on mycli execution #882
Comments
Here's the commit that removed the convert_mysql_timestamp function: |
solution 1) Install PyMySQL 0.9.2 (this is last version that you can use with mycli) or solution 2) Open the above file and modify it as follows: line 6) from pymysql.converters import (convert_datetime, |
If you want to use the last version of mycli, you can use mycli with docker https://hub.docker.com/repository/docker/dbcliorg/mycli |
I was new to doing this, so in case it helps anyone else, these are the commands I used to get it working based on @lunatiee 's solution ➊ $ pip3 install mycli
$ pip3 install -I PyMySQL==0.9.2 |
We have a sprint this weekend and we'll see if we can tackle this issue during the sprint. If anyone is interested in participating, we're doing a virtual sprint through the PyOhio conference. https://www.pyohio.org/2020/events/sprints |
This is an effective solution. Thank you! |
It's fixed in the latest version. Please update.
pip install -U mycli
…On Sun, Jul 26, 2020, 20:49 ZDSDESIRE ***@***.***> wrote:
solution 1) Install PyMySQL 0.9.2 (this is last version that you can use
with mycli)
or
solution 2)
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/mycli/sqlexecute.py
*Open the above file and modify it as follows:*
line 6) from pymysql.converters import (convert_datetime,
line 102) FIELD_TYPE.TIMESTAMP: lambda obj: (convert_datetime(obj) or obj),
This is an effective solution.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#882 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMA3FA42WZUYZMZ6Y5VTDR5TTLLANCNFSM4PAC2OGQ>
.
|
yay, it works again. THANKS ALL! |
not working even with the latest version in Cent Os |
Not working even with the latest version in Win10:
I returned to mycli-1.21.1 and get it working based on @lunatiee 's solution ②: #882 (comment) |
@verajosemanuel Can you tell me what is the version you're using? If you installed it via You need to install it via |
@ZDSDESIRE I can't reproduce it. Looks like the error you're seeing is very different from the original error reported. Looks like there is an issue with your python installation. The module not found error is complaining about a module called You might want to reinstall python on your machine and try again. |
@amjith
|
Looks like the developers are only testing on Linux or MacOS. On Windows |
You're right. I'm sorry. I didn't know that pwd is Unix only. I'll have to
address this.
…On Fri, Jul 31, 2020, 10:40 Thorsten Kampe ***@***.***> wrote:
Looks like the developers are only testing on Linux or MacOS. On Windows
mycli is completely broken because of the import of pwd.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#882 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMA3BDQOPULFTI2ZGLOE3R6LXZFANCNFSM4PAC2OGQ>
.
|
@thorstenkampe @ZDSDESIRE I'v created a branch that fixes the Can you try it out?
|
@amjith seems to work fine |
ERROR: Package 'mycli' requires a different Python: 2.7.5 not in '>=3.6' The above command should be:
|
@amjith |
After updating PyMySQL from 0.9.3 to 0.10.0 the following crash occurs when executing mycli (version 1.12.1):
I downgraded to PyMySQL 0.9.3 to continue using mycli
The text was updated successfully, but these errors were encountered: