Git Product home page Git Product logo

Comments (6)

kayhayen avatar kayhayen commented on September 25, 2024

I don't think Tk is pip installable. Homebrew is not as well supported as CPython, although we claim kind of support for it. The value @loader_path/../../../../opt/tcl-tk/lib/libtcl8.6.dylib appears kind of an extreme value. It appears as if it was running one level too high there, assuming /usr/local/opt is where it should go, and not /usr/opt.

from nuitka.

kayhayen avatar kayhayen commented on September 25, 2024

The bad thing is that I won't have a x86_64 Homebrew setup myself, as I only got access to an M1 machine. I will try and see if I got a similar error there. Homebrew and Tk might be underused.

from nuitka.

kayhayen avatar kayhayen commented on September 25, 2024

So this happens when I try to run my tk-inter standalone test:

FATAL: tk-inter: Could not find Tcl, you might need to use '--tcl-library-dir' and if that works, report a bug so it can be added to Nuitka.

I believe we are not finding this by default. And you are not following this:

Nuitka-Plugins:WARNING: Use '--enable-plugin=tk-inter' for: Tkinter needs TCL
Nuitka-Plugins:WARNING: included.

I am not sure if that doesn't render your report as invalid, but I am also not convinced the plugin avoids no finding those libs, but it might or ought to.

from nuitka.

kayhayen avatar kayhayen commented on September 25, 2024

So, I added the detection of Tcl/Tk for Homebrew, getting at the prefix path for Homebrew reliably might be a bit difficult, for now just going up enough levels from the Python prefix is supposed to work.

Thanks for your report, this is enhanced on the factory branch, which is a development version under rapid development. You can try it out by going here: https://nuitka.net/doc/factory.html

Feedback if this is working is very welcome, just please do not share plans of doing it, but rather confirmations or denials of it working. I need you to state if enabling the plugin helps it to resolve those DLLs. If not, I will need the otool -L /usr/local/opt/[email protected]/libexec/_tkinter.cpython-310-darwin.so and also otool -l /usr/local/opt/[email protected]/libexec/_tkinter.cpython-310-darwin.so.

My suspect is that we need to have for Homebrew a lib directory added to the scan. The ".." might be taking a wrong turn, because of symlink resolution, if we ever do realpath, easily that might be breaking it.

from nuitka.

kayhayen avatar kayhayen commented on September 25, 2024

This is part of the 2.0.3 release I just made.

from nuitka.

ioctl-user avatar ioctl-user commented on September 25, 2024

I have to upgrade my environment.

For now I'm running Python 3.11 instead of 3.10 and Nuitka 2.0.3 instead of 2.0.2.
In these new versions bug disappeared.

So, we can assume it's fixed.

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.