This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Something wrong with pymysql
Type: compile error Stage: resolved
Components: Versions: Python 3.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: leung, mark.dickinson, steven.daprano, xtreak
Priority: normal Keywords:

Created on 2018-12-03 08:27 by leung, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (5)
msg330910 - (view) Author: Leung (leung) Date: 2018-12-03 08:27
when i use like that 
userinfo = dbsession2.query(func.count(radcheck1.username)).\
outerjoin(radcheck2,radcheck1.username==radcheck2.username).\
filter(radcheck1.admin_user==g.user.name,or_(radcheck1.username.like('im_%'),and_(radcheck1.attribute=='Cleartext-Password',radcheck2.attribute=='Expiration'))).
python3.6 is ok.But python 3.7 and 3.7.1 show me name 'byte2int' is not defined in pymysql/_auth.py
msg330913 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2018-12-03 08:47
Hi Leung. This is the issue tracker for the core Python language (along with the standard library). PyMySQL is a third-party project: it isn't part of the standard library. I'd suggest reporting your issue directly to the PyMySQL maintainers.

(At a quick glance, https://github.com/PyMySQL/PyMySQL looks like the right place.)
msg330914 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2018-12-03 08:52
Also, for future reference, please spend the time to make a good bug report, showing the minimum code needed to reproduce the error, and the full error, not just a summary.

Please read this before your next bug report:

http://sscce.org/

Thank you.
msg330915 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2018-12-03 08:58
It's a third party issue as others noted but just to add to this I found the below PR and question to be related to your problem in the tracker while googling byte2int pymysql that might be of help.

* https://stackoverflow.com/questions/51565646/pymysql-stopped-working-nameerror-name-byte2int-is-not-defined
* https://github.com/PyMySQL/PyMySQL/pull/713

Thanks
msg330916 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2018-12-03 09:00
Sorry, I messed up while adding the reply at the same time. Closing it again.
History
Date User Action Args
2022-04-11 14:59:08adminsetgithub: 79563
2018-12-03 09:00:24xtreaksetstatus: open -> closed

nosy: + mark.dickinson, steven.daprano
messages: + msg330916

resolution: third party
stage: resolved
2018-12-03 08:58:34xtreaksetstatus: closed -> open

nosy: + xtreak, - mark.dickinson, steven.daprano
messages: + msg330915

resolution: third party -> (no value)
stage: resolved -> (no value)
2018-12-03 08:52:43steven.dapranosetnosy: + steven.daprano
messages: + msg330914
2018-12-03 08:47:55mark.dickinsonsetstatus: open -> closed

nosy: + mark.dickinson
messages: + msg330913

resolution: third party
stage: resolved
2018-12-03 08:27:45leungcreate