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

Envisage and Apptools cron jobs failing to build traits #1721

Closed
corranwebster opened this issue Aug 30, 2022 · 2 comments · Fixed by #1722
Closed

Envisage and Apptools cron jobs failing to build traits #1721

corranwebster opened this issue Aug 30, 2022 · 2 comments · Fixed by #1722
Labels
component: build Issues related to etstool.py, CI and other build machinery resolution: third party This issue is actually a bug elsewhere type: bug

Comments

@corranwebster
Copy link
Contributor

In both cases we are getting the following error:

  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -fPIC -I/home/vagrant/workspace/Buildsystem/python/runtime/core/include/python3.8 -c traits/ctraits.c -o build/temp.linux-x86_64-cpython-38/traits/ctraits.o
  traits/ctraits.c:15:10: fatal error: Python.h: No such file or directory
     15 | #include "Python.h"
        |          ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for traits
ERROR: Could not build wheels for traits, which is required to install pyproject.toml-based projects
Command '['/home/runner/edm/bin/edm', 'run', '-e', 'envisage-test-3.8-null', '--', 'python', '-m', 'pip', 'install', '--force-reinstall', 'git+http://github.com/enthought/traits.git#egg=traits']' returned non-zero exit status 1.

Failures here and here.

@mdickinson
Copy link
Member

This looks like an issue with the latest EDM runtimes: note that rather odd include path (-I/home/vagrant/workspace/Buildsystem/python/runtime/core/include/python3.8). It's affecting other packages with a C extension, too.

I can also reproduce the issue locally on macOS.

@mdickinson
Copy link
Member

Issues confirmed with ibm2ieee and (just for good measure) with pyrsistent. I'll close here and open a buildsystem issue.

@mdickinson mdickinson added component: build Issues related to etstool.py, CI and other build machinery resolution: third party This issue is actually a bug elsewhere type: bug labels Sep 5, 2022
@mdickinson mdickinson closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2022
mdickinson added a commit that referenced this issue Sep 9, 2022
)

There's an incompatibility between setuptools version 65.2 and later and current EDM runtimes. Until that incompatibility is resolved, building Traits (with pip install .) in an EDM environment fails.

As a temporary workaround, we constrain the setuptools version in pyproject.toml.

Should fix #1721.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: build Issues related to etstool.py, CI and other build machinery resolution: third party This issue is actually a bug elsewhere type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants