breuerfelix / chromedriver-py

chromedriver self updated binaries for all platforms
https://pypi.org/project/chromedriver-py/
Apache License 2.0
50 stars 16 forks source link

Couldn't find a binary for your system (EXE only issue) #33

Closed pokepaladdy closed 10 months ago

pokepaladdy commented 10 months ago

Not really sure how much info is needed to help with this, but when turning into an EXE with auto-py-to-exe, this error persists. Works fine when running the .py file.

Traceback (most recent call list):
File "filename.py`, line 10, in <module>
from chomedriver_py import binary_path
File "<frozen importlib._bootstrap", line 1178, in _find_and_load
File "<frozen importlib._bootstrap", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "chromedriver_py\__init__.py", line 49, in <module>
File "chromedriver_py\__init__.py", line 44, in _get_filename
Exception: Couldn't find a binary for your system: windows / amd64. Please create an Innsure on github.com/breuerfelix/chromedriver-py and include this Message.
[18412] Failed to execute script 'Filename' due to unhandle exception!

Libraries used

from lxml import etree
from selenium import webdriver
from selenium.common.exceptions import WebDriverException
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from chromedriver_py import binary_path

import ctypes
import os
import re
import shutil
import time
import tkcalendar
import tkinter
import Widget_Constructor
breuerfelix commented 10 months ago

It does not work since the chromedriver is indeed an exe file and you won't be able to bundle another exe file into an exe file. This is the reason why big programs for example have an install folder since there are files that cannot be bundled into a single file.

If you have any further questions, feel free to ask, i will close this issue since it is just not possible due to operating systems restrictions :)