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

botocore uses cElementTree and does not declare it as requirement #1707

Closed
bsiegert opened this issue Apr 4, 2019 · 2 comments
Closed

botocore uses cElementTree and does not declare it as requirement #1707

bsiegert opened this issue Apr 4, 2019 · 2 comments

Comments

@bsiegert
Copy link

bsiegert commented Apr 4, 2019

I am a developer on pkgsrc, and we got a bug report (http://gnats.netbsd.org/54094) that is ultimately due to botocore.

$  aws help
Traceback (most recent call last):
File "/usr/pkg/bin/aws", line 19, in <module>
import awscli.clidriver
  File "/usr/pkg/lib/python2.7/site-packages/awscli/clidriver.py", line 17, in <module>
    import botocore.session
  File "/usr/pkg/lib/python2.7/site-packages/botocore/session.py", line 29, in <module>
    import botocore.configloader
  File "/usr/pkg/lib/python2.7/site-packages/botocore/configloader.py", line 19, in <module>
    from botocore.compat import six
  File "/usr/pkg/lib/python2.7/site-packages/botocore/compat.py", line 172, in <module>
    import xml.etree.cElementTree
  File "/usr/pkg/lib/python2.7/xml/etree/cElementTree.py", line 3, in <module>
    from _elementtree import *
ImportError: No module named _elementtree
$ pkgin install py27-cElementTree
[...]
$ aws help
[now works]

In botocore/compat.py, line 172, there is an import for cElementTree but the requirements (setup.py and others) do not mention this dependency/

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Apr 4, 2019
This works around upstream issue boto/botocore#1707 and PR pkg/54094.
@kyleknap
Copy link
Contributor

kyleknap commented Apr 5, 2019

It is not listed in the requirements because it is part of the Python Standard Library. There is no need for us to declare it as a dependency as it is automatically included in all versions of Python we support. Let us know if you have anymore questions.

@bsiegert
Copy link
Author

bsiegert commented Apr 8, 2019

Whoops, I did not realize that cElementTree being a separate package is pkgsrc-specific. Sorry for the noise and thanks.

@bsiegert bsiegert closed this as completed Apr 8, 2019
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue May 19, 2019
This works around upstream issue boto/botocore#1707 and PR pkg/54094.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants