-
Notifications
You must be signed in to change notification settings - Fork 113
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
ImportError: No module named 'commands' #57
Comments
@erwango thanks for the report! Actually 'commands' is an internal west module, we're just playing tricks with PYTHONPATH to import it without the 'west.commands' full qualifier. I think this is confusing and we should be importing all west module as west.xxx. Let me send a patch making that happen. |
Ok, so questin is how I ended up with this error then.
|
Ah, I bet this is our README's fault. Did you 'pip install west==0.2.0rc2'? Right now we are in the prerelease period for 0.2.0 so the default release on pypi -- 0.1.0 -- may no longer be working. |
Indeed, I should be on the earlier one. |
We are getting user feedback about missing dependencies (like "commands" and "log") that are actually imports of internal west modules by those names. We've been playing games with the python path to omit typing "west", but this always caused inconsistency (as the bootstrapper version is imported as west._bootstrap.version) and now it's causing outright user confusion. Let's just be consistent and import everything as west.xxx. Fixes zephyrproject-rtos#57. Signed-off-by: Marti Bolivar <marti@foundries.io>
We are getting user feedback about missing dependencies (like "commands" and "log") that are actually imports of internal west modules by those names. We've been playing games with the python path to omit typing "west", but this always caused inconsistency (as the bootstrapper version is imported as west._bootstrap.version) and now it's causing outright user confusion. Let's just be consistent and import everything as west.xxx. Fixes zephyrproject-rtos#57. Signed-off-by: Marti Bolivar <marti@foundries.io>
When running west fetch, I get the following error:
from commands import CommandContextError ImportError: No module named 'commands'Looking out on the web, i didn't found a way to install it, but ways not to use it:
yunabe/lgo#42
And according to https://bbs.archlinux.org/viewtopic.php?id=125971, "module is deprecated and should be replaced by subprocess"
The text was updated successfully, but these errors were encountered: