Closed KovacovicP closed 8 months ago
Thanks for opening your first issue here! Be sure to follow the issue template!
Hi Kovacovic,
I'am also trying to use this library.
Your error is due to the new updates in selenium after version 4.9 that changed argument executable_path of webdriver class. That means the source code of jimutmap is not compatible with selenium > 4.9 , so if you do
pip install selenium == 4.8
will solve your problem
If someone has this library working locally, please use command pip freeze>requirements.txt
to update requirements.txt and avoid this kind of issue.
@Jimut123
Have to look into it, have exams next week, can't look before endsems get over. 😢
Sorry guys, try to fix it yourself, I'm totally out of touch with the repo.
Hello, Here is a fix:
diff --git a/jimutmap/jimutmap.py b/jimutmap/jimutmap.py
index e84318f..f5bcb9e 100644
--- a/jimutmap/jimutmap.py
+++ b/jimutmap/jimutmap.py
@@ -20,6 +20,7 @@ from tqdm import tqdm
import multiprocessing
from typing import Tuple
from selenium import webdriver
+from selenium.webdriver.chrome.service import Service
import chromedriver_autoinstaller
from multiprocessing.pool import ThreadPool
from os.path import join, exists, normpath, relpath
@@ -184,9 +185,10 @@ class api:
SAMPLE_KEY = r"1614125879_3642792122889215637_%2F_RwvhYZM5fKknqTdkXih2Wcu3s2f3Xea126uoIuDzUIY%3D"
KEY_START = r"&accessKey="
chromeDriverPath = chromedriver_autoinstaller.install(cwd= True)
+ service = Service(executable_path=chromeDriverPath)
options = webdriver.ChromeOptions()
options.add_argument('headless')
- driver = webdriver.Chrome(executable_path= chromeDriverPath, options=options)
+ driver = webdriver.Chrome(service=service, options=options)
driver.get("https://satellites.pro/USA_map#37.405074,-94.284668,5")
keyContents = None
loopStartTime = dt.datetime.now()
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug After installing chrome into wsl along with required dependencies it fails to get token for the map or fails on inicialization of chrome auto installer package (see output below).
To Reproduce Steps to reproduce the behavior:
Expected behavior Receive satellite images from the scraper into chosen directory.
Screenshots
Desktop