--- httpx-0.28.1/httpx/_transports/default.py.orig +++ httpx-0.28.1/httpx/_transports/default.py @@ -190,7 +190,7 @@ except ImportError: # pragma: no cover raise ImportError( "Using SOCKS proxy, but the 'socksio' package is not installed. " - "Make sure to install httpx using `pip install httpx[socks]`." + "Please install 'socksio' using `pkg install library/python/socksio`." ) from None self._pool = httpcore.SOCKSProxy( @@ -334,7 +334,7 @@ except ImportError: # pragma: no cover raise ImportError( "Using SOCKS proxy, but the 'socksio' package is not installed. " - "Make sure to install httpx using `pip install httpx[socks]`." + "Please install 'socksio' using `pkg install library/python/socksio`." ) from None self._pool = httpcore.AsyncSOCKSProxy( --- httpx-0.28.1/httpx/_client.py.orig +++ httpx-0.28.1/httpx/_client.py @@ -679,7 +679,7 @@ except ImportError: # pragma: no cover raise ImportError( "Using http2=True, but the 'h2' package is not installed. " - "Make sure to install httpx using `pip install httpx[http2]`." + "Please install 'h2' using `pkg install library/python/h2`." ) from None allow_env_proxies = trust_env and transport is None @@ -1393,7 +1393,7 @@ except ImportError: # pragma: no cover raise ImportError( "Using http2=True, but the 'h2' package is not installed. " - "Make sure to install httpx using `pip install httpx[http2]`." + "Please install 'h2' using `pkg install library/python/h2`." ) from None allow_env_proxies = trust_env and transport is None --- httpx-0.28.1/httpx/__init__.py.orig +++ httpx-0.28.1/httpx/__init__.py @@ -21,7 +21,8 @@ print( "The httpx command line client could not run because the required " "dependencies were not installed.\nMake sure you've installed " - "everything with: pip install 'httpx[cli]'" + "everything with: pkg install library/python/click " + "library/python/pygments library/python/rich" ) sys.exit(1) --- httpx-0.28.1/httpx/_decoders.py.orig +++ httpx-0.28.1/httpx/_decoders.py @@ -118,9 +118,9 @@ def __init__(self) -> None: if brotli is None: # pragma: no cover raise ImportError( - "Using 'BrotliDecoder', but neither of the 'brotlicffi' or 'brotli' " - "packages have been installed. " - "Make sure to install httpx using `pip install httpx[brotli]`." + "Using 'BrotliDecoder', but no 'brotli' " + "package has been installed. " + "Make sure to install 'brotli' using `pkg install library/python/brotli`." ) from None self.decompressor = brotli.Decompressor()