question

Upvotes
Accepted
1 1 1 1

websocket/_app.py teardown AttributeError: 'Thread' object has no attribute 'isAlive'

Package version: refinitiv-dataplatform==1.0.0a15


File "***/lib/python3.9/site-packages/websocket/_app.py", line 231, in teardown

if thread and thread.isAlive():

AttributeError: 'Thread' object has no attribute 'isAlive'

I think it should be is_alive().

pythonrefinitiv-data-platform-libraries
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@Cheng-Yi

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

@Cheng-Yi

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

@Cheng-Yi

It looks like to be a problem in the websocket library.

The latest version of the websocket library (websocket-client 1.3.3) uses thread.is_alive().

1658465793521.png

Please verify the version of the websocket-client used by the application and then update it accordingly.


1658465793521.png (24.7 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.