Closed hackaprende closed 3 years ago
@hackaprende did you try to update awsiotsdk? I don't have this issue with awsiotsdk 1.5.4
. I guess connect() method was implemented in #144
I have version 1.5.4 too but it keeps saying awsiot.greengrasscoreipce has no attribute 'connect', I had to use the IPCUtils file that comes in the AWS documentation, although I just noticed they added this new method in these days, maybe yesterday because I have been checking the documentation everyday
I had to run pip install --upgrade awsiotsdk with sudo and it worked, thanks a lot @lacteolus
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Known Issue
<prefix>-ats.iot.<region>.amazonaws.com
Describe the bug A clear and concise description of what the bug is.
In your ipc_greengrasss sample, line 70, you are doing this ipc_client = awsiot.greengrasscoreipc.connect()
But when running the script I get this error "awsiot.greengrasscoreipc has no attibute 'connect'"
SDK version number 1.5.3
Platform/OS/Device What are you running the sdk on? Raspbian
To Reproduce (observed behavior) Steps to reproduce the behavior (please share code) Just running the ipc_greengrass.py sample you have in this repo
Expected behavior A clear and concise description of what you expected to happen. It should publish an MQTT message to some topic
Logs/output If applicable, add logs or error output. com.example.MyGreengrassCore: stderr. AttributeError: module 'awsiot.greengrasscoreipc' has no attribute 'connect'. {scriptName=services.com.example.MyGreengrassCore.lifecycle.Run, serviceName=com.example.MyGreengrassCore, currentState=RUNNING}
REMEMBER TO SANITIZE YOUR PERSONAL INFO
Additional context Add any other context about the problem here.