Skip to content

'AppiumConnection' object has no attribute '_ca_certs' #1053

@tking16

Description

@tking16

I'm getting a new error all of a sudden as soon as I try to start up any tests

_env/lib/python3.9/site-packages/pytest_appium/conftest.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_env/lib/python3.9/site-packages/pytest_appium/conftest.py:77: in driver
    driver = driver_class(**driver_kwargs)
_env/lib/python3.9/site-packages/appium/webdriver/webdriver.py:257: in __init__
    super().__init__(
_env/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py:238: in __init__
    self.start_session(capabilities)
_env/lib/python3.9/site-packages/appium/webdriver/webdriver.py:346: in start_session
    response = self.execute(RemoteCommand.NEW_SESSION, w3c_caps)
_env/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py:378: in execute
    response = self.command_executor.execute(driver_command, params)
_env/lib/python3.9/site-packages/selenium/webdriver/remote/remote_connection.py:376: in execute
    return self._request(command_info[0], url, body=data)
_env/lib/python3.9/site-packages/selenium/webdriver/remote/remote_connection.py:403: in _request
    conn = self._get_connection_manager()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <appium.webdriver.appium_connection.AppiumConnection object at 0x103b880d0>

    def _get_connection_manager(self) -> Union[urllib3.PoolManager, urllib3.ProxyManager]:
        # https://github.com/SeleniumHQ/selenium/blob/0e0194b0e52a34e7df4b841f1ed74506beea5c3e/py/selenium/webdriver/remote/remote_connection.py#L134
        pool_manager_init_args = {'timeout': self.get_timeout()}

>       if self._ca_certs:
E       AttributeError: 'AppiumConnection' object has no attribute '_ca_certs'

_env/lib/python3.9/site-packages/appium/webdriver/appium_connection.py:49: AttributeError
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> entering PDB >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

>>>>>>>>>>>>>>>>>>>>>>>>> PDB post_mortem (IO-capturing turned off) >>>>>>>>>>>>>>>>>>>>>>>>>
> /Users/theo.king/code/guacamole/testing/app-at/_env/lib/python3.9/site-packages/appium/webdriver/appium_connection.py(49)_get_connection_manager()
-> if self._ca_certs:

Environment

  • Appium version (or git revision) that exhibits the issue: v2.12.1
  • Appium-Python-Client: latest v3.2.1

Details

If necessary, describe the problem you have been experiencing in more detail.

Link to Appium Logs

Nothing is coming out of the logs, it fails before it even gets in there

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions