InstaPy / InstaPy/instapy-quickstart
Trying to run on Docker: RuntimeError: Error, unable to determine correct filename for 64bit linux
- 主要言語
- Python
- スター
- 777
- フォーク
- 763
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hey Guys, I'm new here... I'm trying to run in my Mac inside an ubuntu container and I'm getting the same issue, even running the "fix" bellow:
```
apt-get update && apt-get install curl bzip2
curl -sL "https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64" | tar -xj -C /opt
rm /usr/bin/firefox
ln -s /opt/firefox/firefox /usr/bin/
```
**Here is my procedure:**
1. Run my docker compose that is using ubuntu image:
```
version: "3"
services:
pythonenv:
image: ubuntu:latest
command: /bin/bash
working_dir: /app
volumes:
- .:/app
```
2. Cloned Quickstart from: https://github.com/InstaPy/instapy-quickstart.git
3. Run the install script at: instapy-quickstart/installation/Linux/install.sh
4. Run the fix:
```
apt-get update && apt-get install curl bzip2
curl -sL "https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64" | tar -xj -C /opt
rm /usr/bin/firefox
ln -s /opt/firefox/firefox /usr/bin/
```
5. Run my: python3 quick.py
6. Get this error:
```
File "quick.py", line 22, in
session = InstaPy(username=insta_username,
File "/usr/local/lib/python3.8/dist-packages/instapy/instapy.py", line 312, in __init__
self.browser, err_msg = set_selenium_local_session(
File "/usr/local/lib/python3.8/dist-packages/instapy/browser.py", line 120, in set_selenium_local_session
driver_path = geckodriver_path or get_geckodriver()
File "/usr/local/lib/python3.8/dist-packages/instapy/browser.py", line 36, in get_geckodriver
sym_path = gdd.download_and_install()[1]
File "/usr/local/lib/python3.8/dist-packages/webdriverdownloader/webdriverdownloader.py", line 174, in download_and_install
filename_with_path = self.download(version,
File "/usr/local/lib/python3.8/dist-packages/webdriverdownloader/webdriverdownloader.py", line 129, in download
download_url = self.get_download_url(version, os_name=os_name, bitness=bitness)
File "/usr/local/lib/python3.8/dist-packages/webdriverdownloader/webdriverdownloader.py", line 324, in get_download_url
raise RuntimeError(info_message)
RuntimeError: Error, unable to determine correct filename for 64bit linux
```
Thanks you in advance @bayi
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
installation/Linux/install.sh と instapy/browser.py の get_geckodriver エントリポイントから始め、提供された Ubuntu Docker セットアップで traceback を再現します。webdriverdownloader が 64 ビット Linux のファイル名を選択する仕組みを追跡します。完了条件は、文書化されたコンテナ手順でこの RuntimeError を発生させずに quick.py を実行できることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, python, ubuntu
- 領域
- devops
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100