MarketSquare / MarketSquare/webdrivermanager
zipfile.BadZipFile: File is not a zip file
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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