Skip to content

Conversation

@xkong-anaconda
Copy link

@xkong-anaconda xkong-anaconda commented Nov 9, 2025

llama-cpp-python 0.3.16

Destination channel: defaults

Links

Explanation of changes:

Version Update:

  • Updated llama-cpp-python to v0.3.16

External llama.cpp Dependency:

Patches:

  • 0001-Adapt-shared-library-relocation.patch - Enables finding system-installed llama.cpp libraries in conda environments

Build Script:

  • Added recipe/bld.bat for Windows builds with external llama.cpp

Dependency Note:

  • starlette-context >=0.3.6 - Upper bound <0.4 not added because Anaconda defaults only has starlette-context 0.4.0 available (no 0.3.x versions exist)

CUDA Variants

- Update version from 0.2.24 to 0.3.16
- Update SHA256 hash
- Update llama.cpp dependency from 0.0.1660 to 0.0.6653
- Add new dependency: jinja2 >=2.11.3
- Add pyyaml >=5.1 (server dependency)
- Reset build number to 0
@xkong-anaconda xkong-anaconda self-assigned this Nov 9, 2025
@xkong-anaconda xkong-anaconda force-pushed the update-llama-cpp-python-0.3.16 branch from 2f5e0a3 to 9980451 Compare November 11, 2025 18:27
Copy link

@cbouss cbouss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you build the corresponding llama.cpp version in the llama.cpp feedstock instead?
Otherwise we'll end up having a non optimized llama-cpp-python.

@xkong-anaconda
Copy link
Author

Can you build the corresponding llama.cpp version in the llama.cpp feedstock instead? Otherwise we'll end up having a non optimized llama-cpp-python.

The llama.cpp feedstock package is not used due to an API incompatibility issue (llama.cpp feedstock is too new while llama-cpp-python is still old): llama.cpp b6872 removed the llama_get_kv_self() function that llama-cpp-python 0.3.16 depends on. This causes compilation/runtime failures when trying to link against the newer llama.cpp. To use our latest llama.cpp, need to wait llama-cpp-python release a new version compatible.

@cbouss
Copy link

cbouss commented Nov 13, 2025

Can you build the corresponding llama.cpp version in the llama.cpp feedstock instead? Otherwise we'll end up having a non optimized llama-cpp-python.

The llama.cpp feedstock package is not used due to an API incompatibility issue (llama.cpp feedstock is too new while llama-cpp-python is still old): llama.cpp b6872 removed the llama_get_kv_self() function that llama-cpp-python 0.3.16 depends on. This causes compilation/runtime failures when trying to link against the newer llama.cpp. To use our latest llama.cpp, need to wait llama-cpp-python release a new version compatible.

You can build an older version of llama.cpp on the llama.cpp feedstock. The vendored one matches b6173.

@xkong-anaconda xkong-anaconda force-pushed the update-llama-cpp-python-0.3.16 branch from 98b27f0 to 0581df6 Compare December 15, 2025 15:04
Copy link

