[Pywikipedia-bugs] [Maniphest] [Updated] T279753: MySQL: AttributeError: 'Cursor' object has no attribute 'cursor

2021-04-09 Thread Maintenance_bot
Maintenance_bot removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T279753 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Maintenance_bot Cc: JJMC89, Xqt, Aklapper, pywikibot-bugs-list, Vladis13, Jyoo1011,

[Pywikipedia-bugs] [Maniphest] [Commented On] T279753: MySQL: AttributeError: 'Cursor' object has no attribute 'cursor

2021-04-09 Thread gerritbot
gerritbot added a comment. Change 678221 **merged** by jenkins-bot: [pywikibot/core@master] [bugfix] Context manager depends on pymysql version, not Python release https://gerrit.wikimedia.org/r/678221 TASK DETAIL https://phabricator.wikimedia.org/T279753 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Closed] T279753: MySQL: AttributeError: 'Cursor' object has no attribute 'cursor

2021-04-09 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T279753 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: JJMC89, Xqt, Aklapper, pywikibot-bugs-list, Vladis13, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra,

[Pywikipedia-bugs] [Maniphest] [Commented On] T279753: MySQL: AttributeError: 'Cursor' object has no attribute 'cursor

2021-04-09 Thread Vladis13
Vladis13 added a comment. Thanks you. TASK DETAIL https://phabricator.wikimedia.org/T279753 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Vladis13 Cc: JJMC89, Xqt, Aklapper, pywikibot-bugs-list, Vladis13, Jyoo1011, JohnsonLee01, SHEKH,

[Pywikipedia-bugs] [Maniphest] [Updated] T279753: MySQL: AttributeError: 'Cursor' object has no attribute 'cursor

2021-04-09 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T279753 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, gerritbot Cc: JJMC89, Xqt, Aklapper, pywikibot-bugs-list, Vladis13, Jyoo1011, JohnsonLee01,

[Pywikipedia-bugs] [Maniphest] [Commented On] T279753: MySQL: AttributeError: 'Cursor' object has no attribute 'cursor

2021-04-09 Thread gerritbot
gerritbot added a comment. Change 678221 had a related patch set uploaded (by Xqt; author: Xqt): [pywikibot/core@master] [bugfix] Context manager depends on pymysql version, not Python release https://gerrit.wikimedia.org/r/678221 TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Claimed] T279753: MySQL: AttributeError: 'Cursor' object has no attribute 'cursor

2021-04-09 Thread Xqt
Xqt claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T279753 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: JJMC89, Xqt, Aklapper, pywikibot-bugs-list, Vladis13, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido,

[Pywikipedia-bugs] [Maniphest] [Commented On] T279753: MySQL: AttributeError: 'Cursor' object has no attribute 'cursor

2021-04-09 Thread Xqt
Xqt added a comment. In T279753#6986869 , @Vladis13 wrote: > Was Pwb 3.0.dev0 (this version number did not change until this year for several years, although Pwb itself was regularly updated, probably it was a bug) → 6.0.1 Your

[Pywikipedia-bugs] [Maniphest] [Commented On] T279753: MySQL: AttributeError: 'Cursor' object has no attribute 'cursor

2021-04-09 Thread Vladis13
Vladis13 added a comment. Was Pwb 3.0.dev0 (this version number did not change until this year for several years, although Pwb itself was regularly updated, probably it was a bug) → 6.0.1 PyMySQL 0.9.3 → 1.0.2 Python 3.7. TASK DETAIL https://phabricator.wikimedia.org/T279753 EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T279753: MySQL: AttributeError: 'Cursor' object has no attribute 'cursor

2021-04-09 Thread Xqt
Xqt added a comment. Works for me with pymysql 0.10 ans Python 3.5 as follows: >>> import pymysql >>> from contextlib import closing >>> connection = pymysql.connect(defer_connect=True) >>> connection = closing(connection) >>> with connection as conn, conn.cursor() as

[Pywikipedia-bugs] [Maniphest] [Triaged] T279753: MySQL: AttributeError: 'Cursor' object has no attribute 'cursor

2021-04-09 Thread Xqt
Xqt triaged this task as "Medium" priority. Xqt added a comment. @Vladis13: What was your previous environment (Python, Pywikibot, PyMySQL releases)? pwb.py wrapper does version checking but this is missing for PyMySQL and should be implemented. TASK DETAIL