Botocore: DeprecationWarning in botocore/parsers.py:434 with Python 3.7

Created on 29 Aug 2018  路  3Comments  路  Source: boto/botocore

Hello! I'm using Sceptre with Python 3.7 on OS X and it uses boto3 and botocore internally. I am getting loads of these deprecation warnings:

/Users/stig/.virtualenvs/sceptre/lib/python3.7/site-packages/botocore/parsers.py:434: DeprecationWarning: This method will be removed in future versions. Use 'list(elem)' or iteration over elem instead.
if value.getchildren():


Version information:

$ python --version 
Python 3.7.0
>>> botocore.__version__
 '1.11.2' 

OS: macOS High Sierra (10.13.6)

$ sceptre --version
Sceptre, version 1.4.1
enhancement

Most helpful comment

Thanks @DiegoPomares for the PR. I just merged it. You all should no longer be seeing that warning in the next release of botocore. Closing issue.

All 3 comments

Looks like these warnings are new in 3.7 but the referenced features have been documented as deprecated for a while, see: https://bugs.python.org/issue29209
It seems like the current plan is completely remove these deprecated xml features in 3.9+

Specifically, xml.etree.cElementTree has been deprecated since 3.3 and the getchildren function has been deprecated since 2.7/3.2.

Thanks @DiegoPomares for the PR. I just merged it. You all should no longer be seeing that warning in the next release of botocore. Closing issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FrancescoRizzi picture FrancescoRizzi  路  5Comments

jsha picture jsha  路  3Comments

xennygrimmato picture xennygrimmato  路  4Comments

stephanebruckert picture stephanebruckert  路  3Comments

kjschiroo picture kjschiroo  路  4Comments