conan-io / meta-conan

Yocto layer for the Conan project
23 stars 28 forks source link

Unable to connect to conancenter #49

Open AbhishankarBM opened 8 months ago

AbhishankarBM commented 8 months ago

I am using meta-conan with my yocto sdk and when I try to do the below in in yocto recipe, conan install --requires=mosquitto/1.4.15@bincrafters/stable --profile default -of /home/user

I am getting an error which says,

| ======== Computing dependency graph ======== | mosquitto/1.4.15@bincrafters/stable: Not found in local cache, looking in remotes... | mosquitto/1.4.15@bincrafters/stable: Checking remote: conancenter | Graph root | cli | ERROR: Package 'mosquitto/1.4.15@bincrafters/stable' not resolved: HTTPSConnectionPool(host='center.conan.io', port=443): Max retries exceeded with url: /v1/ping (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb5a7f33d30>, 'Connection to center.conan.io timed out. (connect timeout=30)'))

memsharded commented 8 months ago

There are 2 issues there:

AbhishankarBM commented 8 months ago
memsharded commented 8 months ago

Ok, this might be related to the yocto setup, and Conan Python interpreter picking some libraries, openssl or something from yocto instead of the correct one, and then failing because of that. I'd suggest reporting how you installed Conan, and then maybe trying to use the self-contained Conan executable that can be downloaded from https://conan.io/downloads, and try with it.

AbhishankarBM commented 8 months ago

-This is my .bb file

inherit conan

DESCRIPTION = "An open source MQTT broker"
LICENSE = "EPL-2.0"

CONAN_PKG = "mosquitto/2.0.15"

do_install() {
    conan remote enable conancenter
    conan install --requires=mosquitto/2.0.15 --profile default -of /home/user/
}