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

Better serial/port error message #48

Open
nofxx opened this issue Sep 21, 2016 · 1 comment
Open

Better serial/port error message #48

nofxx opened this issue Sep 21, 2016 · 1 comment

Comments

@nofxx
Copy link

nofxx commented Sep 21, 2016

In a first use, lost some minutes figuring out this error... Thought it was some OS issue.

Traceback (most recent call last):
  File "/usr/bin/luatool.py", line 192, in <module>
    transport = decidetransport(args)
  File "/usr/bin/luatool.py", line 168, in decidetransport
    return SerialTransport(cliargs.port, cliargs.baud, cliargs.delay)
  File "/usr/bin/luatool.py", line 97, in __init__
    raise TransportError(e.strerror)
__main__.TransportError

Suggestion:

NO TTY: Please provide --port. Eg: /dev/ttyUSB*

PS.: A nice bet to detect tty is check for platform, linux: /dev/ttyUSB* mac: /dev/tty.usbmodel*
Thanks for the gem!
PS2: Thank you for this, great tool!

@nofxx nofxx changed the title No serial/port error message Better serial/port error message Sep 21, 2016
@siddharthsingh
Copy link

Use the command with sudo

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

2 participants