MarketSquare / MarketSquare/webdrivermanager

AttributeError: module 'configparser' has no attribute 'SafeConfigParser'

Open
#107 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
104
Forks
39
PR merge metrics
No merged PRs in 30d

Description

This is a duplicate of issue #103, which was closed as completed by the original poster in May of 2024.

I am still getting the same error in February 2025. If I understand correctly, the solution to #103 was to install webdriver_manager instead of webdrivermanager, but this differs from the README.

For completion's sake, find the error message I get for "pip install webdrivermanager" below (with my local username replaced with "[my username]")

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
  ╰─> [33 lines of output]
      C:\Users\[my username]\AppData\Local\Temp\pip-install-eyua5ip6\webdrivermanager_438424e0392741beb3e6ff7697358838\versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
        LONG_VERSION_PY['git'] = '''
      Traceback (most recent call last):
        File "C:\Users\[my username]\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "C:\Users\[my username]\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\[my username]\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\[my username]\AppData\Local\Temp\pip-build-env-6xq8zedo\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\[my username]\AppData\Local\Temp\pip-build-env-6xq8zedo\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "C:\Users\[my username]\AppData\Local\Temp\pip-build-env-6xq8zedo\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\[my username]\AppData\Local\Temp\pip-build-env-6xq8zedo\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 47, in <module>
        File "C:\Users\[my username]\AppData\Local\Temp\pip-install-eyua5ip6\webdrivermanager_438424e0392741beb3e6ff7697358838\versioneer.py", line 1480, in get_version
          return get_versions()["version"]
                 ~~~~~~~~~~~~^^
        File "C:\Users\[my username]\AppData\Local\Temp\pip-install-eyua5ip6\webdrivermanager_438424e0392741beb3e6ff7697358838\versioneer.py", line 1412, in get_versions
          cfg = get_config_from_root(root)
        File "C:\Users\[my username]\AppData\Local\Temp\pip-install-eyua5ip6\webdrivermanager_438424e0392741beb3e6ff7697358838\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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing pip install webdrivermanager with Python 3.13 and inspect versioneer.py at get_config_from_root, where the reported SafeConfigParser failure occurs. Check the README installation guidance against the package metadata and prior issue #103. Done means the documented package installs successfully without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.