julien-duponchelle / julien-duponchelle/python-mysql-replication

error with pymysql 0.10.0

Open
#325 3 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.4k
Forks
690
PR merge metrics
No merged PRs in 30d

Description

```
......
/usr/local/lib/python3.6/site-packages/pymysqlreplication/__init__.py:23: in
from .binlogstream import BinLogStreamReader
/usr/local/lib/python3.6/site-packages/pymysqlreplication/binlogstream.py:10: in
from .packet import BinLogPacketWrapper
/usr/local/lib/python3.6/site-packages/pymysqlreplication/packet.py:7: in
from pymysqlreplication import constants, event, row_event
/usr/local/lib/python3.6/site-packages/pymysqlreplication/row_event.py:9: in
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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with pymysqlreplication/row_event.py and inspect its import of charset_to_encoding against the PyMySQL 0.10.0 API. Confirm the package imports successfully with that dependency version and verify the reported ImportError no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
database
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.