Hi, we got RW user/client getting this error in her Jupyter Notebook, (Her Codebook is working though.)
She is using Refinitiv Workspace.
RD version is 1.5.1
Python version is 3.9.13
She provided the logs below: (RDP Library logs)
[2024-02-02T17:43:47.781761+08:00] - [DEBUG] - [rd] - [39140] | MainThread
RD version is 1.5.1; Python version is 3.9.13 (main, Aug 25 2022, 23:51:50) [MSC v.1916 64 bit (AMD64)]
[2024-02-02T17:43:47.784762+08:00] - [DEBUG] - [rd] - [39140] | MainThread
Installed packages (396): aiobotocore==2.4.2,aiohttp==3.8.4,aioitertools==0.11.0,aiosignal==1.3.1,alabaster==0.7.12,anaconda-client==1.11.0,anaconda-navigator==2.3.1,anaconda-project==0.11.1,anyio==3.5.0,appdirs==1.4.4,argon2-cffi-bindings==21.2.0,argon2-cffi==21.3.0,arrow==1.2.2,astroid==2.11.7,astropy==5.1,async-timeout==4.0.2,atomicwrites==1.4.0,attrs==21.4.0,automat==20.2.0,autopep8==1.6.0,babel==2.9.1,backcall==0.2.0,backports.functools-lru-cache==1.6.4,backports.tempfile==1.0,backports.weakref==1.0.post1,bcrypt==3.2.0,beautifulsoup4==4.11.1,binaryornot==0.4.4,bitarray==2.5.1,bkcharts==0.2,black==22.6.0,bleach==4.1.0,blpapi==3.20.1,bokeh==2.4.3,boto3==1.24.28,botocore==1.27.59,bottleneck==1.3.5,brotlipy==0.7.0,certifi==2022.9.14,cffi==1.15.1,chardet==3.0.4,charset-normalizer==2.0.4,click==8.0.4,cloudpickle==2.0.0,clyent==1.2.2,codetiming==1.4.0,colorama==0.4.5,colorcet==3.0.0,comtypes==1.1.10,conda-build==3.22.0,conda-content-trust==0.1.3,conda-pack==0.6.0,conda-package-handling==1.9.0,conda-repo-cli==1.0.20,conda-token==0.4.0,conda-verify==3.4.2,conda==22.9.0,constantly==15.1.0,contexttimer==0.3.3,cookiecutter==1.7.3,cryptography==37.0.1,cssselect==1.1.0,cycler==0.11.0,cython==0.29.32,cytoolz==0.11.0,daal4py==2021.6.0,dask==2022.7.0,datashader==0.14.1,datashape==0.5.4,datetime==5.4,debugpy==1.5.1,decorator==5.1.1,defusedxml==0.7.1,deprecation==2.1.0,diff-match-patch==20200713,dill==0.3.4,distributed==2022.7.0,docstring-parser==0.15,docutils==0.18.1,eikon==1.1.18,entrypoints==0.4,et-xmlfile==1.1.0,exceptiongroup==1.2.0,exchange-calendars==3.6.3,fastjsonschema==2.16.2,filelock==3.6.0,flake8==4.0.1,flask==1.1.2,fonttools==4.25.0,frozendict==2.3.8,frozenlist==1.3.3,fsspec==2022.11.0,future==0.18.2,gensim==4.1.2,glob2==0.7,googletrans==3.0.0,greenlet==1.1.1,h11==0.12.0,h2==4.1.0,h5py==3.7.0,heapdict==1.0.1,holoviews==1.15.0,hpack==4.0.0,hstspreload==2023.1.1,html5lib==1.1,httpcore==0.13.7,httpx==0.19.0,hvplot==0.8.0,hyperframe==6.0.1,hyperlink==21.0.0,idna==2.10,imagecodecs==2021.8.26,imageio==2.19.3,imagesize==1.4.1,importlib-metadata==4.11.3,incremental==21.3.0,inflection==0.5.1,iniconfig==1.1.1,intake==0.6.5,intervaltree==3.1.0,ipykernel==6.15.2,ipython-genutils==0.2.0,ipython==7.31.1,ipywidgets==7.6.5,isort==5.9.3,itemadapter==0.3.0,itemloaders==1.0.4,itsdangerous==2.0.1,janus==1.0.0,jdcal==1.4.1,jedi==0.18.1,jellyfish==0.9.0,jieba==0.42.1,jinja2-time==0.2.0,jinja2==3.1.2,jmespath==0.10.0,joblib==1.1.0,json-logging==1.2.11,json5==0.9.6,jsonschema==4.16.0,jupyter-client==7.3.4,jupyter-console==6.4.3,jupyter-contrib-core==0.4.2,jupyter-contrib-nbextensions==0.7.0,jupyter-core==4.11.1,jupyter-highlight-selected-word==0.2.0,jupyter-nbextensions-configurator==0.6.3,jupyter-server==1.18.1,jupyter==1.0.0,jupyterlab-pygments==0.1.2,jupyterlab-server==2.10.3,jupyterlab-widgets==1.0.0,jupyterlab==3.4.4,keyring==23.4.0,kiwisolver==1.4.2,korean-lunar-calendar==0.3.1,lazy-object-proxy==1.6.0,libarchive-c==2.9,libretranslatepy==2.1.1,lightgbm==4.2.0,llvmlite==0.38.0,locket==1.0.0,lxml==4.9.1,lz4==3.1.3,markdown==3.3.4,markupsafe==2.0.1,matplotlib-inline==0.1.6,matplotlib==3.5.2,mccabe==0.6.1,menuinst==1.4.19,methodtools==0.4.7,mistune==0.8.4,mkl-fft==1.3.1,mkl-random==1.2.2,mkl-service==2.4.0,mock==4.0.3,mplfinance==0.12.9b7,mpmath==1.2.1,msgpack==1.0.3,multidict==6.0.4,multipledispatch==0.6.0,multitasking==0.0.11,munkres==1.1.4,mypy-extensions==0.4.3,navigator-updater==0.3.0,nbclassic==0.3.5,nbclient==0.5.13,nbconvert==6.4.4,nbformat==5.5.0,nest-asyncio==1.5.5,networkx==2.8.4,nltk==3.7,nose==1.3.7,notebook==6.4.12,numba==0.55.1,numexpr==2.8.3,numpy==1.21.5,numpydoc==1.4.0,olefile==0.46,openpyxl==3.0.10,outcome==1.3.0.post0,packaging==21.3,pandas-datareader==0.10.0,pandas==1.5.3,pandocfilters==1.5.0,panel==0.13.1,param==1.12.0,paramiko==2.8.1,parsel==1.6.0,parso==0.8.3,partd==1.2.0,pathlib==1.0.1,pathspec==0.9.0,patsy==0.5.2,pause==0.3,pep8==1.7.1,pexpect==4.8.0,pickleshare==0.7.5,pillow==9.2.0,pip-system-certs==4.0,pip==22.2.2,pkginfo==1.8.2,platformdirs==2.5.2,plotly==5.9.0,pluggy==1.0.0,poyo==0.5.0,prometheus-client==0.14.1,prompt-toolkit==3.0.20,protego==0.1.16,psutil==5.9.0,ptyprocess==0.7.0,py==1.11.0,pyarrow==7.0.0,pyasn1-modules==0.2.8,pyasn1==0.4.8,pycodestyle==2.8.0,pycosat==0.6.3,pycparser==2.21,pyct==0.4.8,pycurl==7.45.1,pydantic==1.10.9,pydatastream==0.6.5,pydispatcher==2.0.5,pydocstyle==6.1.1,pyee==9.0.4,pyerfa==2.0.0,pyfinance==1.3.0,pyflakes==2.4.0,pygments==2.11.2,pyhamcrest==2.0.2,pyhumps==3.0.2,pyjwt==2.4.0,pylint==2.14.5,pyls-spyder==0.4.0,pyluach==2.2.0,pymysql==1.0.3,pynacl==1.5.0,pyodbc==4.0.34,pyopenssl==22.0.0,pyparsing==3.0.9,pyproj==3.6.1,pyrsistent==0.18.0,pyshp==2.3.1,pysocks==1.7.1,pytest==7.1.2,python-dateutil==2.8.2,python-lsp-black==1.0.0,python-lsp-jsonrpc==1.0.0,python-lsp-server==1.3.3,python-slugify==5.0.2,python-snappy==0.6.0,pytz==2023.3,pyviz-comms==2.0.2,pywavelets==1.3.0,pywin32-ctypes==0.2.0,pywin32==302,pywinpty==2.0.2,pyyaml==6.0,pyzmq==23.2.0,qd-client==6.8.7,qdarkstyle==3.0.2,qdc==4.0.1,qstylizer==0.1.10,qtawesome==1.0.3,qtconsole==5.2.2,qtpy==2.2.0,qube-utils==3.19.0,queuelib==1.5.0,qupynt==2.6.1,refinitiv-data==1.5.1,regex==2022.7.9,requests-file==1.5.1,requests==2.28.1,retry==0.9.2,rfc3986==1.5.0,rope==0.22.0,rtree==0.9.7,ruamel-yaml-conda==0.15.100,ruamel.yaml.clib==0.2.7,ruamel.yaml==0.17.32,s3fs==2022.11.0,s3transfer==0.6.0,scikit-image==0.19.2,scikit-learn-intelex==2021.20221004.171935,scikit-learn==1.0.2,scipy==1.9.1,scrapy==2.6.2,seaborn==0.11.2,selenium==4.15.2,send2trash==1.8.0,service-identity==18.1.0,setuptools==63.4.1,shapely==2.0.2,simplejson==3.19.1,sip==4.19.13,six==1.16.0,smart-open==5.2.1,sniffio==1.3.0,snowballstemmer==2.2.0,sortedcollections==2.1.0,sortedcontainers==2.4.0,soupsieve==2.3.1,sphinx==5.0.2,sphinxcontrib-applehelp==1.0.2,sphinxcontrib-devhelp==1.0.2,sphinxcontrib-htmlhelp==2.0.0,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-qthelp==1.0.3,sphinxcontrib-serializinghtml==1.1.5,spyder-kernels==2.2.1,spyder==5.2.2,sqlalchemy==1.4.39,statsmodels==0.13.2,sympy==1.10.1,tables==3.6.1,tabulate==0.8.10,tbb==0.2,tblib==1.7.0,tenacity==8.0.1,terminado==0.13.1,testpath==0.6.0,text-unidecode==1.3,textdistance==4.2.1,threadpoolctl==2.2.0,three-merge==0.1.1,tifffile==2021.7.2,tinycss==0.4,tldextract==3.2.0,toml==0.10.2,tomli==2.0.1,tomlkit==0.11.1,toolz==0.11.2,tornado==6.1,tqdm==4.64.1,traitlets==5.1.1,translate==3.6.1,trio-websocket==0.11.1,trio==0.23.1,twisted-iocpsupport==1.0.2,twisted==22.2.0,typed-argument-parser==1.8.0,typing-extensions==4.7.1,typing-inspect==0.9.0,typing==3.7.4.3,ujson==5.4.0,unidecode==1.2.0,universal-pathlib==0.0.18,urllib3==1.26.11,w3lib==1.21.0,watchdog==2.1.6,wcwidth==0.2.5,webencodings==0.5.1,websocket-client==0.58.0,websockets==10.4,werkzeug==2.0.3,wheel==0.37.1,widgetsnbextension==3.5.2,win-inet-pton==1.1.0,win-unicode-console==0.5,wincertstore==0.2,wirerope==0.4.7,wrapt==1.14.1,wsproto==1.2.0,xarray==0.20.1,xbbg==0.7.7,xgboost==2.0.0,xlrd==2.0.1,xlsxwriter==3.0.3,xlwings==0.27.15,xmltodict==0.13.0,yapf==0.31.0,yarl==1.9.2,yfinance==0.2.22,zict==2.1.0,zipp==3.8.0,zope.interface==5.4.0
[2024-02-02T17:43:47.790769+08:00] - [DEBUG] - [rd] - [39140] | MainThread
Read configs: M:\code\refinitiv-data.config.json, C:\Users\cli\refinitiv-data.config.json
[2024-02-02T17:43:47.798762+08:00] - [DEBUG] - [session] - [39140] | MainThread
Creating session "sessions.desktop.workspace.0" based on session.desktop.Definition("desktop.workspace")
[2024-02-02T17:43:47.805765+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
DesktopSession created with following parameters: app_key="DEFAULT_WORKSPACE_APP_KEY", name="workspace" base_url=http://localhost:9000 platform_path_rdp="/api/rdp" platform_path_udf="/api/udf" handshake_url="/api/handshake"
[2024-02-02T17:43:47.811762+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Created session connection SessionCxnType.DESKTOP
[2024-02-02T17:43:47.815762+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
+ Session created: DesktopSession
name = 'workspace'
connection = DesktopConnection
stream_auto_reconnection = True
handshake_url = http://localhost:9000/api/handshake
state = OpenState.Closed
session_id = 0
logger_name = sessions.desktop.workspace.0
[2024-02-02T17:43:47.819762+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Open session
[2024-02-02T17:43:47.861761+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
HTTP Request id 0
url = http://localhost:9000/api/status
method = GET
headers = {'x-tr-applicationid': 'DEFAULT_WORKSPACE_APP_KEY'}
[2024-02-02T17:43:47.867762+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Error on checking proxy url http://localhost:9000/api/status : TypeError("send() got an unexpected keyword argument 'follow_redirects'")
[2024-02-02T17:43:47.885763+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Retrieved port 9000 value from .portIntUse isn't valid.
[2024-02-02T17:43:47.890762+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Warning: file .portInUse was not found. Try to fallback to default port number.
[2024-02-02T17:43:47.895764+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Try defaulting to port 9000...
[2024-02-02T17:43:47.900767+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
HTTP Request id 1
url = http://localhost:9000/api/status
method = GET
headers = {'x-tr-applicationid': 'DEFAULT_WORKSPACE_APP_KEY'}
[2024-02-02T17:43:47.905759+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Error on checking proxy url http://localhost:9000/api/status : TypeError("send() got an unexpected keyword argument 'follow_redirects'")
[2024-02-02T17:43:47.910763+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Default proxy port #9000 failed
[2024-02-02T17:43:47.916769+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Try defaulting to port 9060...
[2024-02-02T17:43:47.923762+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
HTTP Request id 2
url = http://localhost:9060/api/status
method = GET
headers = {'x-tr-applicationid': 'DEFAULT_WORKSPACE_APP_KEY'}
[2024-02-02T17:43:47.929763+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Error on checking proxy url http://localhost:9060/api/status : TypeError("send() got an unexpected keyword argument 'follow_redirects'")
[2024-02-02T17:43:47.937761+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Default proxy port #9060 failed
[2024-02-02T17:43:47.942763+08:00] - [ERROR] - [sessions.desktop.workspace.0] - [39140] | MainThread
Error: no proxy address identified.
Check if Desktop is running.
[2024-02-02T17:43:47.948762+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Try to handshake on url http://localhost:9000/api/handshake...
[2024-02-02T17:43:47.953762+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
HTTP Request id 3
url = http://localhost:9000/api/handshake
method = POST
headers = {'Content-Type': 'application/json', 'x-tr-applicationid': 'DEFAULT_WORKSPACE_APP_KEY'}
json = {'AppKey': 'DEFAULT_WORKSPACE_APP_KEY', 'AppScope': 'trapi', 'ApiVersion': '1', 'LibraryName': 'RDP Python Library', 'LibraryVersion': '1.5.1'}
[2024-02-02T17:43:47.958762+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
HTTP request failed: TypeError("send() got an unexpected keyword argument 'follow_redirects'")
[2024-02-02T17:43:47.963761+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Closing session 'workspace'
[2024-02-02T17:43:48.077761+08:00] - [DEBUG] - [sessions.desktop.workspace.0] - [39140] | MainThread
Closed session 'workspace'
Out[1]:
<refinitiv.data.session.Definition object at 0x22b8a20cd00 {name='workspace'}>
Appreciate your help and advice on this.