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

Python.h missing on 3.9 and 3.10 #1006

Open
2 of 5 tasks
mkcms opened this issue Jan 10, 2025 · 0 comments
Open
2 of 5 tasks

Python.h missing on 3.9 and 3.10 #1006

mkcms opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@mkcms
Copy link

mkcms commented Jan 10, 2025

Description:
A few days ago my builds with Python 3.9 and 3.10 broke due to a missing Python.h include in one of the dependent packages that I build during the process. The same setup builds fine for 3.11, 3.12 and 3.13, and it used to work before that for 3.9 and 3.10 as well.

As far as I know, no changes were made to the dependent package.

Example failing job: https://github.com/mkcms/bdx/actions/runs/12715895623/job/35449032864

A successful build from a week ago: https://github.com/mkcms/bdx/actions/runs/12610330973/job/35144803933

Action version:
Latest master

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

  • 3.9
  • 3.10

Repro steps:
Try to compile a C Python extension that uses Python.h header.

Expected behavior:
No error.

Actual behavior:
The Python.h header can't be found.

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../python3 -I.. -I/opt/hostedtoolcache/Python/3.10.15/x64/include/python3.10 -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c ../../python3/xapian_wrap.cc  -fPIC -DPIC -o .libs/xapian_wrap.o
../../python3/xapian_wrap.cc:20:10: fatal error: Python.h: No such file or directory
   20 | #include <Python.h>
@mkcms mkcms added bug Something isn't working needs triage labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant