Skip to content

TypeError: __init__() got an unexpected keyword argument 'proxies' for httpx > 0.27.2 #9

@anilmenon14

Description

@anilmenon14

Since httpx is not a pinned dependency, on any of the newer installations of unitycatalog-python, receiving the below error when running instantiating a UC client object.
Issue has been observed when httpx version is 0.28.0 or greater.

import unitycatalog
uc_client = unitycatalog.Unitycatalog(
            base_url=UC_CATALOG_TABLE_URI,     
            default_headers={"Authorization": f"Bearer {token}"},      
)

Error:

 super().__init__(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'proxies'

Workaround:
Install a pinned version of httpx==0.27.2 when creating virtual environment

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