Code Monkey home page Code Monkey logo

Comments (4)

mbolivar avatar mbolivar commented on May 27, 2024

@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.

from west.

erwango avatar erwango commented on May 27, 2024

Ok, so questin is how I ended up with this error then.
For info, here is what I got:

$ west fetch
Traceback (most recent call last):
  File "/local/home/frq07517/.local/bin/west", line 11, in <module>
    sys.exit(main())
  File "/local/home/frq07517/.local/lib/python3.5/site-packages/bootstrap/main.py", line 206, in main
    wrap(wrap_argv)
  File "/local/home/frq07517/.local/lib/python3.5/site-packages/bootstrap/main.py", line 191, in wrap
    main_module = importlib.import_module('west.main')
  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 665, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/local/mcu/zephyr/tmp/zep3/west/src/west/main.py", line 19, in <module>
    from commands import CommandContextError
ImportError: No module named 'commands'

from west.

mbolivar avatar mbolivar commented on May 27, 2024

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.

from west.

erwango avatar erwango commented on May 27, 2024

Indeed, I should be on the earlier one.
Let me clean this up and get back to you.

from west.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.