find: /usr/bin/echo: No such file or directory

Open
#3,404 1 comment 2 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@AndreMiras is already working on this.

Since Nov 2, 2026.

  • #3406 by @AndreMiras — open

Assessment

This issue has not been assessed yet.

Description

pythonforandroid/recipe.py contains:

    def strip_object_files(self, arch, env, build_dir=None):
        if build_dir is None:
            build_dir = self.get_build_dir(arch.arch)
        with current_directory(build_dir):
            info('Stripping object files')
            shprint(sh.find, '.', '-iname', '*.so', '-exec',
                    '/usr/bin/echo', '{}', ';', _env=env)
            shprint(sh.find, '.', '-iname', '*.so', '-exec',
                    env['STRIP'].split(' ')[0], '--strip-unneeded',
                    # '/usr/bin/strip', '--strip-unneeded',
                    '{}', ';', _env=env)

But on macOS Big Sur, there is no /usr/bin/echo

% which echo
echo: shell built-in command

% ls -l /bin/echo /usr/bin/echo
ls: /usr/bin/echo: No such file or directory
-rwxr-xr-x  1 root  wheel  120848 17 jan  2026 /bin/echo*

When building, this produces the error:

[INFO]:    Stripping object files
[DEBUG]:   -> running find . -iname *.so -exec /usr/bin/echo {} ;
[DEBUG]:   	find: /usr/bin/echo: No such file or directory
Dominant language
Python
Stars
8.9k
Forks
2.1k
Avg merge
2d 16h
Merged PRs (30d)
12

Getting set up

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 kivy/python-for-android

All issues in kivy/python-for-android

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.