Lost with the python toturial

I got lost somewhere with the python toturial.

where do I write the following from the toturial?

Is this the gitBash, GitCMD ? something else?

also, when I write "which python" in gitCMD or command prompt, i get - 'which' is not recognized as an internal or external command".

what am I doing wrong?

Comments

  • OK...
    I understood now that it should be done through python console.

    But I get the following error.

    Please advise

  • Still does not work.

    What is wrong?

  • edited March 2020

    Start at the install portion of our tutorial first. You are going straight to the code section but you haven't followed any of our install how-to steps.

  • I actually have and followed step by step.

    But still not every thing is clear.

    I got the MAc address of the device. through the example script.

    Then I tried

    pattern= LedPattern(repeat_count= Const.LED_REPEAT_INDEFINITELY)
    libmetawear.mbl_mw_led_load_preset_pattern(byref(pattern), LedPreset.BLINK)
    libmetawear.mbl_mw_led_write_pattern(device.board, byref(pattern), LedColor.GREEN)
    libmetawear.mbl_mw_led_play(device.board)

    and got

    Traceback (most recent call last):
    File "", line 1, in
    OSError: [WinError -529697949] Windows Error 0xe06d7363

    i also tried

    # usage: python scan_connect.py
    python scan_connect.py

    and got

    Traceback (most recent call last):
    File "scan_connect.py", line 9, in
    import six
    ModuleNotFoundError: No module named 'six'

    What I missed?

  • edited March 2020

    Install the module six, do what the error says and use the internet to guide you through what others have done: https://stackoverflow.com/questions/13967428/importerror-no-module-named-six

    • pip install six
Sign In or Register to comment.