You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the dependencies google-api-python-client overwrites the __init__.py file of api-client, and if it has been used by other packages, there is an unresolved conflict.
The original __init__.py:
# Allow direct access to the base client and other methods.fromapiclient.authentication_methodsimport (
BasicAuthentication,
HeaderAuthentication,
NoAuthentication,
QueryParameterAuthentication,
)
fromapiclient.clientimportAPIClientfromapiclient.decoratesimportendpointfromapiclient.paginatorsimportpaginatedfromapiclient.request_formattersimportJsonRequestFormatterfromapiclient.response_handlersimportJsonResponseHandler, RequestsResponseHandler, XmlResponseHandlerfromapiclient.retryingimportretry_request
The overwritten one:
"""Retain apiclient as an alias for googleapiclient."""fromgoogleapiclientimportchannel, discovery, errors, http, mimeparse, modeltry:
fromgoogleapiclientimportsample_toolsexceptImportError:
# Silently ignore, because the vast majority of consumers won't use it and# it has deep dependence on oauth2client, an optional dependency.sample_tools=Nonefromgoogleapiclientimportschema_SUBMODULES= {
"channel": channel,
"discovery": discovery,
"errors": errors,
"http": http,
"mimeparse": mimeparse,
"model": model,
"sample_tools": sample_tools,
"schema": schema,
}
importsysformodule_name, modulein_SUBMODULES.items():
sys.modules["apiclient.%s"%module_name] =module
The text was updated successfully, but these errors were encountered:
archatas
changed the title
google-api-python-client overwrite the __init__.py file of apiclient
google-api-python-client overwrites the __init__.py file of apiclient
Jan 18, 2025
archatas
changed the title
google-api-python-client overwrites the __init__.py file of apiclient
google-api-python-client overwrites the __init__.py file of api-client
Jan 18, 2025
One of the dependencies
google-api-python-client
overwrites the__init__.py
file ofapi-client
, and if it has been used by other packages, there is an unresolved conflict.The original
__init__.py
:The overwritten one:
The text was updated successfully, but these errors were encountered: