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

west: diagnose dependency version failures #16545

Closed
pabigot opened this issue Feb 9, 2019 · 4 comments
Closed

west: diagnose dependency version failures #16545

pabigot opened this issue Feb 9, 2019 · 4 comments
Assignees
Labels
area: West West utility Enhancement Changes/Updates/Additions to existing features

Comments

@pabigot
Copy link
Collaborator

pabigot commented Feb 9, 2019

Putting this here because the cause of breakage was a changed Zephyr file; maybe it belongs in west too/instead.

So I happened to update to current master, and did a west update at some point too, and got this with ninja flash:

[blah blah blah]
FileNotFoundError: [Errno 2] No such file or directory: 'pyocd': 'pyocd'

Appears to be due to #12879 expecting a PyOCD release more recent than 0.12.0, which had been working fine and was what I got when I set up for Zephyr only three months ago.

It'd be more user-friendly if, when Zephyr introduces a dependency on an upstream tool interface change, that it would emit a diagnostic when it finds the previous release, including instructions on how to update. I only use pip because Zephyr requires it indirectly, and IMO should not be expected to know how to do this.

For others who get here and my own notes, it's:

pip3 install pyocd -U

which will (today) give you pyocd 0.16.1 and also update a bunch of other things for you at no extra charge.

@nashif
Copy link
Member

nashif commented Feb 9, 2019

legacy names are still supported in pyocd, so west should tried those as well. Moving this to the west issue tracker.

@nashif nashif transferred this issue from zephyrproject-rtos/zephyr Feb 9, 2019
@mbolivar
Copy link
Contributor

legacy names are still supported in pyocd, so west should tried those as well. Moving this to the west issue tracker.

@nashif Please don't do that; the build/flash/debug commands are implemented in the zephyr repository and this issue was filed correctly there.

@mbolivar mbolivar transferred this issue from zephyrproject-rtos/west Jun 2, 2019
@aescolar aescolar added the area: West West utility label Jun 3, 2019
@MaureenHelm MaureenHelm added the Enhancement Changes/Updates/Additions to existing features label Jun 10, 2019
@mbolivar
Copy link
Contributor

I only use pip because Zephyr requires it indirectly, and IMO should not be expected to know how to do this.

Revisiting this, I think Zephyr requires pip quite directly, and understanding it is a reasonable expectation of our users, at least at this time.

Can we close this?

@pabigot
Copy link
Collaborator Author

pabigot commented Dec 19, 2019

I don't really agree that users should be expected how to use pip, but it looks like there's some stuff in beyond-GSG that adds some clues about pip -U. I suppose that's good enough.

@pabigot pabigot closed this as completed Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: West West utility Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

5 participants