Receiving below error when opening session using python lseg.data library
Code:
import lseg.data as ld
ld.open_session(config_name='./config.json')
Error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/talend-data/dev/smfhub/pyvenv/idr-smfhub-bbg-process/venv3.11.10/lib/python3.11/site-packages/lseg/data/_access_layer/session.py", line 92, in open_session
default_session.open()
File "/talend-data/dev/smfhub/pyvenv/idr-smfhub-bbg-process/venv3.11.10/lib/python3.11/site-packages/lseg/data/_core/session/_session.py", line 374, in open
self._http_service.open()
File "/talend-data/dev/smfhub/pyvenv/idr-smfhub-bbg-process/venv3.11.10/lib/python3.11/site-packages/lseg/data/_core/session/http_service.py", line 335, in open
self._client.open()
File "/talend-data/dev/smfhub/pyvenv/idr-smfhub-bbg-process/venv3.11.10/lib/python3.11/site-packages/lseg/data/_core/session/http_service.py", line 188, in open
self._client = get_httpx_client(
^^^^^^^^^^^^^^^^^
File "/talend-data/dev/smfhub/pyvenv/idr-smfhub-bbg-process/venv3.11.10/lib/python3.11/site-packages/lseg/data/_core/session/http_service.py", line 161, in get_httpx_client
client = httpx.Client(proxy=proxies, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/talend-data/dev/smfhub/code/site-packages/httpx/_client.py", line 697, in init
self._mounts: dict[URLPattern, BaseTransport | None] = {
^
File "/talend-data/dev/smfhub/code/site-packages/httpx/_client.py", line 700, in <dictcomp>
else self._init_proxy_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/talend-data/dev/smfhub/code/site-packages/httpx/_client.py", line 750, in _init_proxy_transport
return HTTPTransport(
^^^^^^^^^^^^^^
File "/talend-data/dev/smfhub/code/site-packages/httpx/_transports/default.py", line 168, in init
elif proxy.url.scheme in ("http", "https"):
^^^^^^^^^
AttributeError: 'dict' object has no attribute 'url'