Skip to content
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

包找不到 我的mac自带了一个2.7的系统路径python,我自己安装了一个3.9 执行的时候出现了这个问题 #86

Open
sirius-il opened this issue Mar 27, 2021 · 2 comments

Comments

@sirius-il
Copy link

✗ python binlog2sql.py -h 127.0.0.1 -u root --flashback -d sirius -t t --start-file='binlog.000015' --start-pos=1238826 > ~/Desktop/flashback.sql

Traceback (most recent call last):
File "/Users/pisces/Documents/python application/binlog2sql/binlog2sql/binlog2sql.py", line 7, in
from pymysqlreplication import BinLogStreamReader
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pymysqlreplication/init.py", line 23, in
from .binlogstream import BinLogStreamReader
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pymysqlreplication/binlogstream.py", line 8, in
from pymysql.util import int2byte
ModuleNotFoundError: No module named 'pymysql.util'

@michael-liumh
Copy link

用Python 3.8吧,3.8没问题

@raybon-lee
Copy link

可以用 pip3 install pymysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants