When I tried to run the following lines of codes in Python,
import refinitiv.dataplatform.eikon as ek
ek.set_app_key('#############################')
I bumpted into the followign error message. Can someone help me address the error?
Traceback (most recent call last):
File "C:\Users\********\AppData\Local\Temp\***********py", line 2, in <module>
ek.set_app_key('###########################)
File "C:\Users\********\Anaconda3\envs\*******\lib\site-packages\refinitiv\dataplatform\legacy\tools.py", line 210, in set_app_key
_session = get_default_session(app_key)
File "C:\Users\*******\Anaconda3\envs\*********\lib\site-packages\refinitiv\dataplatform\legacy\tools.py", line 200, in get_default_session
return DefaultSession.get_default_session(app_key)
File "C:\Users\******\Anaconda3\envs\***********\lib\site-packages\refinitiv\dataplatform\legacy\tools.py", line 240, in get_default_session
cls.__default_session = DesktopSession(app_key)
File "C:\Users\*********\Anaconda3\envs\**********\lib\site-packages\refinitiv\dataplatform\core\session\desktop_session.py", line 41, in __init__
super().__init__(
File "C:\Users\***********\Anaconda3\envs\**********\lib\site-packages\refinitiv\dataplatform\core\session\session.py", line 342, in __init__
self._http_session = httpx.AsyncClient(
File "C:\Users\**********\Anaconda3\envs\**********\lib\site-packages\httpx\_client.py", line 1394, in __init__
self._transport = self._init_transport(
File "C:\Users\**********\Anaconda3\envs\**********\lib\site-packages\httpx\_client.py", line 1442, in _init_transport
return AsyncHTTPTransport(
File "C:\Users\**********\Anaconda3\envs\**********\lib\site-packages\httpx\_transports\default.py", line 264, in __init__
self._pool = httpcore.AsyncConnectionPool(
File "C:\Users\**********\Anaconda3\envs\**********\lib\site-packages\httpcore\_async\connection_pool.py", line 107, in __init__
self._pool_lock = AsyncLock()
File "C:\Users\**********\Anaconda3\envs\**********\lib\site-packages\httpcore\_synchronization.py", line 12, in __init__
self._lock = anyio.Lock()
AttributeError: module 'anyio' has no attribute 'Lock'