Ciao Morro, bel progetto,
io vorrei solo fare semplicemente uno screenshot dal Raspberry Pi3 con "Bullseye 32bit full version", (ultimi update/upgrade) di un percorso di GoogleMap e salvarlo in "/home/linux/Immagini/Casa-Lavoro.png" quando lancio il programma .py
PS: Ho logicamente la striga completa funzionante ('https://www.google.com/maps/dir/Via+Milano+23+... ecc. ecc')
Ho provato con varie guide in internet...
sudo python3 -m pip install selenium==2.53.5 sudo apt-get install firefox-esr wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-arm7hf.tar.gz tar -xf geckodriver-v0.19.1-arm7hf.tar.gz rm geckodriver-v0.19.1-arm7hf.tar.gz sudo chmod a+x geckodriver sudo mv geckodriver /usr/local/bin/
ma il problema sta nel come installare selenium /geckodrive e firefox-sr , perchè viene aperto firefox ma in /temp/xxxxx e da errore timeout. Non riesco ad impostare l'apertura del mio profilo firefox-sr invece che nel /temp...
Traceback (most recent call last): File "/home/pi/x.py", line 15, in <module> browser = webdriver.Firefox(firefox_profile=profile) File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/firefox/webdriver.py", line 80, in __init__ executor = ExtensionConnection("127.0.0.1", self.profile, File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 51, in __init__ self.binary.launch_browser(self.profile, timeout=timeout) File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 68, in launch_browser self._wait_until_connectable(timeout=timeout) File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 103, in _wait_until_connectable raise WebDriverException("Can't load the profile. Profile " selenium.common.exceptions.WebDriverException: Message: Can't load the profile. Profile Dir: /tmp/tmpxoz8thyw/webdriver-py-profilecopy If you specified a log_file in the FirefoxBinary constructor, check it for details.
e se setto
profile = webdriver.FirefoxProfile(/home/pi/.mozilla/firefox/MIONUMEROprofilo.default-esr/)
ricevo errore:
`ImportError: cannot import name FirefoxOptions from selenium.webdriver (/usr/local/lib/python3.9/dist-packages/selenium/webdriver/init.py)'
Ho provato il tuo progetto, ma mi fermo qui:
dalla guida:https://firefox-source-docs.mozilla.org/testing/geckodriver/ARM.html
con comando:
pi@Bullseye:~ $ rustup target install armv7-unknown-linux-gnueabihf
ricevo errore:
info: component 'rust-std' for target 'armv7-unknown-linux-gnueabihf' is up to date
Inoltre questo NON installa "selenium" giusto?
Grazie1000