MarketSquare / MarketSquare/webdrivermanager

zipfile.BadZipFile: File is not a zip file

Open
#91 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
104
Forks
39
PR merge metrics
No merged PRs in 30d

Description

Getting this error when trying to use `download_and_install` method for chrome.
**Device:** Windows 11
```python
File "webdrivermanager\base.py", line 297, in download_and_install
File "zipfile.py", line 1269, in __init__
File "zipfile.py", line 1336, in _RealGetContents
zipfile.BadZipFile: File is not a zip file
```
**P.S.:** Google Chrome updated to the latest version. No permission issues.
Was also working fine 3 days back.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at webdrivermanager/base.py line 297, where download_and_install opens the downloaded Chrome file, and inspect how that download is selected and handled. Reproduce the Windows 11 failure with the current Chrome version; done means the method no longer raises zipfile.BadZipFile for a valid Chrome driver download and the relevant behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.