error with pymysql 0.10.0
zy9306 opened this issue · 3 comments
zy9306 commented
......
/usr/local/lib/python3.6/site-packages/pymysqlreplication/__init__.py:23: in <module>
from .binlogstream import BinLogStreamReader
/usr/local/lib/python3.6/site-packages/pymysqlreplication/binlogstream.py:10: in <module>
from .packet import BinLogPacketWrapper
/usr/local/lib/python3.6/site-packages/pymysqlreplication/packet.py:7: in <module>
from pymysqlreplication import constants, event, row_event
/usr/local/lib/python3.6/site-packages/pymysqlreplication/row_event.py:9: in <module>
from pymysql.charset import charset_to_encoding
E ImportError: cannot import name 'charset_to_encoding'
seems that pymysql0.10.0 has no charset_to_encoding in charset
shalomabitan commented
@hkwi until your code is merged, this can fix it pipenv install pymysql~=0.9.3
jakthom commented
I just ran into the identical issue, but with poetry
.
Like the pipenv install
command above, pinning to pymysql = "0.9.3"
(temporarily) fixed the issue for me.
javier-sanz commented
This seems to have been fixed here #328