Skip to content

capnproto: add 0.10.2 #11864

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

Closed
wants to merge 1 commit into from
Closed

Conversation

mologie
Copy link
Contributor

@mologie mologie commented Jul 22, 2022

Specify library name and version: capnproto/0.10.2

This bumps capnproto; existing tests patch was compatible.

Current hooks throw exception [HOOK - conan-center.py] post_package_info(): ERROR: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Exception raised from hook: list indices must be integers or slices, not str (type=TypeError) (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H019), which is exceptionally unhelpful without a stacktrace and I am unable to track down what is causing this. However, the same error already happens before my changes in this PR.


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the conan-center hook activated.

@conan-center-bot conan-center-bot added the Bump version PR bumping version without recipe modifications label Jul 22, 2022
@conan-center-bot

This comment has been minimized.

@mologie
Copy link
Contributor Author

mologie commented Jul 22, 2022

Would appreciate input as to how to track down the hooks failure or get a stacktrace to investigate further. I can look into fixing the preexisting error in this recipe along with this PR so that CI checks pass again.

@SSE4
Copy link
Contributor

SSE4 commented Jul 23, 2022

running with CONAN_VERBOSE_TRACEBACK=1:

[HOOK - conan-center.py] post_package_info(): ERROR: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Exception raised from hook: list indices must be integers or slices, not str (type=TypeError) (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H019) 
ERROR: Traceback (most recent call last):
  File "/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/client/hook_manager.py", line 63, in execute
    method(output=output, **kwargs)
  File "/home/conan/.conan/hooks/conan-center.py", line 149, in wrapper
    ret = func(output, *args, **kwargs)
  File "/home/conan/.conan/hooks/conan-center.py", line 1172, in post_package_info
    @run_test("KB-H019", output)
  File "/home/conan/.conan/hooks/conan-center.py", line 164, in tmp
    ret = func(out)
  File "/home/conan/.conan/hooks/conan-center.py", line 1186, in test
    build_modules.extend(component.build_modules["cmake_find_package"])
TypeError: list indices must be integers or slices, not str

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/errors.py", line 34, in conanfile_exception_formatter
    yield
  File "/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/client/installer.py", line 717, in _call_package_info
    reference=ref)
  File "/opt/pyenv/versions/3.7.13/lib/python3.7/site-packages/conans/client/hook_manager.py", line 65, in execute
    raise ConanException("[HOOK - %s] %s(): %s" % (name, method_name, str(e)))
conans.errors.ConanException: [HOOK - conan-center.py] post_package_info(): list indices must be integers or slices, not str

we need to fix hook @uilianries

@SSE4
Copy link
Contributor

SSE4 commented Jul 23, 2022

it's most likely triggered by the line: https://github.com/conan-io/conan-center-index/blob/master/recipes/capnproto/all/conanfile.py#L224
because, usually, build_modules is dict, but in certain circumstances it isn't.

@uilianries
Copy link
Member

The hotfix conan-io/hooks#439 has been merged. Let's restart this build.

@conan-center-bot
Copy link
Collaborator

Failure in build 2 (6cd59cbd39e4e419e5fd54d1ffcbdf8f8104888d):

  • capnproto/0.10.2@:
    CI failed to create some packages (All logs)

    Logs for packageID 71b63f904464eb14ce3c04ed8b900677bd4a887f:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=10
    os=Linux
    [options]
    capnproto:shared=False
    
    [...]
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
    m4/acx_pthread.m4:66: ACX_PTHREAD is expanded from...
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/m4sugar/m4sh.m4:594: AS_CASE is expanded from...
    configure.ac:70: the top level
    configure.ac:70: warning: The macro `AC_TRY_LINK' is obsolete.
    configure.ac:70: You should run autoupdate.
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
    m4/acx_pthread.m4:66: ACX_PTHREAD is expanded from...
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/m4sugar/m4sh.m4:594: AS_CASE is expanded from...
    configure.ac:70: the top level
    configure.ac:70: warning: The macro `AC_TRY_LINK' is obsolete.
    configure.ac:70: You should run autoupdate.
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/autoconf/general.m4:2894: _AC_LINK_IFELSE is expanded from...
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/autoconf/general.m4:2911: AC_LINK_IFELSE is expanded from...
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
    m4/acx_pthread.m4:66: ACX_PTHREAD is expanded from...
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/m4sugar/m4sh.m4:594: AS_CASE is expanded from...
    configure.ac:70: the top level
    configure.ac:204: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/autoconf/lang.m4:199: AC_LANG_CONFTEST is expanded from...
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from...
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from...
    /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/source_subfolder/lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
    configure.ac:204: the top level
    autoreconf: running: /home/conan/w/prod/BuildSingleReference/.conan/data/autoconf/2.71/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoheader --force
    autoreconf: running: /home/conan/w/prod/BuildSingleReference/.conan/data/automake/1.16.5/_/_/package/258f6f05ca54813b3d7180161753df7f9ccf7e1d/bin/automake --add-missing --copy --force-missing
    configure.ac:65: installing 'build-aux/compile'
    configure.ac:70: installing 'build-aux/config.guess'
    configure.ac:70: installing 'build-aux/config.sub'
    configure.ac:17: installing 'build-aux/install-sh'
    configure.ac:17: installing 'build-aux/missing'
    Makefile.am: installing 'build-aux/depcomp'
    autoreconf: Leaving directory '.'
    ar: `u' modifier ignored since `D' is the default (see `U')
    ar: `u' modifier ignored since `D' is the default (see `U')
    ar: `u' modifier ignored since `D' is the default (see `U')
    ar: `u' modifier ignored since `D' is the default (see `U')
    ar: `u' modifier ignored since `D' is the default (see `U')
    ar: `u' modifier ignored since `D' is the default (see `U')
    ar: `u' modifier ignored since `D' is the default (see `U')
    ar: `u' modifier ignored since `D' is the default (see `U')
    ar: `u' modifier ignored since `D' is the default (see `U')
    ar: `u' modifier ignored since `D' is the default (see `U')
    ar: `u' modifier ignored since `D' is the default (see `U')
    [HOOK - conan-center.py] post_package_info(): ERROR: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Exception raised from hook: list indices must be integers or slices, not str (type=TypeError) (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H019) 
    ERROR: 
    	ConanException: [HOOK - conan-center.py] post_package_info(): list indices must be integers or slices, not str
    

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.

@mologie
Copy link
Contributor Author

mologie commented Jul 27, 2022

The previous build log shows the same error, so I don't believe the hooks update was applied in CI, or the hotfix had no effect?

Thank you for pointing out what is wrong with the recipe regardless. I will try to figure out the author's logic and understand Conan's related features*.

@stale
Copy link

stale bot commented Sep 4, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Oct 8, 2022

This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.

@stale stale bot closed this Oct 8, 2022
@mologie mologie deleted the capnproto-0.10.2 branch January 1, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bump version PR bumping version without recipe modifications Failed stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants