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

Cannot run basic pubsub via start.sh #332

Closed
tucker-SB opened this issue Jan 18, 2024 · 2 comments
Closed

Cannot run basic pubsub via start.sh #332

tucker-SB opened this issue Jan 18, 2024 · 2 comments
Labels
bug This issue is a bug.

Comments

@tucker-SB
Copy link

Describe the bug

Attempting to run the example code from the connection kit via start.sh does not work

Expected Behavior

Starts continuously publishing

Current Behavior

Gives the traceback

Running pub/sub sample application...
Traceback (most recent call last):
File "/home/todd_keitel/Downloads/aws-iot-device-sdk-python-v2/samples/pubsub.py", line 84, in
mqtt_connection = mqtt_connection_builder.mtls_from_path(
File "/home/todd_keitel/.local/lib/python3.10/site-packages/awsiot/mqtt_connection_builder.py", line 276, in mtls_from_path
return _builder(tls_ctx_options, **kwargs)
File "/home/todd_keitel/.local/lib/python3.10/site-packages/awsiot/mqtt_connection_builder.py", line 231, in _builder
tls_ctx = awscrt.io.ClientTlsContext(tls_ctx_options)
File "/home/todd_keitel/.local/lib/python3.10/site-packages/awscrt/io.py", line 596, in init
self._binding = _awscrt.client_tls_ctx_new(
RuntimeError: 34 (AWS_ERROR_INVALID_ARGUMENT): An invalid argument was passed to a function.

Reproduction Steps

Run the startup script

Possible Solution

No response

Additional Information/Context

This tutorial worked fine on Mac, attempting to run on Ubuntu

SDK version used

awsiotsdk - 1.21.0, awscrt - 0.20.2

Environment details (OS name and version, etc.)

Ubuntu 22.04.3

@tucker-SB tucker-SB added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 18, 2024
@jmklix jmklix removed the needs-triage This issue or PR still needs to be triaged. label Jan 19, 2024
@jmklix
Copy link
Member

jmklix commented Jan 19, 2024

This is the wrong repo, the startup script installs the v2 version of this sdk. Can you make sure your arguments that the startup script is passing are correct because that is the error that you are getting (AWS_ERROR_INVALID_ARGUMENT): An invalid argument was passed to a function. If you still are having any problems please open a new issue on the v2 repo

@jmklix jmklix closed this as completed Jan 19, 2024
Copy link

⚠️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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants