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

Missing python3-dev dependency #25128

Closed
dieselburner opened this issue May 8, 2020 · 4 comments · Fixed by #25129
Closed

Missing python3-dev dependency #25128

dieselburner opened this issue May 8, 2020 · 4 comments · Fixed by #25129
Assignees
Labels
area: Build System bug The issue is a bug, or the PR is fixing a bug

Comments

@dieselburner
Copy link
Contributor

Describe the bug

Failure to install Python dependencies due to missing python3-dev package. Package is not mentioned in Install dependencies.

To Reproduce

  1. Install Ubuntu 20.04 LTS on a machine.
  2. Follow Getting Started Guide
  3. Fail on last step of Get Zephyr and install Python dependencies

Expected behavior

No errors after pip3 install --user -r ~/zephyrproject/zephyr/scripts/requirements.txt.

Impact

Annoyance. Solved via sudo apt install python3-dev.

Screenshots or console output

  ...
  psutil/_psutil_common.c:9:10: fatal error: Python.h: No such file or directory
      9 | #include <Python.h>
        |          ^~~~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for psutil1
  ...

Environment (please complete the following information):

  • OS: Ubuntu 20.04 LTS
  • Toolchain: N/A
  • Commit SHA: 7778c22b6031ae766df7cd08522eb9675a0aeb69
@dieselburner dieselburner added the bug The issue is a bug, or the PR is fixing a bug label May 8, 2020
@carlescufi
Copy link
Member

@dieselburner would you mind sending a PR for this?

@dieselburner
Copy link
Contributor Author

@dieselburner would you mind sending a PR for this?

Yes, give me a moment.

@dieselburner
Copy link
Contributor Author

@carlescufi here you go.

@carlescufi
Copy link
Member

@carlescufi here you go.

Thanks!

carlescufi pushed a commit that referenced this issue May 8, 2020
Linux distro might not have a python3-dev package installed by default,
which will give an error during Python dependencies installation.

Closes #25128.

Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@gmail.com>
hakehuang pushed a commit to hakehuang/zephyr that referenced this issue Jun 20, 2020
Linux distro might not have a python3-dev package installed by default,
which will give an error during Python dependencies installation.

Closes zephyrproject-rtos#25128.

Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@gmail.com>
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants