robotframework / SeleniumLibrary

Web testing library for Robot Framework
Apache License 2.0
1.38k stars 759 forks source link

>pip install webdrivermanager - Getting requirements to build wheel did not run successfully. #1878

Open sathishalthus-learning opened 8 months ago

sathishalthus-learning commented 8 months ago

Prerequisites

For issues

Steps to reproduce the issue

pip install robotframework pip install --upgrade robotframework-seleniumlibrary pip install webdrivermanager -- note : both in c: or in virtual environment

Error messages and additional information

Collecting webdrivermanager Using cached webdrivermanager-0.10.0.tar.gz (33 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. exit code: 1 ╰─> [31 lines of output] C:\Users\Sathish Althus\AppData\Local\Temp\pip-install-iepgg5o1\webdrivermanager_8109961131654d29879155c324efd338\versioneer.py:421: SyntaxWarning: invalid escape sequence '\s' LONG_VERSION_PY['git'] = ''' Traceback (most recent call last): File "d:\workspaces\python\tutorial-env\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "d:\workspaces\python\tutorial-env\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\workspaces\python\tutorial-env\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel return hook(configsettings) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Sathish Althus\AppData\Local\Temp\pip-build-env-7aw67l2\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel return self._get_build_requires(configsettings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Sathish Althus\AppData\Local\Temp\pip-build-env-7aw67l2\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires self.runsetup() File "C:\Users\Sathish Althus\AppData\Local\Temp\pip-build-env-7aw67l2\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setupscript) File "C:\Users\Sathish Althus\AppData\Local\Temp\pip-build-env-7aw67l2\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup exec(code, locals()) File "", line 47, in File "C:\Users\Sathish Althus\AppData\Local\Temp\pip-install-iepgg5o1\webdrivermanager_8109961131654d29879155c324efd338\versioneer.py", line 1480, in get_version return get_versions()["version"] ^^^^^^^^^^^^^^ File "C:\Users\Sathish Althus\AppData\Local\Temp\pip-install-iepgg5o1\webdrivermanager_8109961131654d29879155c324efd338\versioneer.py", line 1412, in get_versions cfg = get_config_from_root(root) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Sathish Althus\AppData\Local\Temp\pip-install-iepgg5o1\webdrivermanager_8109961131654d29879155c324efd338\versioneer.py", line 342, in get_config_from_root parser = configparser.SafeConfigParser() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Expected behavior and actual behavior

webdriver installed successfully

Environment

Operating System: Windows 11 Libraries

MarkNewell-OMES commented 7 months ago

Were you ever able to fix this error? I'm getting the same error and have so far found no fix.

rasjani commented 7 months ago
  1. Since Selenium (the python side) now has selenium-manager baked into its python distribution - webdrivermanager is somewhat obsolete. It provides the same functionality as webdrivermanager but at runtime if underlying Selenium is new enough.
  2. Maybe this issue should be moved to https://github.com/MarketSquare/webdrivermanager/issues
  3. Submitted a patch to fix the issue; https://github.com/MarketSquare/webdrivermanager/pull/106