Skip to content

Commit 213689d

Browse files
authored
Merge pull request #1946 from seleniumbase/fix-mysql-issue
Fix issue with the MySQL integration
2 parents 461ff1f + c32a2a2 commit 213689d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

seleniumbase/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# seleniumbase package
2-
__version__ = "4.15.12"
2+
__version__ = "4.15.13"

seleniumbase/core/mysql.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ def __init__(self, database_env="test", conf_creds=None):
2020
)
2121
with pip_find_lock:
2222
try:
23+
import cryptography # noqa: F401
2324
import pymysql
2425
except Exception:
2526
if sys.version_info < (3, 7):
26-
shared_utils.pip_install("pymysql", version="1.0.2")
27+
shared_utils.pip_install("PyMySQL[rsa]", version="1.0.2")
2728
else:
28-
shared_utils.pip_install("pymysql", version="1.1.0")
29+
shared_utils.pip_install("PyMySQL[rsa]", version="1.1.0")
2930
import pymysql
3031
db_server = settings.DB_HOST
3132
db_port = settings.DB_PORT

0 commit comments

Comments
 (0)