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

AWS component error in botocore #28499

Closed
pete1450 opened this issue Nov 3, 2019 · 5 comments · Fixed by #30951
Closed

AWS component error in botocore #28499

pete1450 opened this issue Nov 3, 2019 · 5 comments · Fixed by #30951
Assignees

Comments

@pete1450
Copy link

pete1450 commented Nov 3, 2019

Home Assistant release with the issue:

0.100.3

Last working Home Assistant release (if known):
Unknown

Operating environment (Hass.io/Docker/Windows/etc.):

venv on debian

Integration:

https://www.home-assistant.io/integrations/aws/

Description of problem:
I upgraded to the latest release and while I was doing so went to python 3.8. The aws component stopped working and I think I've traced it back to this pull in botocore: boto/botocore#1829

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

  credentials:
    - name: My AWS Account
      aws_access_key_id: mykey
      aws_secret_access_key: mysecretkey
  notify:
    # use the first credential defined in aws component by default
    - service: sns
      region_name: us-west-2
      name: sms

Traceback (if applicable):

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/notify/__init__.py", line 73, in async_setup_platform
    notify_service = await platform.async_get_service(
  File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/aws/notify.py", line 44, in async_get_service
    import aiobotocore
  File "/srv/homeassistant/lib/python3.8/site-packages/aiobotocore/__init__.py", line 1, in <module>
    from .session import get_session, AioSession
  File "/srv/homeassistant/lib/python3.8/site-packages/aiobotocore/session.py", line 8, in <module>
    from .client import AioClientCreator
  File "/srv/homeassistant/lib/python3.8/site-packages/aiobotocore/client.py", line 11, in <module>
    from .args import AioClientArgsCreator
  File "/srv/homeassistant/lib/python3.8/site-packages/aiobotocore/args.py", line 9, in <module>
    from .endpoint import AioEndpointCreator
  File "/srv/homeassistant/lib/python3.8/site-packages/aiobotocore/endpoint.py", line 14, in <module>
    from botocore.vendored.requests.structures import CaseInsensitiveDict
ModuleNotFoundError: No module named 'botocore.vendored.requests.structures'

Additional information:

@probot-home-assistant
Copy link

Hey there @awarecan, @robbiet480, mind taking a look at this issue as its been labeled with a integration (aws) you are listed as a codeowner for? Thanks!

@Gloix
Copy link

Gloix commented Nov 5, 2019

I have another project that started failing the same way.
Forcing these dependencies fixes the issue:

boto3==1.9.49
botocore==1.12.49

I guess something broke on a newer boto3 or botocore version.

@finnysamuel
Copy link
Contributor

The issue still persists and it fails to load the aws component.
HA Version 104.2

@finnysamuel
Copy link
Contributor

The issue is fixed in the 0.11.0 version of aiobotocore.
I manually went and changed the version of aiobotocore in the manifest.json of aws component to 0.11.0 and it resolved the issue.

@snstanton
Copy link

Any idea when this will see a release? It's a real thorn in the side if you need to install awscli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants