pybricks-micropython on the ev3dev V2 image has no wait in pybricks.tools
#2609
-
|
I am checking V2 examples to see if they are V4.0.0.b7 compatible. From another post I remember that this is V2. All doc about changed syntax in ev3 micropython doc does work on this micropython. But from pybricks.tools import waitreports Is there a "better" pybricks-micropython V2 binary? Once I downloaded the pybricks-micropython from build 3357 and there is no |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
This is odd. I would expect this error message from I tried it here and it works at least from the REPL. robot@pybricks-ev3:~$ pybricks-repl
Pybricks MicroPython v1.11 on 2020-05-06; linux version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> from pybricks.tools import wait
>>> wait(1000)
>>> Maybe you have something in >>> import sys
>>> sys.path
['', '', '/home/robot/.pybricks-micropython/lib', '/usr/lib/pybricks-micropython'] |
Beta Was this translation helpful? Give feedback.
-
I wonder if there is some non-printable character, like Windows line endings that is causing a problem. |
Beta Was this translation helpful? Give feedback.
-
|
Good suggestions David. I took a shortcut and just booted a fresh downloaded image and that does not have the problem, so I must have messed up in the last 6 years somewhere.
Correct David pybrick-repl does the auto import and 'brickrun -r -- pybricks-micropython' does not. The base cause of this was a folder Solved. |
Beta Was this translation helpful? Give feedback.
Good suggestions David.
Thanks.
I took a shortcut and just booted a fresh downloaded image and that does not have the problem, so I must have messed up in the last 6 years somewhere.
Correct David pybrick-repl does the auto import and 'brickrun -r -- pybricks-micropython' does not.
The base cause of this was a folder
pybricksin my home. Although PYTHONPATH was empty.Solved.
Thanks David.