Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

'write-a-composition-function-in-python' guide doc doesn't work

Open
#1,000 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
documentation

Research direction

Start with the guide at https://docs.crossplane.io/latest/guides/write-a-composition-function-in-python/ and reproduce the commands through hatch run development using function-template-python. Check whether the documented example or generated template causes the protobuf warnings and Cannot run function error; done means the example runs successfully or the guide clearly documents the required fix.

Written by the indexing model from the issue text.

Description

bug
URL

https://docs.crossplane.io/latest/guides/write-a-composition-function-in-python/

What's Wrong?

I followed each and every instruction mentioned there from using command 'crossplane xpkg init function-xbuckets https://github.com/crossplane/function-template-python -d function-xbuckets' to create a folder till 'hatch run development' but the example never works.

Errors I get:
function-xbuckets.venv-default\Lib\site-packages\google\protobuf\runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.0 is exactly one major version older than the runtime version 6.31.1 at crossplane/function/proto/v1/run_function.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
warnings.warn(
function-xbuckets.venv-default\Lib\site-packages\google\protobuf\runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.0 is exactly one major version older than the runtime version 6.31.1 at crossplane/function/proto/v1beta1/run_function.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
warnings.warn(
Cannot run function:

I request either update the example or fix the docs.

Also if I am missing something then please let me know. 😁

Dominant language
SCSS
Stars
60
Forks
163
Avg merge
5d 6h
Merged PRs (30d)
1

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from crossplane/docs

All issues in crossplane/docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.