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

ERROR: setup() missing 1 required positional argument: 'iothub_connection_string' when running iotedgedev start #392

Closed
marxxxx opened this issue Jun 4, 2019 · 1 comment

Comments

@marxxxx
Copy link

marxxxx commented Jun 4, 2019

  • iotedgedev Version:1.3.0
  • Python Version: 3.6.7
  • Pip Version:19.1
  • Development machine OS Version: Window Version 10.0.17134 Build 17134
  • IoT Edge device OS Version:Linux 3d5513d56f80 4.9.125-linuxkit Explain .env file for a 5th grader #1 SMP Fri Sep 7 08:20:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Steps to Reproduce:

  1. Follow the instructions in the quickstart guide https://github.com/Azure/iotedgedev/wiki/quickstart-with-iot-edge-dev-container
  2. manually edit the file sudo nano /usr/local/lib/python3.6/dist-packages/iotedgedev/azurecli.py to access key "connectionString" instead of "cs"
  3. at step 5 of the quickstart guide, run sudo iotedgedev start --setup --file config/deployment.amd64.json

the command constantly shows the following output:

iotedgedev@3d5513d56f80:/home/iotedge$ sudo iotedgedev start --setup --file config/deployment.amd64.json

=======================================
======== ENVIRONMENT VARIABLES ========
=======================================

Environment Variables loaded from: .env (/home/iotedge/.env)
ERROR: setup() missing 1 required positional argument: 'iothub_connection_string'

checking the .env file i see that both connection strings are properly set (IOTHUB_CONNECTION_STRING and DEVICE_CONNECTION_STRING).

so i'm a bit lost here. is there another script incompatibility similar to the one with the "cs" parameter ?

@marxxxx
Copy link
Author

marxxxx commented Jun 4, 2019

Holy XXX, in my desperation i was running a

sudo iotedgedev setup

and this fixed it for me.

the following call to sudo iotedgedev start succeeded.

This should definitely be mentioned in the "Quickstart" IMHO.

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

No branches or pull requests

1 participant