Getting error while following Git documentation

77 views
Skip to first unread message

an...@tabsquare.com

unread,
Aug 29, 2017, 6:30:21 AM8/29/17
to Python MySQL replication
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pymysqlreplication import BinLogStreamReader
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\python35\lib\site-packages\pymysqlreplication\__init__.py", line 23, in <module>
    from .binlogstream import BinLogStreamReader
  File "C:\python35\lib\site-packages\pymysqlreplication\binlogstream.py", line 10, in <module>
    from .packet import BinLogPacketWrapper
  File "C:\python35\lib\site-packages\pymysqlreplication\packet.py", line 7, in <module>
    from pymysqlreplication import constants, event, row_event
  File "C:\python35\lib\site-packages\pymysqlreplication\row_event.py", line 9, in <module>
    from pymysql.charset import charset_to_encoding
ImportError: cannot import name 'charset_to_encoding'
>>>

I had looked for solution on how to fix this error but wasn't able to fix it 
Hence asking here 
Please pardon my ignorance 
regards
Ankit khanduri

Komal Rautji

unread,
Mar 22, 2021, 8:11:04 AM3/22/21
to Python MySQL replication
Anyone who has solved this error?
I am also getting the same error.
Reply all
Reply to author
Forward
0 new messages