Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.9.0 - 'Thread' object has no attribute 'isAlive' #41

Closed
Timothy-Dement opened this issue Nov 25, 2020 · 2 comments
Closed

Python 3.9.0 - 'Thread' object has no attribute 'isAlive' #41

Timothy-Dement opened this issue Nov 25, 2020 · 2 comments

Comments

@Timothy-Dement
Copy link
Member

Versions

> $ sw_vers

ProductName:	Mac OS X
ProductVersion:	10.15.7
BuildVersion:	19H2
> $ python --version

Python 3.9.0
> $ pip show ibm-cos-sdk

Name: ibm-cos-sdk
Version: 2.8.0
Summary: IBM SDK for Python
Home-page: https://github.com/ibm/ibm-cos-sdk-python
Author: IBM
Author-email: None
License: Apache License 2.0
Location: /Users/tmdement/.pyenv/versions/3.9.0/lib/python3.9/site-packages
Requires: ibm-cos-sdk-core, ibm-cos-sdk-s3transfer, jmespath
Required-by: 

Error

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/Users/tmdement/.pyenv/versions/3.9.0/lib/python3.9/site-packages/ibm_botocore/credentials.py", line 2227, in _cleanup
    self.stop_refresh_thread()
  File "/Users/tmdement/.pyenv/versions/3.9.0/lib/python3.9/site-packages/ibm_botocore/credentials.py", line 2236, in stop_refresh_thread
    if self._background_thread.isAlive():
AttributeError: 'Thread' object has no attribute 'isAlive'

Likely Cause

It seems that in Python 3.9.0 the isAlive method was renamed is_alive:

@IBMeric
Copy link
Member

IBMeric commented Nov 30, 2020

Thank you for your comment. We are aware of this change, which we are targeting for our next release.

This is a duplicate of IBM/ibm-cos-sdk-python-core#10.

@IBMeric
Copy link
Member

IBMeric commented Dec 16, 2020

This has been resolved in the 2.9.0 release. Please verify and then close this ticket.

@IBMeric IBMeric closed this as completed Jan 4, 2021
thundergreen added a commit to thundergreen/asterisk_mbox_server that referenced this issue May 25, 2023
Making compatible for Python > 3.9 according to IBM/ibm-cos-sdk-python#41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants