Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #219

Open
yahia912 opened this issue Sep 7, 2024 · 2 comments
Open

Error #219

yahia912 opened this issue Sep 7, 2024 · 2 comments

Comments

@yahia912
Copy link

yahia912 commented Sep 7, 2024

2024-09-07 14:55:16 | INFO | 112 - Downloading webdriver. It may take some time...
/bin/sh: line 1: google-chrome: command not found
/bin/sh: line 1: google-chrome-stable: command not found
/bin/sh: line 1: google-chrome-beta: command not found
/bin/sh: line 1: google-chrome-dev: command not found
/bin/sh: line 1: google-chrome: command not found
/bin/sh: line 1: google-chrome-stable: command not found
/bin/sh: line 1: google-chrome-beta: command not found
/bin/sh: line 1: google-chrome-dev: command not found
Traceback (most recent call last):
File "/home/shortigamez/TapSwapBot/main.py", line 4, in
from bot.utils.launcher import process
File "/home/shortigamez/TapSwapBot/bot/utils/init.py", line 2, in
from . import launcher
File "/home/shortigamez/TapSwapBot/bot/utils/launcher.py", line 9, in
from bot.core.tapper import run_tapper
File "/home/shortigamez/TapSwapBot/bot/core/tapper.py", line 17, in
from bot.utils.scripts import escape_html, login_in_browser
File "/home/shortigamez/TapSwapBot/bot/utils/scripts.py", line 114, in
webdriver_path = pathlib.Path(web_manager().install())
File "/home/shortigamez/TapSwapBot/venv/lib/python3.10/site-packages/webdriver_manager/chrome.py", line 40, in install
driver_path = self._get_driver_binary_path(self.driver)
File "/home/shortigamez/TapSwapBot/venv/lib/python3.10/site-packages/webdriver_manager/core/manager.py", line 40, in _get_driver_binary_path
file = self._download_manager.download_file(driver.get_driver_download_url(os_type))
File "/home/shortigamez/TapSwapBot/venv/lib/python3.10/site-packages/webdriver_manager/drivers/chrome.py", line 32, in get_driver_download_url
driver_version_to_download = self.get_driver_version_to_download()
File "/home/shortigamez/TapSwapBot/venv/lib/python3.10/site-packages/webdriver_manager/core/driver.py", line 48, in get_driver_version_to_download
return self.get_latest_release_version()
File "/home/shortigamez/TapSwapBot/venv/lib/python3.10/site-packages/webdriver_manager/drivers/chrome.py", line 64, in get_latest_release_version
determined_browser_version = ".".join(determined_browser_version.split(".")[:3])
AttributeError: 'NoneType' object has no attribute 'split'

@Mtwserv
Copy link

Mtwserv commented Sep 7, 2024

I'm also have the issue with chromedriver
ERROR | 105 - W1 | Unknown error while Login: [WinError 193] %1 is not a valid Win32 application | Response text: ...

I added chromedriver.exe to this DIR ~\TapSwapBot\webdriver\ but it didn't help.

Installed:
Python-3.11.0-amd64
Git-2.46.0-64-bit

Solution:

  1. remove webdriver dir and venv
  2. pip install --upgrade -r requirements.txt
  3. one more pip install --upgrade -r requirements.txt
  4. copy this chromedriver to webdriver dir (this folder will appear after you run the bot and select option 1 or 2)
  5. enjoy!

Screenshot_1

chromedriver-win64.zip

@yahia912
Copy link
Author

yahia912 commented Sep 7, 2024

Thanks for the Help! Though I'm running it on linux, will this work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants