Shop OBEX P1 Docs P2 Docs Learn Events
Cyberbot Ping))) Roaming Program- Python - Error " Does not support "/" Does Not support for "None" — Parallax Forums

Cyberbot Ping))) Roaming Program- Python - Error " Does not support "/" Does Not support for "None"

Going thru the Ping tests for the 32700 two errors pop up

line 10 " Does not support "/" Does not support for "None"
I have no "/" in the code only ","
that "/" is what the error calls out
In line 11 " Does not support "*" and " Does not support for " None" "
I thought * is a valid symbol ?
Note all the above is the copied script from the tutorial/course
see attached
Error occurs both in the Ping _test _with_ serial _monitor (although it runs )
and in ping__theremin

The Ping-servo_ test works okay
Please - help to debug the above - see attached

thanks

Comments

  • You might want to reach out to "support@parallax.com" for help with the micro:bit

    Just one guess though... assuming you've copy/pasted a published example, I wonder if it is for the v3 python version you are using, or the previous v2 ?
    It looks like you've installed the two .py objects into your micro:bit module (cyberbot.py and ping.py), so it looks like some sort of syntax mismatch in that IDE (which is why I wondered if that example was targeting v2 originally, and might not have been updated yet)

    If you solve it, please post the solution back here :)

  • VonSzarvasVonSzarvas Posts: 3,627
    edited 2026-01-23 17:59

    I wonder if that assignment to distance is working ok on the same line as the distance var is created.

    Does this work instead ?

    while True:
        val = ping(16).distance('cm')
        print('Distance: ' + str(val) + ' cm')
        #bot(22).tone((val*50),50)
    
  • banjobanjo Posts: 483

    Might be a sidetrack, but on line 6 it seems there's an extra space after bot(22).

Sign In or Register to comment.