question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyenv built executables might not be backwards portable, e.g. executable created on macOS 13 cannot be run on macOS 12

See original GitHub issue

Hi - I’m unable to find a reference to this in the Nuitka issues nor documentation, but apologies if I missed it and feel free to point me at it.

When creating an executable on (example) macOS 13 Ventura, I cannot run it on any version below, for example on macOS 12 Monterey - getting:

You can't use this version of the application ... with this version of macOS. You have macOS 12.5.1. This application requires macOS 13.0 or later.

Is this an option that can be tweaked within Nuitka? Or does this simply come down to a limitation when compiling anything on macOS?

Appreciate any guidance, thank you.

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Maxwell175commented, Dec 15, 2022

I have had success building with support for macOS 10.9 on macOS 12. I did use a custom built version of python and I made sure to always have -mmacosx-version-min=10.9 in CFLAGS, CXXFLAGS and LDFLAGS while building python and my app using Nuitka. It is likely that you will not need to compile python from source and just a version from python.org will suffice. Depending on how far back you want to support you might need to go with an Intel-only python if you want to support older than 11 if I recall. In any case it is not recommended to use the version of python that comes with your macOS install.

Please make sure to post the output of python -m nuitka --version if you would like further assistance.

0reactions
kayhayencommented, Dec 15, 2022

You would have to configure your pyenv to build binaries for older macOS, or build it on old macOS. For what I know, it is not intended for deploying applications. Instead use CPython, which is the one listed as supported in the manual. Using pyenv on older macOS will probably make it work on that or higher, but e.g. CPython allows 10.9 or higher for deployment. And you can build on new macOS, you just have to pick the intel arch during build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install any python versions with pyenv in MacOS 11 ...
I am on an M1 Mac, and installed pyenv, and the python3 dependencies, via homebrew following the installation instructions. pyenv install 3.8.12 python-build: ......
Read more >
Not Able to Build Some Versions of Python on M1 at 12.3.1
I trying to build older version of python such as 3.6, 3.7, 3.8 using pyenv and having build failures. I am on apple...
Read more >
Issues installing Python 3.8.10 on macOS 12.3 Monterey
Any version I try to install using pyenv install gives me this error: python-build: use openssl@1.1 from homebrew python-build: use readline ...
Read more >
What Are Python Wheels and Why Should You Care?
It may sound backward, but a good way to learn how wheels work is to start by installing something that isn't a wheel....
Read more >
How to use pyenv to run multiple versions of Python on a Mac
Recently, I tried to run a project on macOS that depended on Python 3.5.9, a version that I did not have installed on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found