Hi ,
Im using Lseg Library function ( ld.content.pricing.Definition ) for getting price feed …When closing the stream using stream.close() statement ….i even put a pause of 5 seconds before calling stream.close ….the feed is not getting closed ..and getting following error in console :
Traceback (most recent call last):File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1052, in _bootstrap_innerself.run()File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 989, in runself._target(*self._args, **self._kwargs)instream.close()File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\lseg\data\content\pricing_stream_facade.py", line 133, in closereturn super().close()^^^^^^^^^^^^^^^File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\lseg\data\delivery_stream_basestream.py", line 65, in closereturn self._stream.close()^^^^^^^^^^^^^^^^^^^^File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\lseg\data\delivery_stream_basestream.py", line 172, in closereturn self.state.close(*args, **kwargs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\lseg\data\delivery_stream\states_basestream_states.py", line 83, in closereturn self.stream.do_close(*args, **kwargs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\lseg\data\delivery_stream_basestream.py", line 192, in do_closeself._do_close(*args, **kwargs)File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\lseg\data\content_universe_streams.py", line 450, in _do_closefutures.append(executor.submit(universe_stream.close))^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\concurrent\futures\thread.py", line 172, in submitraise RuntimeError('cannot schedule new futures after 'RuntimeError: cannot schedule new futures after interpreter shutdown
Thanks
Sumit