conan-center-index icon indicating copy to clipboard operation
conan-center-index copied to clipboard

google-cloud-cpp/all: disable werror

Open hoyhoy opened this issue 1 year ago • 15 comments

google-cloud-cpp/all

There are various problems with warning as errors.

I'm already ignoring....

 -Wno-dangling-reference -Wno-elaborated-type-specifier -Wno-deprecated-declarations -Wno-elaborated-type-specifier 

This is the latest issues...

internal/streaming_subscription_batch_source.cc:141:29: error: redundant move in initialization [-Werror=redundant-move]
  141 |     OnInitialError(std::move(rs));

hoyhoy avatar Dec 18 '23 17:12 hoyhoy

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

:white_check_mark: uilianries
:white_check_mark: memsharded
:x: Tony Perrie


Tony Perrie seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Dec 18 '23 17:12 CLAassistant

:robot: Beep Boop! This pull request is making changes to 'recipes/boost//'.

:wave: @grafikrobot @Hopobcn @jwillikers you might be interested. :wink:

github-actions[bot] avatar Dec 18 '23 17:12 github-actions[bot]

Conan v1 pipeline :x:

Failure in build 2 (97c7d89c52b010bd6ef1cea53f2e0c2d1163c285):

  • google-cloud-cpp/1.26.1: Error running command conan info google-cloud-cpp/1.26.1@#90025664773ab1aeae2a67dfb05f5e2c --json {jsonName} -pr {profileName}:

    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=5
    os=Linux
    [options]
    google-cloud-cpp:shared=False
    
    ...
    WARN: grpc/1.45.2: requirement openssl/1.1.1o overridden by google-cloud-cpp/1.26.1 to openssl/1.1.1n 
    WARN: grpc/1.45.2: requirement protobuf/3.21.1 overridden by google-cloud-cpp/1.26.1 to protobuf/3.20.0 
    WARN: protobuf/3.20.0: requirement zlib/[>=1.2.11 <2] overridden by grpc/1.45.2 to zlib/1.2.12 
    ERROR: protobuf/3.20.0: Incompatible requirements obtained in different evaluations of 'requirements'
        Previous requirements: [zlib/1.3]
        New requirements: [zlib/1.2.12]
    
  • google-cloud-cpp/1.30.1: Didn't run or was cancelled before finishing

  • google-cloud-cpp/1.40.1: Didn't run or was cancelled before finishing

  • google-cloud-cpp/1.27.0: Didn't run or was cancelled before finishing

  • google-cloud-cpp/1.31.1: Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline :x:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 2 (97c7d89c52b010bd6ef1cea53f2e0c2d1163c285):

  • google-cloud-cpp/1.26.1: Error running command conan export --name google-cloud-cpp --version 1.26.1 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • google-cloud-cpp/1.27.0: Error running command conan export --name google-cloud-cpp --version 1.27.0 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • google-cloud-cpp/1.30.1: Error running command conan export --name google-cloud-cpp --version 1.30.1 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • google-cloud-cpp/1.40.1: Error running command conan export --name google-cloud-cpp --version 1.40.1 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • google-cloud-cpp/1.31.1: Error running command conan export --name google-cloud-cpp --version 1.31.1 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

conan-center-bot avatar Dec 18 '23 17:12 conan-center-bot

@hoyhoy Hello! Please, describe better your situation. This project is built in Conan Center and does not break because of -Werror flag. Please, use the issue form for Bug report in https://github.com/conan-io/conan-center-index/issues/ to give us all information needed.

uilianries avatar Jan 08 '24 16:01 uilianries

@uilianries I ended up having to fork the google-cloud-cpp v1.X recipe. It's not conan2 compatible. In fact, we had to fork nearly all of our recipes because nearly all of the conan center recipes have bugs, don't build on s/390, don't build on clang17 with warnings enabled, don't build on windows, and so on. I was going to try to port some of this upstream, but it takes three to four weeks to get PRs reviewed on conan-center.

hoyhoy avatar Jan 09 '24 17:01 hoyhoy

@uilianries And I don't see why you'd want to have Werror on for a production build. These C++ warnings are all over the place depending on what compiler and OS you happen to be using. Basically, what you just told me is, "WORKS ON MY MACHINE!". Ok, great, but did you test it s/390, windows, clang 17, gcc 13.2, macos arm, gcc 8.5, AIX, and MSVC? Because I have, and I can 100% assure Werror does not work on all of those platforms.

hoyhoy avatar Jan 09 '24 17:01 hoyhoy

Conan v1 pipeline :x:

Failure in build 3 (e72da14498471ab93b3725d47b3c3b260a00a8fd):

  • google-cloud-cpp/1.26.1: Error running command conan info google-cloud-cpp/1.26.1@#90025664773ab1aeae2a67dfb05f5e2c --json {jsonName} -pr {profileName}:

    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=5
    os=Linux
    [options]
    google-cloud-cpp:shared=False
    
    ...
    WARN: grpc/1.45.2: requirement openssl/1.1.1o overridden by google-cloud-cpp/1.26.1 to openssl/1.1.1n 
    WARN: grpc/1.45.2: requirement protobuf/3.21.1 overridden by google-cloud-cpp/1.26.1 to protobuf/3.20.0 
    WARN: protobuf/3.20.0: requirement zlib/[>=1.2.11 <2] overridden by grpc/1.45.2 to zlib/1.2.12 
    ERROR: protobuf/3.20.0: Incompatible requirements obtained in different evaluations of 'requirements'
        Previous requirements: [zlib/1.3.1]
        New requirements: [zlib/1.2.12]
    
  • google-cloud-cpp/1.27.0: Didn't run or was cancelled before finishing

  • google-cloud-cpp/1.31.1: Didn't run or was cancelled before finishing

  • google-cloud-cpp/1.40.1: Didn't run or was cancelled before finishing

  • google-cloud-cpp/1.30.1: Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline :x:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 3 (e72da14498471ab93b3725d47b3c3b260a00a8fd):

  • google-cloud-cpp/1.26.1: Error running command conan export --name google-cloud-cpp --version 1.26.1 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • google-cloud-cpp/1.27.0: Error running command conan export --name google-cloud-cpp --version 1.27.0 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • google-cloud-cpp/1.30.1: Error running command conan export --name google-cloud-cpp --version 1.30.1 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • google-cloud-cpp/1.31.1: Error running command conan export --name google-cloud-cpp --version 1.31.1 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    
  • google-cloud-cpp/1.40.1: Error running command conan export --name google-cloud-cpp --version 1.40.1 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/w/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/__init__.py)
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

conan-center-bot avatar Jan 27 '24 18:01 conan-center-bot

@hoyhoy Your PR can be genuine, but when I asked to open the issue is because your PR has no issue associated and was not clear enough about your error. It's true we can not test all users configurations in the CI, but it does not block from merging fixes, since it's well documented, including with a build log where we consult, not only a prove, in case needing to revisit it in the future.

There is a second problem regarding this recipe: It's not ported to Conan 2.x yet, and the CI requires it as a mandatory rule. We will need to open a separated PR to update his recipe. Anyway, we could merge it manually in case not passing.

Also, could you please check the account reserved to Tony Perrie, this used needs to sign the CLA too.

uilianries avatar Jan 30 '24 11:01 uilianries

An issue could be opened, but this fix looks quite trivial to me, and we all know that warnings as errors must not be enabled in conancenter recipes.

FYI, warnings as errors are disabled by default in google-cloud-cpp since https://github.com/googleapis/google-cloud-cpp/pull/10819 (2.8.0).

By the way, GOOGLE_CLOUD_CPP_ENABLE_CCACHE should also be turned OFF (default value is ON until above PR).

Anyway google-cloud-cpp < 2.x has to be ported to conan v2 first.

SpaceIm avatar Jan 30 '24 12:01 SpaceIm

conan v2 migration: https://github.com/conan-io/conan-center-index/pull/22591

SpaceIm avatar Jan 30 '24 13:01 SpaceIm

Conan v1 pipeline :x:

Failure in build 1 (3d8853f1c4df3af6a7bcf4666676f6a005fa756c):

  • google-cloud-cpp/1.26.1: Error running command conan info google-cloud-cpp/1.26.1@#90025664773ab1aeae2a67dfb05f5e2c --json {jsonName} -pr {profileName}:

    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=5
    os=Linux
    [options]
    google-cloud-cpp:shared=False
    
    ...
    WARN: grpc/1.45.2: requirement openssl/1.1.1o overridden by google-cloud-cpp/1.26.1 to openssl/1.1.1n 
    WARN: grpc/1.45.2: requirement protobuf/3.21.1 overridden by google-cloud-cpp/1.26.1 to protobuf/3.20.0 
    WARN: protobuf/3.20.0: requirement zlib/[>=1.2.11 <2] overridden by grpc/1.45.2 to zlib/1.2.12 
    ERROR: protobuf/3.20.0: Incompatible requirements obtained in different evaluations of 'requirements'
        Previous requirements: [zlib/1.3.1]
        New requirements: [zlib/1.2.12]
    
  • google-cloud-cpp/1.27.0: Didn't run or was cancelled before finishing

  • google-cloud-cpp/1.30.1: Didn't run or was cancelled before finishing

  • google-cloud-cpp/1.31.1: Didn't run or was cancelled before finishing

  • google-cloud-cpp/1.40.1: Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline :x:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 1 (3d8853f1c4df3af6a7bcf4666676f6a005fa756c):

  • google-cloud-cpp/1.26.1: Error running command conan export --name google-cloud-cpp --version 1.26.1 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.17/lib/python3.7/site-packages/conans/__init__.py)
    
  • google-cloud-cpp/1.27.0: Error running command conan export --name google-cloud-cpp --version 1.27.0 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.17/lib/python3.7/site-packages/conans/__init__.py)
    
  • google-cloud-cpp/1.30.1: Error running command conan export --name google-cloud-cpp --version 1.30.1 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.17/lib/python3.7/site-packages/conans/__init__.py)
    
  • google-cloud-cpp/1.31.1: Error running command conan export --name google-cloud-cpp --version 1.31.1 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.17/lib/python3.7/site-packages/conans/__init__.py)
    
  • google-cloud-cpp/1.40.1: Error running command conan export --name google-cloud-cpp --version 1.40.1 recipes/google-cloud-cpp/all/conanfile.py:

    ======== Exporting recipe to the cache ========
    ERROR: Error loading conanfile at '/home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py': Unable to load conanfile in /home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/conan/workspace/prod-v2_cci_PR-21808/recipes/google-cloud-cpp/all/conanfile.py", line 5, in <module>
        from conans import ConanFile, CMake, tools
    ImportError: cannot import name 'ConanFile' from 'conans' (/opt/pyenv/versions/3.7.17/lib/python3.7/site-packages/conans/__init__.py)
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

conan-center-bot avatar Apr 11 '24 15:04 conan-center-bot

@hoyhoy there are commits here not signing the CLA, could you please verify it? We are trying to merge this by hand, even if not passing CI because of the old 1.X versions not ported yet to Conan2.

memsharded avatar Apr 16 '24 21:04 memsharded

Yeah, it was easier just to fork the recipe. I signed the CLA three times. I think there was some issue with my corporate email being in my .gitconfig previously, but I thought I fixed it. Eventually I just gave up.

hoyhoy avatar Apr 17 '24 04:04 hoyhoy

Yeah, it was easier just to fork the recipe. I signed the CLA three times. I think there was some issue with my corporate email being in my .gitconfig previously, but I thought I fixed it. Eventually I just gave up.

Ok, we were trying to force-merge this by hand, we can bypass the CI, but we cannot bypass the CLA. If you are not interested in this anymore, I think we can close the PR. If you would like the PR to be merged, please try to sign the CLA, and lets see if this time we succeed.

memsharded avatar Apr 17 '24 15:04 memsharded

V1 is EOL anyway. We have a library still using the cloud storage component that we still haven't upgraded.

hoyhoy avatar Apr 17 '24 15:04 hoyhoy

Closing in favour of https://github.com/conan-io/conan-center-index/pull/22591 which already ahs done the Conan v2 support work

AbrilRBS avatar Oct 02 '24 11:10 AbrilRBS