Skip to content

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

@TraDukTer

Description

@TraDukTer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions