Skip to content

Commit b23e33a

Browse files
committed
Fix issue with a missing PyMySQL dependency
1 parent 461ff1f commit b23e33a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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)