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,628
    edited 2026-01-24 08:13

    I wonder if that assignment to distance is working ok on the same line as the distance value (of the same name) is queried.

    Does this work instead ?

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

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

  • Can you please confirm if the code runs?

    The syntax checker sometimes flags code that is actually correct.

    We have reported these issues to The Micro:bit Educational Foundation.

    But please first confirm if the code still runs once you send it to the micro:bit.

  • Sometimes we add some boxes to the curriculum like this one:

  • Thanks for the quick input Von ,Ari
    Thanks guys
    Interesting I ignored the errors
    Ran the " Detect and Turn from obstacles " and it functioned perfectly
    I'll bookshelf the comments
    you can close this issue out

Sign In or Register to comment.