Duckle29 / thermal_totp_printer

A small python script to print TOTP secrets with an ESCPOS thermal printer
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Building for OSX currently doesn't work #1

Open Duckle29 opened 1 year ago

Duckle29 commented 1 year ago

Currently the nuitka build for OSX doesn't work. I don't really care enough to trouble-shoot and fix it, but if anyone wants it to work, the issue seems to be related to this issue: https://github.com/Nuitka/Nuitka/issues/1024 but please don't re-open / bother the nuitka developer there. It seems to be an OSX/python issue.

Anyways, judging from the output, it seems the osx github runner doesn't have the Tcl library in the right place, so maybe look in that direction?

Runner error:


Nuitka:INFO: Starting Python compilation with Nuitka '1.3.8' on Python '3.10' commercial grade 'not installed'.
Nuitka-Plugins:INFO: tk-inter: Injecting pre-module load code for module 'PySimpleGUI':
Nuitka-Plugins:INFO: tk-inter:     Need to make sure we set environment variables for TCL.
Nuitka-Plugins:INFO: tk-inter: Injecting pre-module load code for module 'tkinter':
Nuitka-Plugins:INFO: tk-inter:     Need to make sure we set environment variables for TCL.
Nuitka-Plugins:INFO: options-nanny: Note, when using 'tkinter', consider using '--disable-console' option. Otherwise high resolution will not be available and a terminal window will open.
Nuitka-Plugins:INFO: pkg-resources: Injecting post-module load code for module 'pkg_resources':
Nuitka-Plugins:INFO: pkg-resources:     Registering Nuitka loader with "pkg_resources".
Nuitka-Plugins:INFO: multiprocessing: Injecting pre-module load code for module 'multiprocessing':
Nuitka-Plugins:INFO: multiprocessing:     Monkey patching "multiprocessing" load environment.
Nuitka-Plugins:INFO: multiprocessing: Injecting post-module load code for module 'multiprocessing':
Nuitka-Plugins:INFO: multiprocessing:     Monkey patching "multiprocessing" for compiled methods.
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.
Error: Process completed with exit code 1.```
Ax199Work commented 11 months ago

I encounter the same problem, and end up with use pyinstaller

the command is : pyinstaller -F main.py

It can use tcl tk