InstaPy / InstaPy/instapy-quickstart

run error (zipfile.py)

Open
#150 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
777
Forks
763
PR merge metrics
No merged PRs in 30d

Description

starting instapy with quickstart
================================
InstaPy Version: 0.6.8
._. ._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use: "C:/Users/Joao/InstaPy"
Traceback (most recent call last):
File "../quickstart.py", line 22, in
session = InstaPy(username=insta_username,
File "D:\python\lib\site-packages\instapy\instapy.py", line 309, in __init__
self.browser, err_msg = set_selenium_local_session(
File "D:\python\lib\site-packages\instapy\browser.py", line 110, in set_selenium_local_session
driver_path = geckodriver_path or get_geckodriver()
File "D:\python\lib\site-packages\instapy\browser.py", line 36, in get_geckodriver
bin_path, sym_path = gdd.download_and_install()
File "D:\python\lib\site-packages\webdriverdownloader\webdriverdownloader.py", line 195, in download_and_install
with zipfile.ZipFile(os.path.join(self.get_download_path(version), filename), mode="r") as driver_zipfile:
File "D:\python\lib\zipfile.py", line 1269, in __init__
self._RealGetContents()
File "D:\python\lib\zipfile.py", line 1336, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with quickstart.py line 22 and trace the failure into instapy/browser.py at get_geckodriver, then inspect webdriverdownloader.py where the downloaded file is opened by zipfile.ZipFile. Reproduce the quickstart run and consider the issue complete when initialization no longer raises zipfile.BadZipFile.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.