Comments (6)
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.
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.
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.
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.
This is part of the 2.0.3 release I just made.
from nuitka.
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)
- Error after compiling with multiprocessing
- coremltools package gives fatal error on MacOS HOT 3
- SCONS-linker crashes at linking stage with error UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 184714: invalid continuation byte HOT 3
- console pop up when my exe executes another exe (already disabled windows console mode) HOT 1
- nuitka cannot find black.cache when packaging black
- match-case statement causes segfault
- Can not compile the code with paddleOCR HOT 1
- onefile bootstrap binary build failed as it couldn't find C++ compiler HOT 4
- QtSql does not work with Nuitka on macOS HOT 5
- ImportError: cannot import name ChromeService from selenium.webdriver.chrome.service HOT 1
- What exactly is included in the binary file created after Nuitka compilation? HOT 1
- Nuitka ignores implicit dependencies of OpenCV for opencv-based programs. HOT 6
- Error using newest version of KivyMD==2.0.1.dev0 HOT 1
- "Scalability issue" - macOS Catalina 10.15.7 HOT 4
- pip module can't exe after build HOT 2
- Slow executable startup time on MacOS
- Import User-Provided Modules at Runtime
- About LicenseReport Generation HOT 6
- FileNotFoundError: Shared library with base name 'llama' not found
- KivyMD + angle_sdl2 incompatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuitka.