Open jhnyc opened 2 years ago
+1
In my case, I was using an M1 Mac.
I used the arm-only docker and it worked fine. selenium/standalone-chrome
Running into this issue as well with an M1 Mac.
When I try to use selenium/standalone-chrome
I get Message: 'chromedriver' executable needs to be in PATH.
@jhnyc @AsheKR have you able to solve it?
I'm trying to run chromium-browser
inside linux/amd64
built docker container on my m1 mac, having this:
/ # chromium-browser --no-sandbox --headless --disable-dev-shm-usage --disable-gpu --window-size=1920,1080 "https://example.com/"
qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped
qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped
[1123/102811.182268:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[1123/102811.186957:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[1123/102811.217043:WARNING:dns_config_service_linux.cc(428)] Failed to read DnsConfig.
qemu: unknown option 'type=utility'
[1123/102811.399626:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[1123/102811.402807:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[1123/102811.403232:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 1 time(s)
[1123/102811.474123:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
qemu: unknown option 'type=utility'
[1123/102811.700157:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[1123/102811.700235:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 2 time(s)
[1123/102811.720520:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
qemu: unknown option 'type=utility'
[1123/102811.985840:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[1123/102811.985931:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 3 time(s)
[1123/102812.016132:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
[1123/102812.024892:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[1123/102812.024971:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 4 time(s)
qemu: unknown option 'type=utility'
[1123/102812.054398:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[1123/102812.054503:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 5 time(s)
[1123/102812.055918:ERROR:network_service_instance_impl.cc(470)] Network service crashed, restarting service.
qemu: unknown option 'type=utility'
[1123/102812.084531:ERROR:gpu_process_host.cc(967)] GPU process launch failed: error_code=1002
[1123/102812.084893:WARNING:gpu_process_host.cc(1273)] The GPU process has crashed 6 time(s)
[1123/102812.084977:FATAL:gpu_data_manager_impl_private.cc(450)] GPU process isn't usable. Goodbye.
qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped
Trace/breakpoint trap
I found another function, this same as selenium. and can running on Apple Silicon and Docker. https://github.com/microsoft/playwright-python
Has anyone figured out the fix yet? I can reproduce this on Apple Silicon M1 based Docker. Works fine on Intel based macOS.
No answer fit in WHOLE internet for me. My case - tasting with pytset silenium, chrome browser shows error in topic and nothing helps. Solution is funny af... Open DEFAULT STANDARTY Chrome Browser window and now start your .py file and all works correctly :) I hate this shish
+1 <
I've tested both images
3.8-selenium
and3.9-selenium
using the configurations in thetest_script.py
:Both throw this error: