IBM / ibm-cos-sdk-python

ibm-cos-sdk-python
Apache License 2.0
45 stars 26 forks source link

DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' #31

Closed powellquiring closed 4 years ago

powellquiring commented 4 years ago

Running pytest for some code generated the following output. Let me know if you need a more specific testcase, it looks pretty straightforward

(venv) ➜  bridgepy git:(master) ✗ python --version
Python 3.7.3

...
venv/lib/python3.7/site-packages/ibm_botocore/awsrequest.py:624
  /Users/pquiring/github.com/powellquiring/bridgepy/venv/lib/python3.7/site-packages/ibm_botocore/awsrequest.py:624: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    class HeadersDict(collections.MutableMapping):
powellquiring commented 4 years ago

Try these instructions:

mkdir bug
cd bug
python3 -m venv venv
source venv/bin/activate
pip install pytest ibm-cos-sdk

cat > test_cos.py <<EOF
import ibm_boto3

def test_cos():
    print('hi')

EOF

pytest
wbhuberIBM commented 4 years ago

@powellquiring - thanks for bringing this up. We will supply updates in the next patch release.

For internally tracking: CSAFE-66085

IBMeric commented 4 years ago

Version 2.6.2 is now available that includes an upstream fix. If the problem has been resolved, please close this issue. Thanks!

rtveitch commented 4 years ago

Closing this. Let us know if it's still a problem, thanks.