@cbouss cbouss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can simplify the recipe quite a bit by removing any compiler related portion.
No build occurs, the python code loads llama.cpp at runtime. (I made suggestion but haven't tried a local build, apologies if I made a mistake there.)

You also don't need to do manual builds for cuda, since you don't have a cuda compiler.
However looking at the cuda logs, I see that the solver picked the non cuda variant of llama.cpp. llama.cpp 0.0.6188 needs a rebuild because the cuda variant has the same build number than the cpu variant. Instead, a higher build number should be used to tell the solver to prefer the cuda variant. (Same goes for the metal variant.)

xkong-anaconda and others added 6 commits December 17, 2025 12:21
Co-authored-by: Charles Bousseau <[email protected]>
Co-authored-by: Charles Bousseau <[email protected]>
Co-authored-by: Charles Bousseau <[email protected]>
Co-authored-by: Charles Bousseau <[email protected]>
Co-authored-by: Charles Bousseau <[email protected]>
Co-authored-by: Charles Bousseau <[email protected]>
Co-authored-by: Charles Bousseau <[email protected]>
@package-build-platform
Copy link

Failed to submit graph for 3a68363 Message: Failed to run command: 'pbp generate from-feedstock --output /tmp/tmp270sxn26/llama-cpp-python-feedstock.yaml --custom-metadata-file /tmp/tmp270sxn26/custom_metadata.yaml --release-name llama-cpp-python-feedstock-1-3a683637ffee6d75aa33471e47a84da2a2f262f7 llama-cpp-python-feedstock/recipe', with error: 'INFO:root:Found feedstock llama-cpp-python-feedstock at /tmp/tmp270sxn26/llama-cpp-python-feedstock/recipe INFO:root:Build/Test graph from llama-cpp-python-feedstock Created by sbx_user1051 on 2025-12-17 18:22:46 Command line: /opt/conda/envs/webhook-listener/bin/pbp generate from-feedstock --output /tmp/tmp270sxn26/llama-cpp-python-feedstock.yaml --custom-metadata-file /tmp/tmp270sxn26/custom_metadata.yaml --release-name llama-cpp-python-feedstock-1-3a683637ffee6d75aa33471e47a84da2a2f262f7 llama-cpp-python-feedstock/recipe

INFO:root:Creating graph from feedstock at: llama-cpp-python-feedstock
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = linux-64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.10 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 2 unchanging vars:(452), changing vars (2): ['blas_impl', 'python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
WARNING: Number of parsed outputs does not match detected raw metadata blocks. Identified output block may be wrong! If you are using Jinja conditionals to include or exclude outputs, consider using skip: true # [condition] instead.
INFO:pbpcli.utils.expand_variants:Elapsed time for api.render: 42.33 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = linux-aarch64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.10 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 1 unchanging vars:(452), changing vars (1): ['python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
INFO:pbpcli.utils.common:Setting env var: CONDA_OVERRIDE_GLIBC = 2.28.
INFO:pbpcli.utils.common:Unsetting env var: CONDA_OVERRIDE_GLIBC
INFO:pbpcli.utils.expand_variants:Elapsed time for api.render: 23.01 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = osx-arm64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.10 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 1 unchanging vars:(455), changing vars (1): ['python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
INFO:pbpcli.utils.common:Setting env var: CONDA_OVERRIDE_OSX = 12.1.
INFO:pbpcli.utils.common:Unsetting env var: CONDA_OVERRIDE_OSX
INFO:pbpcli.utils.expand_variants:Elapsed time for api.render: 21.31 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = win-64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.10 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 1 unchanging vars:(457), changing vars (1): ['python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
Traceback (most recent call last):
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1616, in build_number
return int(number)
ValueError: invalid literal for int() with base 10: '0 - $RPATH/ggml-base.dll - $RPATH/ggml-cpu.dll - $RPATH/ggml.dll - -m pip install . -vv --no-deps --no-build-isolation'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/envs/webhook-listener/bin/pbp", line 10, in
sys.exit(cli())
~~~^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1442, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1363, in main
rv = self.invoke(ctx)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1226, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 794, in invoke
return callback(*args, **kwargs)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/cli/generate.py", line 413, in wrapper
return func(*args, **kwargs)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/cli/generate.py", line 624, in from_feedstock
build_configs, test_configs = expand_build_matrix(feedstock.recipe_dir_path, src_channels)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/cli/generate.py", line 79, in expand_build_matrix
_targets, build_configs, test_configs = variants_for_feedstock_and_platform(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
recipe_dir_path, platform, src_channels
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/utils/expand_variants.py", line 544, in variants_for_feedstock_and_platform
metadata_tuples = api.render(
parsed.recipe,
...<2 lines>...
variants=None,
)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/api.py", line 60, in render
metadata_tuples = render_recipe(
recipe_path,
...<4 lines>...
permit_unsatisfiable_variants=permit_unsatisfiable_variants,
)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/render.py", line 1078, in render_recipe
return distribute_variants(
m,
...<3 lines>...
bypass_env_check=bypass_env_check,
)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/render.py", line 967, in distribute_variants
mv.parse_until_resolved(
~~~~~~~~~~~~~~~~~~~~~~~^
allow_no_other_outputs=allow_no_other_outputs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bypass_env_check=bypass_env_check,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1411, in parse_until_resolved
self.parse_again(
~~~~~~~~~~~~~~~~^
permit_undefined_jinja=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
allow_no_other_outputs=allow_no_other_outputs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bypass_env_check=bypass_env_check,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1339, in parse_again
self._get_contents(
~~~~~~~~~~~~~~~~~~^
permit_undefined_jinja,
^^^^^^^^^^^^^^^^^^^^^^^
allow_no_other_outputs=allow_no_other_outputs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bypass_env_check=bypass_env_check,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
),
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 2062, in _get_contents
env.globals.update(get_dict(m=self, skip_build_id=skip_build_id))
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/environ.py", line 372, in get_dict
d.update(meta_vars(m, skip_build_id=skip_build_id))
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/environ.py", line 596, in meta_vars
d["PKG_BUILDNUM"] = str(meta.build_number())
~~~~~~~~~~~~~~~~~^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1618, in build_number
raise ValueError(
f"Build number was invalid value '{number}'. Must be an integer."
)
ValueError: Build number was invalid value '0 - $RPATH/ggml-base.dll - $RPATH/ggml-cpu.dll - $RPATH/ggml.dll - -m pip install . -vv --no-deps --no-build-isolation'. Must be an integer.
'
aws lambda request id: 7cdceb7c-6a82-5416-bf38-8ac09da99a8a
View in Grafana

xkong-anaconda and others added 3 commits December 17, 2025 12:25
Co-authored-by: Charles Bousseau <[email protected]>
Co-authored-by: Charles Bousseau <[email protected]>
Co-authored-by: Charles Bousseau <[email protected]>
@package-build-platform
Copy link

Failed to submit graph for 4366976 Message: Failed to run command: 'pbp generate from-feedstock --output /tmp/tmp7riuw1jh/llama-cpp-python-feedstock.yaml --custom-metadata-file /tmp/tmp7riuw1jh/custom_metadata.yaml --release-name llama-cpp-python-feedstock-1-4366976b18d4fdf6d81e71e2214a2d0e7026cd26 llama-cpp-python-feedstock/recipe', with error: 'INFO:root:Found feedstock llama-cpp-python-feedstock at /tmp/tmp7riuw1jh/llama-cpp-python-feedstock/recipe INFO:root:Build/Test graph from llama-cpp-python-feedstock Created by sbx_user1051 on 2025-12-17 18:25:24 Command line: /opt/conda/envs/webhook-listener/bin/pbp generate from-feedstock --output /tmp/tmp7riuw1jh/llama-cpp-python-feedstock.yaml --custom-metadata-file /tmp/tmp7riuw1jh/custom_metadata.yaml --release-name llama-cpp-python-feedstock-1-4366976b18d4fdf6d81e71e2214a2d0e7026cd26 llama-cpp-python-feedstock/recipe

INFO:root:Creating graph from feedstock at: llama-cpp-python-feedstock
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = linux-64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.10 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 2 unchanging vars:(452), changing vars (2): ['blas_impl', 'python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
WARNING: Number of parsed outputs does not match detected raw metadata blocks. Identified output block may be wrong! If you are using Jinja conditionals to include or exclude outputs, consider using skip: true # [condition] instead.
INFO:pbpcli.utils.expand_variants:Elapsed time for api.render: 41.55 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = linux-aarch64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.11 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 1 unchanging vars:(452), changing vars (1): ['python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
INFO:pbpcli.utils.common:Setting env var: CONDA_OVERRIDE_GLIBC = 2.28.
INFO:pbpcli.utils.common:Unsetting env var: CONDA_OVERRIDE_GLIBC
INFO:pbpcli.utils.expand_variants:Elapsed time for api.render: 21.91 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = osx-arm64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.10 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 1 unchanging vars:(455), changing vars (1): ['python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
INFO:pbpcli.utils.common:Setting env var: CONDA_OVERRIDE_OSX = 12.1.
INFO:pbpcli.utils.common:Unsetting env var: CONDA_OVERRIDE_OSX
INFO:pbpcli.utils.expand_variants:Elapsed time for api.render: 21.47 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = win-64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.10 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 1 unchanging vars:(457), changing vars (1): ['python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
Traceback (most recent call last):
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1616, in build_number
return int(number)
ValueError: invalid literal for int() with base 10: '0 - $RPATH/ggml-cpu.dll - $RPATH/ggml.dll - -m pip install . -vv --no-deps --no-build-isolation'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/envs/webhook-listener/bin/pbp", line 10, in
sys.exit(cli())
~~~^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1442, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1363, in main
rv = self.invoke(ctx)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1226, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 794, in invoke
return callback(*args, **kwargs)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/cli/generate.py", line 413, in wrapper
return func(*args, **kwargs)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/cli/generate.py", line 624, in from_feedstock
build_configs, test_configs = expand_build_matrix(feedstock.recipe_dir_path, src_channels)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/cli/generate.py", line 79, in expand_build_matrix
_targets, build_configs, test_configs = variants_for_feedstock_and_platform(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
recipe_dir_path, platform, src_channels
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/utils/expand_variants.py", line 544, in variants_for_feedstock_and_platform
metadata_tuples = api.render(
parsed.recipe,
...<2 lines>...
variants=None,
)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/api.py", line 60, in render
metadata_tuples = render_recipe(
recipe_path,
...<4 lines>...
permit_unsatisfiable_variants=permit_unsatisfiable_variants,
)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/render.py", line 1078, in render_recipe
return distribute_variants(
m,
...<3 lines>...
bypass_env_check=bypass_env_check,
)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/render.py", line 967, in distribute_variants
mv.parse_until_resolved(
~~~~~~~~~~~~~~~~~~~~~~~^
allow_no_other_outputs=allow_no_other_outputs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bypass_env_check=bypass_env_check,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1411, in parse_until_resolved
self.parse_again(
~~~~~~~~~~~~~~~~^
permit_undefined_jinja=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
allow_no_other_outputs=allow_no_other_outputs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bypass_env_check=bypass_env_check,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1339, in parse_again
self._get_contents(
~~~~~~~~~~~~~~~~~~^
permit_undefined_jinja,
^^^^^^^^^^^^^^^^^^^^^^^
allow_no_other_outputs=allow_no_other_outputs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bypass_env_check=bypass_env_check,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
),
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 2062, in _get_contents
env.globals.update(get_dict(m=self, skip_build_id=skip_build_id))
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/environ.py", line 372, in get_dict
d.update(meta_vars(m, skip_build_id=skip_build_id))
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/environ.py", line 596, in meta_vars
d["PKG_BUILDNUM"] = str(meta.build_number())
~~~~~~~~~~~~~~~~~^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1618, in build_number
raise ValueError(
f"Build number was invalid value '{number}'. Must be an integer."
)
ValueError: Build number was invalid value '0 - $RPATH/ggml-cpu.dll - $RPATH/ggml.dll - -m pip install . -vv --no-deps --no-build-isolation'. Must be an integer.
'
aws lambda request id: 5ef71b5b-3645-527b-9b48-7ae7c1836b58
View in Grafana

@package-build-platform
Copy link

Failed to submit graph for 66d81c0 Message: Failed to run command: 'pbp generate from-feedstock --output /tmp/tmpal4711ai/llama-cpp-python-feedstock.yaml --custom-metadata-file /tmp/tmpal4711ai/custom_metadata.yaml --release-name llama-cpp-python-feedstock-1-66d81c031ae850b2524eddbb46d8fa663f9b7e35 llama-cpp-python-feedstock/recipe', with error: 'INFO:root:Found feedstock llama-cpp-python-feedstock at /tmp/tmpal4711ai/llama-cpp-python-feedstock/recipe INFO:root:Build/Test graph from llama-cpp-python-feedstock Created by sbx_user1051 on 2025-12-17 18:25:29 Command line: /opt/conda/envs/webhook-listener/bin/pbp generate from-feedstock --output /tmp/tmpal4711ai/llama-cpp-python-feedstock.yaml --custom-metadata-file /tmp/tmpal4711ai/custom_metadata.yaml --release-name llama-cpp-python-feedstock-1-66d81c031ae850b2524eddbb46d8fa663f9b7e35 llama-cpp-python-feedstock/recipe

INFO:root:Creating graph from feedstock at: llama-cpp-python-feedstock
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = linux-64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.10 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 2 unchanging vars:(452), changing vars (2): ['blas_impl', 'python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
WARNING: Number of parsed outputs does not match detected raw metadata blocks. Identified output block may be wrong! If you are using Jinja conditionals to include or exclude outputs, consider using skip: true # [condition] instead.
INFO:pbpcli.utils.expand_variants:Elapsed time for api.render: 44.85 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = linux-aarch64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.10 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 1 unchanging vars:(452), changing vars (1): ['python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
INFO:pbpcli.utils.common:Setting env var: CONDA_OVERRIDE_GLIBC = 2.28.
INFO:pbpcli.utils.common:Unsetting env var: CONDA_OVERRIDE_GLIBC
INFO:pbpcli.utils.expand_variants:Elapsed time for api.render: 23.03 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = osx-arm64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.10 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 1 unchanging vars:(455), changing vars (1): ['python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
INFO:pbpcli.utils.common:Setting env var: CONDA_OVERRIDE_OSX = 12.1.
INFO:pbpcli.utils.common:Unsetting env var: CONDA_OVERRIDE_OSX
INFO:pbpcli.utils.expand_variants:Elapsed time for api.render: 21.77 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = win-64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.10 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 1 unchanging vars:(457), changing vars (1): ['python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
Traceback (most recent call last):
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1616, in build_number
return int(number)
ValueError: invalid literal for int() with base 10: '0 - $RPATH/ggml-cpu.dll - -m pip install . -vv --no-deps --no-build-isolation'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/envs/webhook-listener/bin/pbp", line 10, in
sys.exit(cli())
~~~^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1442, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1363, in main
rv = self.invoke(ctx)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1226, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 794, in invoke
return callback(*args, **kwargs)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/cli/generate.py", line 413, in wrapper
return func(*args, **kwargs)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/cli/generate.py", line 624, in from_feedstock
build_configs, test_configs = expand_build_matrix(feedstock.recipe_dir_path, src_channels)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/cli/generate.py", line 79, in expand_build_matrix
_targets, build_configs, test_configs = variants_for_feedstock_and_platform(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
recipe_dir_path, platform, src_channels
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/utils/expand_variants.py", line 544, in variants_for_feedstock_and_platform
metadata_tuples = api.render(
parsed.recipe,
...<2 lines>...
variants=None,
)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/api.py", line 60, in render
metadata_tuples = render_recipe(
recipe_path,
...<4 lines>...
permit_unsatisfiable_variants=permit_unsatisfiable_variants,
)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/render.py", line 1078, in render_recipe
return distribute_variants(
m,
...<3 lines>...
bypass_env_check=bypass_env_check,
)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/render.py", line 967, in distribute_variants
mv.parse_until_resolved(
~~~~~~~~~~~~~~~~~~~~~~~^
allow_no_other_outputs=allow_no_other_outputs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bypass_env_check=bypass_env_check,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1411, in parse_until_resolved
self.parse_again(
~~~~~~~~~~~~~~~~^
permit_undefined_jinja=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
allow_no_other_outputs=allow_no_other_outputs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bypass_env_check=bypass_env_check,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1339, in parse_again
self._get_contents(
~~~~~~~~~~~~~~~~~~^
permit_undefined_jinja,
^^^^^^^^^^^^^^^^^^^^^^^
allow_no_other_outputs=allow_no_other_outputs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bypass_env_check=bypass_env_check,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
),
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 2062, in _get_contents
env.globals.update(get_dict(m=self, skip_build_id=skip_build_id))
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/environ.py", line 372, in get_dict
d.update(meta_vars(m, skip_build_id=skip_build_id))
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/environ.py", line 596, in meta_vars
d["PKG_BUILDNUM"] = str(meta.build_number())
~~~~~~~~~~~~~~~~~^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1618, in build_number
raise ValueError(
f"Build number was invalid value '{number}'. Must be an integer."
)
ValueError: Build number was invalid value '0 - $RPATH/ggml-cpu.dll - -m pip install . -vv --no-deps --no-build-isolation'. Must be an integer.
'
aws lambda request id: fec719b9-8906-5741-93a4-78057ed58bfc
View in Grafana

@package-build-platform
Copy link

Failed to submit graph for be75f42 Message: Failed to run command: 'pbp generate from-feedstock --output /tmp/tmpkix3yi1d/llama-cpp-python-feedstock.yaml --custom-metadata-file /tmp/tmpkix3yi1d/custom_metadata.yaml --release-name llama-cpp-python-feedstock-1-be75f42b2e5213e659a9ec49196f6c932ca4ffb3 llama-cpp-python-feedstock/recipe', with error: 'INFO:root:Found feedstock llama-cpp-python-feedstock at /tmp/tmpkix3yi1d/llama-cpp-python-feedstock/recipe INFO:root:Build/Test graph from llama-cpp-python-feedstock Created by sbx_user1051 on 2025-12-17 18:25:40 Command line: /opt/conda/envs/webhook-listener/bin/pbp generate from-feedstock --output /tmp/tmpkix3yi1d/llama-cpp-python-feedstock.yaml --custom-metadata-file /tmp/tmpkix3yi1d/custom_metadata.yaml --release-name llama-cpp-python-feedstock-1-be75f42b2e5213e659a9ec49196f6c932ca4ffb3 llama-cpp-python-feedstock/recipe

INFO:root:Creating graph from feedstock at: llama-cpp-python-feedstock
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = linux-64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.12 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 2 unchanging vars:(452), changing vars (2): ['blas_impl', 'python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
WARNING: Number of parsed outputs does not match detected raw metadata blocks. Identified output block may be wrong! If you are using Jinja conditionals to include or exclude outputs, consider using skip: true # [condition] instead.
INFO:pbpcli.utils.expand_variants:Elapsed time for api.render: 46.80 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = linux-aarch64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.11 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 1 unchanging vars:(452), changing vars (1): ['python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
INFO:pbpcli.utils.common:Setting env var: CONDA_OVERRIDE_GLIBC = 2.28.
INFO:pbpcli.utils.common:Unsetting env var: CONDA_OVERRIDE_GLIBC
INFO:pbpcli.utils.expand_variants:Elapsed time for api.render: 23.54 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = osx-arm64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.10 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 1 unchanging vars:(455), changing vars (1): ['python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
INFO:pbpcli.utils.common:Setting env var: CONDA_OVERRIDE_OSX = 12.1.
INFO:pbpcli.utils.common:Unsetting env var: CONDA_OVERRIDE_OSX
INFO:pbpcli.utils.expand_variants:Elapsed time for api.render: 23.40 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
INFO:pbpcli.utils.common:Setting env var: CONDA_SUBDIR = win-64.
INFO:pbpcli.utils.expand_variants:Elapsed time for get_package_variants: 0.17 seconds
INFO:pbpcli.utils.expand_variants:Matrix vars: 1 unchanging vars:(457), changing vars (1): ['python']
INFO:pbpcli.utils.expand_variants:Elapsed time for preparation for render: 0.00 seconds
INFO:pbpcli.utils.common:Unsetting env var: CONDA_SUBDIR
Traceback (most recent call last):
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1616, in build_number
return int(number)
ValueError: invalid literal for int() with base 10: '0 - -m pip install . -vv --no-deps --no-build-isolation'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/envs/webhook-listener/bin/pbp", line 10, in
sys.exit(cli())
~~~^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1442, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1363, in main
rv = self.invoke(ctx)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 1226, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/click/core.py", line 794, in invoke
return callback(*args, **kwargs)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/cli/generate.py", line 413, in wrapper
return func(*args, **kwargs)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/cli/generate.py", line 624, in from_feedstock
build_configs, test_configs = expand_build_matrix(feedstock.recipe_dir_path, src_channels)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/cli/generate.py", line 79, in expand_build_matrix
_targets, build_configs, test_configs = variants_for_feedstock_and_platform(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
recipe_dir_path, platform, src_channels
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/pbpcli/utils/expand_variants.py", line 544, in variants_for_feedstock_and_platform
metadata_tuples = api.render(
parsed.recipe,
...<2 lines>...
variants=None,
)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/api.py", line 60, in render
metadata_tuples = render_recipe(
recipe_path,
...<4 lines>...
permit_unsatisfiable_variants=permit_unsatisfiable_variants,
)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/render.py", line 1078, in render_recipe
return distribute_variants(
m,
...<3 lines>...
bypass_env_check=bypass_env_check,
)
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/render.py", line 967, in distribute_variants
mv.parse_until_resolved(
~~~~~~~~~~~~~~~~~~~~~~~^
allow_no_other_outputs=allow_no_other_outputs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bypass_env_check=bypass_env_check,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1411, in parse_until_resolved
self.parse_again(
~~~~~~~~~~~~~~~~^
permit_undefined_jinja=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
allow_no_other_outputs=allow_no_other_outputs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bypass_env_check=bypass_env_check,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1339, in parse_again
self._get_contents(
~~~~~~~~~~~~~~~~~~^
permit_undefined_jinja,
^^^^^^^^^^^^^^^^^^^^^^^
allow_no_other_outputs=allow_no_other_outputs,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bypass_env_check=bypass_env_check,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
),
^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 2062, in _get_contents
env.globals.update(get_dict(m=self, skip_build_id=skip_build_id))
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/environ.py", line 372, in get_dict
d.update(meta_vars(m, skip_build_id=skip_build_id))
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/environ.py", line 596, in meta_vars
d["PKG_BUILDNUM"] = str(meta.build_number())
~~~~~~~~~~~~~~~~~^^
File "/opt/conda/envs/webhook-listener/lib/python3.13/site-packages/conda_build/metadata.py", line 1618, in build_number
raise ValueError(
f"Build number was invalid value '{number}'. Must be an integer."
)
ValueError: Build number was invalid value '0 - -m pip install . -vv --no-deps --no-build-isolation'. Must be an integer.
'
aws lambda request id: ca1ea4c5-a521-5cb5-b051-c57952f77008
View in Grafana

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 this pull request may close these issues.

6 participants