InstaPy / InstaPy/instapy-quickstart
Error "Cookie file not found, creating cookie..."
- 主要言語
- Python
- スター
- 777
- フォーク
- 763
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
InstaPy Version: 0.6.12
._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use: "/home/xxxxxxx/InstaPy"
INFO [2020-12-18 15:46:19] [xxxxxxx] Session started!
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
oooooooooooooooooooooooooooooooooooooooooooooooooooooo
INFO [2020-12-18 15:46:19] [xxxxxxx] -- Connection Checklist [1/2] (Internet Connection Status)
INFO [2020-12-18 15:46:21] [xxxxxxx] - Internet Connection Status: ok
INFO [2020-12-18 15:46:21] [xxxxxxx] - Current IP is "195.246.120.63" and it's from "Sweden/SE"
INFO [2020-12-18 15:46:21] [xxxxxxx] -- Connection Checklist [2/2] (Hide Selenium Extension)
INFO [2020-12-18 15:46:21] [xxxxxxx] - window.navigator.webdriver response: None
INFO [2020-12-18 15:46:21] [xxxxxxx] - Hide Selenium Extension: ok
Cookie file not found, creating cookie...
INFO [2020-12-18 15:47:05] [xxxxxxx] Timed out with failure while explicitly waiting until visibility of element located!
Traceback (most recent call last):
File "xxxxxxx/main.py", line 38, in
InstaPy(username="xxxxxxx", password="xxxxxxx").login()
File "/usr/local/lib/python3.8/dist-packages/instapy/instapy.py", line 425, in login
if not login_user(
File "/usr/local/lib/python3.8/dist-packages/instapy/login_util.py", line 316, in login_user
input_username = browser.find_element_by_xpath(input_username_XP)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //input[@name='username']
https://ibb.co/VMSKDNw
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、InstaPy 0.6.12でログイン失敗を再現し、main.py、instapy.py、login_util.pyのtracebackのエントリ、特にlogin_userを確認します。Cookieの作成後にユーザー名要素が見つからない理由を調べます。報告されたログインパスが成功するか、失敗が確認済みの原因とともに文書化されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100