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

Can't connect to device with ampy while in virtualenv #1

Open
jgaehring opened this issue Jan 4, 2019 · 0 comments
Open

Can't connect to device with ampy while in virtualenv #1

jgaehring opened this issue Jan 4, 2019 · 0 comments

Comments

@jgaehring
Copy link
Collaborator

Here's what happened when I tried:

(quahog) jamie@xps-13:~/Code/play/quahog-quickstart$ ampy -p /dev/ttyUSB0 ls
Traceback (most recent call last):
  File "/home/jamie/Code/play/quahog-quickstart/quahog/bin/ampy", line 11, in <module>
    sys.exit(cli())
  File "/home/jamie/Code/play/quahog-quickstart/quahog/local/lib/python2.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/jamie/Code/play/quahog-quickstart/quahog/local/lib/python2.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/jamie/Code/play/quahog-quickstart/quahog/local/lib/python2.7/site-packages/click/core.py", line 1134, in invoke
    Command.invoke(self, ctx)
  File "/home/jamie/Code/play/quahog-quickstart/quahog/local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/jamie/Code/play/quahog-quickstart/quahog/local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/jamie/Code/play/quahog-quickstart/quahog/local/lib/python2.7/site-packages/ampy/cli.py", line 99, in cli
    _board = pyboard.Pyboard(port, baudrate=baud, rawdelay=delay)
  File "/home/jamie/Code/play/quahog-quickstart/quahog/local/lib/python2.7/site-packages/ampy/pyboard.py", line 147, in __init__
    raise PyboardError('failed to access ' + device)
ampy.pyboard.PyboardError: failed to access /dev/ttyUSB0

Installing ampy as a global did work... 🤔

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

1 participant