From 7557b3905300dc6b035a4322d2781310b4458c55 Mon Sep 17 00:00:00 2001 From: Mike Stucka Date: Sun, 22 Dec 2024 22:38:35 -0500 Subject: [PATCH 1/2] Github Actions workarounds maybe --- warn/scrapers/va.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/warn/scrapers/va.py b/warn/scrapers/va.py index 1cce6b4..949d7e9 100644 --- a/warn/scrapers/va.py +++ b/warn/scrapers/va.py @@ -111,6 +111,9 @@ def scrape( # driver = webdriver.Chrome(options=chromeoptionsholder, service=Service(ChromeDriverManager().install())) logger.debug("Attempting to launch Chrome") chromeoptionsholder = ChromeOptions() + chromeoptionsholder.add_argument("--no-sandbox") + chromeoptionsholder.add_argument("--remote-debugging-pipe") + chrome_install = ChromeDriverManager().install() # Weird error with finding the driver name in Windows. Sometimes. From b85568f88c196111a4f9ec1a25f406a0eb84c1dd Mon Sep 17 00:00:00 2001 From: Mike Stucka Date: Sun, 22 Dec 2024 22:41:59 -0500 Subject: [PATCH 2/2] Try to force fresh cryptography, CFFI --- Pipfile | 1 + Pipfile.lock | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Pipfile b/Pipfile index ec2dcaf..48cfdc2 100644 --- a/Pipfile +++ b/Pipfile @@ -48,6 +48,7 @@ urllib3 = "1.26.18" # pegged to avoid test issue selenium = "*" webdriver-manager = "*" cryptography = "*" +cffi = "*" [requires] python_version = "3.9" diff --git a/Pipfile.lock b/Pipfile.lock index 1db95f9..c45e363 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "67ec31b6f377f1d04461f5704cc029e94b59ca4ebadb8e0410e2d5dfd4b5b0e1" + "sha256": "97514245fa0e583a4df6a75006e4df2e6bcea0c920307691473a44e765a5ac3f" }, "pipfile-spec": 6, "requires": { @@ -111,7 +111,8 @@ "sha256:f7f5baafcc48261359e14bcd6d9bff6d4b28d9103847c9e136694cb0501aef87", "sha256:fc48c783f9c87e60831201f2cce7f3b2e4846bf4d8728eabe54d60700b318a0b" ], - "markers": "platform_python_implementation != 'PyPy'", + "index": "pypi", + "markers": "python_version >= '3.8'", "version": "==1.17.1" }, "charset-normalizer": {