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.

1 Answer

· Write an Answer
Upvotes
Accepted
69.3k 211 49 69

@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.