Closed Todiq closed 2 weeks ago
Thanks for your report @Todiq
I am trying to reproduce with your repo code, but my build is failing at an earlier stage, while building "boost":
boost/1.85.0: RUN: "C:/Users/memsharded/Envs/conan2_310/Scripts/python.exe" -c "from __future__ import print_function; import sys; print('{}.{}'.format(sys.version_info[0], sys.version_info[1]))"
boost/1.85.0: WARN: Boost component 'numpy' is missing libraries. Try building boost with '-o boost:without_numpy'. (Option is not guaranteed to exist)
ERROR: boost/1.85.0: Error in package_info() method, line 1997
raise ConanException(f"These libraries were expected to be built, but were not built: {non_built}")
ConanException: These libraries were expected to be built, but were not built: {'boost_numpy310'}
No idea why this is happening, I'd need to investigate
@memsharded,
I am using python 3.9.13 on my side, but I don’t think that will differ much from your version
Boost (recipe?) expects to have numpy installed (of course, I know you’re not blind).
The only workaround I found so far for this is to install it in the (virtual) environment. But here’s the catch: I never made it work with a version > 1.26.4. Meaning that starting from numpy version 2.0.0 and upwards, I would get the same error as yours (if my memory is correct). Could you please try with 1.26.4?
You error looks like the one mentionned here: https://github.com/conan-io/conan/issues/11241
@memsharded @valgur
Do you think it might be related to https://github.com/conan-io/conan/issues/16952 ?
Hi @memsharded,
Would you mind having a look again when you have some time please? I know you must be very busy. Thanks in advance.
@memsharded,
Do you think that ticket would better fit in the conan-center repo?
I added more precise instructions to reproduce here: https://github.com/conan-io/conan-center-index/issues/25463
Fixed thanks to https://github.com/conan-io/conan-center-index/issues/25463
I am very sorry about not being able to track this properly and follow up. Indeed it is very challenging sometimes, specially when it involves too recipes in ConanCenter (issues that can be isolated to the Conan client are easier to manage, so they can be prioritized differently too sometimes).
Thanks very much for your feedback and your follow ups on conan-center-index too.
What is your question?
Hello,
I am not really sure in which repo to create this ticket, since I don't know if it comes from a recipe's misuse or a conan client misuse (or something else).
I have a library
alpha
and a librarybeta
that depends on it. Both need to link with boost python. Asboost python
is not set to automatically gathercpython
, I would like to get it through theconanfile
, rather than using the system one.Here is an example : https://github.com/Todiq/test_conan
You juste have to run
python build.py
. I only tested it on Windows. \ \ While the build ofalpha
passes, it fails onbeta
:\ \ \ Replacing
find_package(Python COMPONENTS Development QUIET)
withfind_package(Python3 COMPONENTS Development QUIET)
inbeta
's cmake removes the initial warning, but does not fix the issue (no warning inalpha
though). \ \ Inbeta
's recipe, I tried usingself.requires("cpython/3.9.19", override=True)
instead of the regularself.requires("cpython/3.9.19")
as well, but that would not fix the issue either. \ \ Am I missing something? Thanks in advance for your help!Have you read the CONTRIBUTING guide?