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

Does not respect python virtualenv #28723

Closed
benjizhai opened this issue Sep 28, 2020 · 2 comments
Closed

Does not respect python virtualenv #28723

benjizhai opened this issue Sep 28, 2020 · 2 comments
Assignees
Labels
area: Build System bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@benjizhai
Copy link

Describe the bug
When I run west build from virtualenv, it still detects system python instead of the virtualenv one.

To Reproduce
Steps to reproduce the behavior:

  1. activate python venv
  2. west build -b auto -b nrf52840dongle_nrf52840 samples/basic/blinky

Logs and console output
[1/125] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h FAILED: zephyr/include/generated/kobj-types-enum.h zephyr/include/generated/otype-to-str.h cd /home/benji/proj/zephyr/zephyr/build/zephyr && /usr/bin/python3.8 /home/benji/proj/zephyr/zephyr/scripts/gen_kobject_list.py --kobj-types-output /home/benji/proj/zephyr/zephyr/build/zephyr/include/generated/kobj-types-enum.h --kobj-otype-output /home/benji/proj/zephyr/zephyr/build/zephyr/include/generated/otype-to-str.h --kobj-size-output /home/benji/proj/zephyr/zephyr/build/zephyr/include/generated/otype-to-size.h --include /home/benji/proj/zephyr/zephyr/build/zephyr/misc/generated/struct_tags.json Traceback (most recent call last): File "/home/benji/proj/zephyr/zephyr/scripts/gen_kobject_list.py", line 62, in import elftools ModuleNotFoundError: No module named 'elftools'

Environment (please complete the following information):

  • Ubuntu 20.04
@benjizhai benjizhai added the bug The issue is a bug, or the PR is fixing a bug label Sep 28, 2020
@galak
Copy link
Collaborator

galak commented Sep 29, 2020

@tejlmand / @mbolivar-nordic thoughts?

@MaureenHelm MaureenHelm added area: Build System priority: low Low impact/importance bug labels Sep 29, 2020
@mbolivar-nordic
Copy link
Contributor

dupe of zephyrproject-rtos/west#443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Build System bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants