byalextran / southwest-headers

IYKYK. 😄
MIT License
30 stars 9 forks source link

Not running with modified chromedriver on Mac M1 #4

Closed jonathanbright closed 2 years ago

jonathanbright commented 2 years ago

I'm on a Mac with M1 (apple silicon) ARM-based processor. There is a different chromedriver now for M1 (not the same as the amd64 driver). This southwest-headers app runs fine until you modify the chromedriver as instructed. I've tried doing it with the perl command given, and also manually with a hex editor. If the driver is modified in the way described (changing the name of the cdc variable) then the program errors when an instance of the chromedriver is attempted to be created.

Here's the exact error with traceback:

Traceback (most recent call last): File "/Users/jonathanbright/py/Virtualenvs/southwest-headers/southwest-headers.py", line 37, in driver = webdriver.Chrome(os.getcwd() + "/chromedriver", options=chrome_options, seleniumwire_options=seleniumwire_options) File "/Users/jonathanbright/py/Virtualenvs/southwest-headers/env/lib/python3.9/site-packages/seleniumwire/webdriver.py", line 195, in init super().init(*args, **kwargs) File "/Users/jonathanbright/py/Virtualenvs/southwest-headers/env/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in init super(WebDriver, self).init(DesiredCapabilities.CHROME['browserName'], "goog", File "/Users/jonathanbright/py/Virtualenvs/southwest-headers/env/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py", line 90, in init self.service.start() File "/Users/jonathanbright/py/Virtualenvs/southwest-headers/env/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 98, in start self.assert_process_still_running() File "/Users/jonathanbright/py/Virtualenvs/southwest-headers/env/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 110, in assert_process_still_running raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: Service /Users/jonathanbright/py/Virtualenvs/southwest-headers/chromedriver unexpectedly exited. Status code was: -9

byalextran commented 2 years ago

hmm, interesting. since i don't have an M1 mac, this will be really hard to troubleshoot. it also sounds like a chromedriver issue. are you able to post this issue to the chromedriver repo? i'll try to take a look into this, but i think you'll get better luck (and hopefully a faster resolution) there.

jonathanbright commented 2 years ago

I'm not sure the chromedriver repo would support this with the modification being done, but maybe?

UPDATE: Surprisingly the mac64 version (non M1) runs fine and I was able to modify it and it ran fine as well. I'm a bit confused by it, but it works so I went ahead and set up the cron job using the non M1 driver. It downloads the headers fine. Whether they are valid or not, I'm still not sure how to verify.

byalextran commented 2 years ago

good to know the mac64 version works.

in order to verify, you would need to use the header file to try and check-in using my other repo.

https://github.com/byalextran/southwest-checkin

jonathanbright commented 2 years ago

Yes I know. I’m checking in for a flight tomorrow. I’ll let you know.

On Thu, May 5, 2022 at 9:30 PM Alex Tran @.***> wrote:

good to know the mac64 version works.

in order to verify, you would need to use the header file to try and check-in using my other repo.

https://github.com/byalextran/southwest-checkin

— Reply to this email directly, view it on GitHub https://github.com/byalextran/southwest-headers/issues/4#issuecomment-1119206469, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXWKDTJ3V3N2MUFFUOHEIDVIR727ANCNFSM5UCSGUOQ . You are receiving this because you authored the thread.Message ID: @.***>