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

Windows CI Mid October 2023 - YARP compilation failure and CMake find wrong non-conda Python executable #1505

Closed
traversaro opened this issue Oct 19, 2023 · 2 comments · Fixed by #1509

Comments

@traversaro
Copy link
Member

See robotology/yarp#3031 .

@traversaro
Copy link
Member Author

See robotology/yarp#3031 .

This is only one problem that emerged. A second problem that emerged is for some reason the wrong Python version is found by CMake, i.e. not the conda one, but one installed by the GitHub Action image:

2023-10-19T02:25:21.1169465Z -- Found Python3: C:/hostedtoolcache/windows/Python/3.12.0/x64/python3.exe (found version "3.12.0") found components: Interpreter 
2023-10-19T02:25:21.1616387Z Traceback (most recent call last):
2023-10-19T02:25:21.1617566Z   File "<string>", line 1, in <module>
2023-10-19T02:25:21.1618470Z ModuleNotFoundError: No module named 'distutils'

That eventually fails with a reason related to #1238 and #1371 . However, the problem is that the non-conda Python is found.

@traversaro traversaro changed the title Windows CI Mid October 2023 Windows CI Mid October 2023 - YARP compilation failure and CMake find wrong non-conda Python executable Oct 22, 2023
traversaro added a commit that referenced this issue Oct 22, 2023
The main reason to do so is to ensure that https://cmake.org/cmake/help/latest/policy/CMP0094.html#policy:CMP0094 is set to NEW and fix the Python part of #1505 .
@traversaro
Copy link
Member Author

See robotology/yarp#3031 .

This was fixed, thanks @randaz81 ! Now th only remaining issue is the wrong python being found, I tried to tackle this in #1506 but this introduces a macos regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant