aws / aws-iot-device-sdk-python-v2

Next generation AWS IoT Client SDK for Python using the AWS Common Runtime
Apache License 2.0
408 stars 213 forks source link

awsiot.greengrasscoreipc has no attibute connect #152

Closed hackaprende closed 3 years ago

hackaprende commented 3 years ago

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

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

awscrt.io.init_logging(awscrt.io.LogLevel.Warn, 'stderr')

Additional context Add any other context about the problem here.

lacteolus commented 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

hackaprende commented 3 years ago

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

hackaprende commented 3 years ago

I had to run pip install --upgrade awsiotsdk with sudo and it worked, thanks a lot @lacteolus

github-actions[bot] commented 3 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

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.