Skip to content

chromedriver downloads started failing: "zipfile.BadZipFile: File is not a zip file" #2495

Closed
@mdmintz

Description

@mdmintz

chromedriver downloads started failing: "zipfile.BadZipFile: File is not a zip file"


The Chromedriver team changed how chromedriver is packaged. Now chromedriver downloads are failing. Not yet sure if this is a mistake they made somewhere, or if this new packaging system is here to stay. I'm investigating. I'll ship a new release today to make things work.

Here's the error output that people may be seeing:

sbase get chromedriver

*** chromedriver to download = 121.0.6167.184 (Latest Stable) 

Downloading chromedriver-mac-arm64.zip from:
https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/121.0.6167.184/mac-arm64/chromedriver-mac-arm64.zip ...
Download Complete!


* Unable to download driver! Retrying in 3s...


*** chromedriver to download = 121.0.6167.184 (Latest Stable) 

Downloading chromedriver-mac-arm64.zip from:
https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/121.0.6167.184/mac-arm64/chromedriver-mac-arm64.zip ...
Download Complete!

** Unable to download driver! Retrying in 5s...


*** chromedriver to download = 121.0.6167.184 (Latest Stable) 

Downloading chromedriver-mac-arm64.zip from:
https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/121.0.6167.184/mac-arm64/chromedriver-mac-arm64.zip ...
Download Complete!

Traceback (most recent call last):
  File "/Users/michael/.virtualenvs/sbase12/bin/sbase", line 33, in <module>
    sys.exit(load_entry_point('seleniumbase', 'console_scripts', 'sbase')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/michael/github/SeleniumBase/seleniumbase/console_scripts/run.py", line 1019, in main
    sb_install.main()
  File "/Users/michael/github/SeleniumBase/seleniumbase/console_scripts/sb_install.py", line 848, in main
    zip_ref = zipfile.ZipFile(zip_file_path, "r")
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/zipfile/__init__.py", line 1338, in __init__
    self._RealGetContents()
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/zipfile/__init__.py", line 1405, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

Failed CI:

Metadata

Metadata

Assignees

No one assigned

    Labels

    FunSomething big happened / (maybe some sarcasm)externalOutside SeleniumBase's scope. / Ask somewhere else.feature or fix already existsUpgrade to the latest version as neededfixed-externallySomething changed externally, which fixed SeleniumBase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions