Git Product home page Git Product logo

Comments (5)

LorenEteval avatar LorenEteval commented on June 20, 2024 2

Sorry @kayhayen , but I cannot reproduce this on arm64 macOS (specifically mac mini, having Homebrew on PATH).

I did a quick test based on runners using Github Actions. According to Github Document, macos-11, macos-12 and macos-13 are x86_64-based of macOS, while macos-14 is arm64-based of macOS. Then just define job steps to run the exact build procedure this issue addressed before on the OS-matrix. The test result is here.

As you can see, for jobs on macos-14, which have Homebrew in PATH (verified by Get Homebrew version step, the same on other OS), but nuitka didn't give any errors. However for jobs on x86_64-based macOS, the job succeeded with nuitka 1.8.6, but not with nuitka 1.9 and nuitka 2.2.1, and gave the error this issue aimed to report.

Does that mean this is an exception specifically for x86_64-based macOS? Should I continue on this issue or reopen another?

from nuitka.

kayhayen avatar kayhayen commented on June 20, 2024

It seems you have Homebrew in PATH, don't do that. For CPython, Nuitka will pick up system DLLs and believe this one to be necessary.

from nuitka.

twstagg avatar twstagg commented on June 20, 2024

@LorenEteval @kayhayen

This fixed it for me with the Github provided runners, given that you do this before your Nuitka step:

      # Remove problematic brew libs if Intel Mac
      - name: Remove problematic brew libs
        run: |
          brew remove --force --ignore-dependencies openssl@3
          brew cleanup openssl@3
        if: runner.os == 'macos' && matrix.arch == 'i386'

from nuitka.

kayhayen avatar kayhayen commented on June 20, 2024

With Homebrew, it's "lib" directory has to be added, and for amd64, this is clearly separated from the rest of the OS, but I am not so sure for x86_64, there it was probably very dirty. Since Homebrew is not what is recommended for portable distributions anyway, I don't think I will want to make it work if it's effort to pull hairs between OS and Homebrew DLLs not being clearly sorted. I think CPython should be used rather than Homebrew, since that gives maximum portability. Homebrew typically is not backward portable, CPython and PyPI are better at that, maybe, although I wouldn't swear on it.

from nuitka.

kayhayen avatar kayhayen commented on June 20, 2024

I am tempted to disallow standalone on Homebrew with x86_64, since it's a trap only, but maybe I am all wrong, and the /usr/local/lib is not an OS folder at all, is it?

from nuitka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.