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

EdgeChromiumDriverManager and IEDriverManager initialization fails #269

Closed
jammer87 opened this issue Nov 3, 2021 · 8 comments · Fixed by #284
Closed

EdgeChromiumDriverManager and IEDriverManager initialization fails #269

jammer87 opened this issue Nov 3, 2021 · 8 comments · Fixed by #284
Assignees

Comments

@jammer87
Copy link

jammer87 commented Nov 3, 2021

I'm getting this error with version 3.5.2. Reverting to 3.5.1 resolves the issue. I do not have any WDM_ environment variables set. EdgeChromiumDriverManager exception shown in the text below, same thing happens with IEDriverManager.

>>> from webdriver_manager.microsoft import EdgeChromiumDriverManager
>>> EdgeChromiumDriverManager()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\xxxxx\.virtualenvs\virtual-env-location-gPpqDgo6\lib\site-packages\webdriver_manager\microsoft.py", line 50, in __init__
    super().__init__(path, log_level, print_first_line, cache_valid_range)
  File "C:\Users\xxxxx\.virtualenvs\virtual-env-location-gPpqDgo6\lib\site-packages\webdriver_manager\manager.py", line 13, in __init__
    log("====== WebDriver manager ======", level=log_level)
  File "C:\Users\xxxxx\.virtualenvs\virtual-env-location-gPpqDgo6\lib\site-packages\webdriver_manager\logger.py", line 25, in log
    _init_logger(level, name, first_line, formatter)
  File "C:\Users\xxxxx\.virtualenvs\virtual-env-location-gPpqDgo6\lib\site-packages\webdriver_manager\logger.py", line 19, in _init_logger
    _logger.setLevel(level)
  File "C:\Program Files\Python38\lib\logging\__init__.py", line 1421, in setLevel
    self.level = _checkLevel(level)
  File "C:\Program Files\Python38\lib\logging\__init__.py", line 201, in _checkLevel
    raise TypeError("Level not an integer or a valid string: %r" % level)
TypeError: Level not an integer or a valid string: None
@natarajan0007
Copy link

Same issure for me also . Downgrading to 3.5.1 version works fine.

@TiredFingers
Copy link

TiredFingers commented Dec 21, 2021

fast fix is EdgeChromiumDriverManager(log_level=20)

@Yumin2019
Copy link

Thanks. This was really helpful.

@SviatoslavBordovski
Copy link

fast fix is EdgeChromiumDriverManager(log_level=20)

thanks, that has fixed the test, what does mean that 'log_level=20'?

@SviatoslavBordovski
Copy link

@SergeyPirogov фиксать есть силы или побудет opened и закроешь? :)

@SergeyPirogov
Copy link
Owner

Если можешь чини.

@aleksandr-kotlyar
Copy link
Collaborator

aleksandr-kotlyar commented Feb 8, 2022

Resolved in PR #284
Will be available from 3.5.3 version of webdriver-manager.

@aleksandr-kotlyar
Copy link
Collaborator

@jammer87 thank you for the report and patience! Fix is already in 3.5.3. Check it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants