Comments (12)
Thanks for the report, this should be available for use in the next release of nuitka.
from nuitka.
I assume this has very similar solution as playwright will get @KevinRodriguez777 can you then take this one on as well, once we got the raw_copy
in-place?
from nuitka.
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
driver = webdriver.Chrome(options=chrome_options)
driver.get('https://www.google.com/')
I don't believe that to be the case, selenium doesn't bundle the drivers like playwright does, it uses already exisiting drivers / browsers and controls them directly, i could be wrong though, let me take a look.
from nuitka.
Hello! I didn't use chromedriver in my project. With the new version of Selenium (4), it is no longer necessary to specify a chromedriver. However, this chromedriver management is not working.
My code is as simples as:
from selenium import webdriver chrome_options = webdriver.ChromeOptions() driver = webdriver.Chrome(options=chrome_options) driver.get('https://www.google.com/')
The code runs on the system fine and when i don't use onefile.
Compiled it with: python -m nuitka --follow-imports --standalone --onefile --include-package=selenium main.py
When executing main.exe, I receive the following error:
Traceback (most recent call last): File "C:\Users\diego\AppData\Local\Temp\OND5FF~1\selenium\webdriver\common\driver_finder.py", line 38, in get_path File "C:\Users\diego\AppData\Local\Temp\OND5FF~1\selenium\webdriver\common\selenium_manager.py", line 89, in driver_lo cation File "C:\Users\diego\AppData\Local\Temp\OND5FF~1\selenium\webdriver\common\selenium_manager.py", line 73, in get_binar selenium. common. exceptions. WebDriverException: Message: Unable to obtain working Selenium Manager binary; C:\Users\diego \AppData\Local\Temp\OND5FF~1\selenium\webdriver\common\windows\selenium-manager. exe The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\diego\AppData\Local\Temp\OND5FF~1\p.py", line 8, in <module> driver = webdriver. Chrome(options=chrome_options) File "C:\Users\diego\AppData\Local\Temp\OND5FF~1\selenium\webdriver\chrome\webdriver.py", line 45, in __ init File "C:\Users\diego\AppData\Local\Temp\OND5FF~1\selenium\webdriver\chromium\webdriver.py", line 49, in __ init_ File "C:\Users\diego\AppData\Local\Temp\OND5FF~1\selenium\webdriver\common\driver_finder.py", line 41, in get_path selenium. common. exceptions. NoSuchDriverException: Message: Unable to obtain driver for chrome using Selenium Manager. ; F or documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/dr iver_location
Nuitka
Version 2.1 Non commercial
pip freeze
altgraph==0.17.4 annotated-types==0.6.0 anyio==4.3.0 attrs==23.2.0 auto-py-to-exe==2.42.0 bottle==0.12.25 bottle-websocket==0.2.9 certifi==2024.2.2 cffi==1.16.0 charset-normalizer==3.3.2 colorama==0.4.6 distro==1.9.0 Eel==0.16.0 exceptiongroup==1.2.0 future==1.0.0 gevent==24.2.1 gevent-websocket==0.10.1 greenlet==3.0.3 h11==0.14.0 httpcore==1.0.4 httpx==0.27.0 idna==3.6 Nuitka==2.1 openai==1.13.3 ordered-set==4.1.0 outcome==1.3.0.post0 packaging==23.2 pefile==2023.2.7 pillow==10.2.0 pycparser==2.21 pydantic==2.6.3 pydantic_core==2.16.3 pyinstaller==6.4.0 pyinstaller-hooks-contrib==2024.2 pyparsing==3.1.1 PySocks==1.7.1 python-dotenv==1.0.1 pywin32-ctypes==0.2.2 requests==2.31.0 schedule==1.2.1 selenium==4.18.1 sniffio==1.3.1 sortedcontainers==2.4.0 tqdm==4.66.2 trio==0.24.0 trio-websocket==0.11.1 typing_extensions==4.10.0 urllib3==2.2.1 webdriver-manager==4.0.1 whichcraft==0.6.1 wsproto==1.2.0 XlsxWriter==3.2.0 zope.event==5.0 zope.interface==6.2 zstandard==0.22.0
do you have solution??
from nuitka.
yes same issue for me
hope it gets fixed
from nuitka.
Thanks for your report, this is fixed on the factory branch, which is a development version under rapid development. You can try it out by going here: https://nuitka.net/doc/factory.html
Feedback if this is working is very welcome, just please do not share plans of doing it, but rather confirmations or denials of it working.
from nuitka.
@kayhayen u can close this issue the error has been solved its working ❤️
from nuitka.
@kayhayen u can close this issue the error has been solved its working ❤️
issues get closed once they hit main.
from nuitka.
ohhh ok i understand
from nuitka.
Part of the 2.1.3 hotfix release I just made.
from nuitka.
@kayhayen how to force update to 2.1.3 now can anyone help
from nuitka.
@kayhayen how to force update to 2.1.3 now can anyone help
it'll be on pypi soon, be patient or install it from source
https://nuitka.net/doc/download.html#pypi
from nuitka.
Related Issues (20)
- Unable to open project after converting QML file to pyd and compiling with UPX HOT 1
- Standalone: Standard library scan can crash with .git folders present HOT 5
- Error while compiling project with Yaml config file HOT 4
- RecursiveScriptModule' has no attribute '_construct HOT 1
- Virus total 29/72 antiviruses say my program compiled with Nuitka has virus HOT 5
- ModuleNotFoundError: No module named `scipy.special._cdflib` with `SciPy-1.13.0` HOT 4
- supoortability of @Slot(name="xxx") HOT 1
- Nuitka scanning for executables does not ignore directories of the same name (was locating GCC wrong) HOT 7
- get RuntimeError when use getattr() to get a non-exist attribute on asgiref.local.Local HOT 6
- Build imgui-bundle example successfully into excutable, but crashed at getting windows WndProc hook HOT 14
- compile standalone, incorrect __file__ variable HOT 7
- SetConsoleCtrlHandler not working with console HOT 7
- Nuitka-Scons: Non downloaded winlibs-gcc 'H:\MinGW\bin\gcc.exe' is being ignored, Nuitka is very dependent on the precise one. HOT 4
- Packaging mlc-llm HOT 3
- Are Nuitka compiled files actually binaries ? HOT 1
- Problem error ModuleNotFoundError: No module named 'sspilib.raw._text' HOT 9
- [ERROR] Failed to add resources to file 'myUiExample.exe' HOT 1
- ImportError: Could not find library zaber-motion-lib-windows-amd64.dll in bindings HOT 17
- ModuleNotFoundError: No module named 'aspose.threed.formats'; 'aspose.threed' is not a package HOT 15
- Using Nuitka to create a shared module? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuitka.