Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] support pyinstaller propperly #95

Open
taytanqbpass opened this issue Oct 23, 2023 · 3 comments
Open

[feature request] support pyinstaller propperly #95

taytanqbpass opened this issue Oct 23, 2023 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@taytanqbpass
Copy link

taytanqbpass commented Oct 23, 2023

Hey there,

I tried to package this with my executable by using "pyinstaller -F --icon icon.ico --hidden-import=selenium_driverless main.py" but I'm getting the error:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\admin\AppData\Local\Temp\_MEI145002\selenium_driverless/files/is_first_run'

any help would be appreciated, Thanks.

UPDATE (by maintainer)

workaround available

@kaliiiiiiiiii
Copy link
Owner

kaliiiiiiiiii commented Oct 23, 2023

Yep, you'll have to include the full driverless package directory.
Also, I plan to make this package pyinstaller-safe

@kaliiiiiiiiii kaliiiiiiiiii changed the title How do I package this with pyinstaller? [feature request] add pyinstaller hook Oct 23, 2023
@kaliiiiiiiiii kaliiiiiiiiii added the enhancement New feature or request label Oct 23, 2023
@milahu
Copy link

milahu commented Jan 25, 2024

see also #122

@kaliiiiiiiiii kaliiiiiiiiii changed the title [feature request] add pyinstaller hook [feature request]support pyinstaller propperly Mar 17, 2024
@kaliiiiiiiiii kaliiiiiiiiii changed the title [feature request]support pyinstaller propperly [feature request] support pyinstaller propperly Mar 17, 2024
@kaliiiiiiiiii kaliiiiiiiiii added the help wanted Extra attention is needed label Mar 17, 2024
@Acanis87
Copy link

Acanis87 commented Sep 25, 2024

PyInstaller wasnt working for me, too:

File "selenium_driverless\webdriver.py", line 128, in aenter
File "selenium_driverless\webdriver.py", line 154, in start_session
File "selenium_driverless\types\options.py", line 311, in add_extension
OSError: Path to the extension doesn't exist

But after a hint of kali* I found:

-collect-all "selenium_driverless"

Add this to the PyInstaller arguments and its working :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants