FujiwaraChoki/MoneyPrinterV2

Geckodriver can not run on my raspiberry-pi 4B

yh110224 opened this issue · 1 comments

I use a raspberry-pi 4B device to run the project.Device info is:
Linux raspi 6.1.0-rpi8-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux

When I start YT shorts Automater, error like this:

File "/home/username/moneyprint2/MoneyPrinterV2-main/src/main.py", line 364, in
main()
File "/home/username/moneyprint2/MoneyPrinterV2-main/src/main.py", line 79, in main
youtube = YouTube(
^^^^^^^^
File "/home/username/moneyprint2/MoneyPrinterV2-main/src/classes/YouTube.py", line 83, in init
self.browser: webdriver.Firefox = webdriver.Firefox(service=self.service, options=self.options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/username/moneyprint2/MoneyPrinterV2-main/mp2env/lib/python3.11/site-packages/selenium/webdriver/firefox/webdriver.py", line 60, in init
self.service.start()
File "/home/username/moneyprint2/MoneyPrinterV2-main/mp2env/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 98, in start
self._start_process(self._path)
File "/home/username/moneyprint2/MoneyPrinterV2-main/mp2env/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 208, in _start_process
self.process = subprocess.Popen(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1024, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/username/.wdm/drivers/geckodriver/linux64/v0.34.0/geckodriver'

Then use the 'file' command to view the file properties,like this:
geckodriver: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), static-pie linked, BuildID[sha1]=ec0ce05f420115d33032b612f37d88c565b5468a, with debug_info, not stripped

Does this mean that my device cannot run the file?

I solved this problem by downloading the correct version of geckodriver on Gitgub.
https://github.com/mozilla/geckodriver/releases