Git Product home page Git Product logo

Comments (12)

KRRT7 avatar KRRT7 commented on June 24, 2024 2

Thanks for the report, this should be available for use in the next release of nuitka.

from nuitka.

kayhayen avatar kayhayen commented on June 24, 2024

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.

KRRT7 avatar KRRT7 commented on June 24, 2024

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.

BAYU-SPAMMING avatar BAYU-SPAMMING commented on June 24, 2024

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.

furjac avatar furjac commented on June 24, 2024

yes same issue for me
hope it gets fixed

from nuitka.

kayhayen avatar kayhayen commented on June 24, 2024

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.

furjac avatar furjac commented on June 24, 2024

@kayhayen u can close this issue the error has been solved its working ❤️

from nuitka.

KRRT7 avatar KRRT7 commented on June 24, 2024

@kayhayen u can close this issue the error has been solved its working ❤️

issues get closed once they hit main.

from nuitka.

furjac avatar furjac commented on June 24, 2024

ohhh ok i understand

from nuitka.

kayhayen avatar kayhayen commented on June 24, 2024

Part of the 2.1.3 hotfix release I just made.

from nuitka.

furjac avatar furjac commented on June 24, 2024

@kayhayen how to force update to 2.1.3 now can anyone help

from nuitka.

KRRT7 avatar KRRT7 commented on June 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.