Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when trying to package with pyinstaller #10

Open
magik3r opened this issue Aug 28, 2023 · 2 comments
Open

Issue when trying to package with pyinstaller #10

magik3r opened this issue Aug 28, 2023 · 2 comments

Comments

@magik3r
Copy link

magik3r commented Aug 28, 2023

When attempting to package a .py script into an exe using --onefile the executable .exe file gives the following error:
I have tried using --add-data-file "C:/(path to python site packages)/tkextrafont;tkextrafont" to no avail.

Traceback (most recent call last):
  File "tkextrafont\__init__.py", line 118, in load
    window.tk.eval("package require extrafont")
_tkinter.TclError: extra characters after close-brace

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "gui.py", line 49, in <module>
  File "tkextrafont\__init__.py", line 90, in __init__
    load(root)
  File "tkextrafont\__init__.py", line 120, in load
    if "libfontconfig" in e.message:
                          ^^^^^^^^^
AttributeError: 'TclError' object has no attribute 'message'

Any ideas as to why this happens?

Sorry in advance if this is out of your scope.

@rdbende
Copy link
Member

rdbende commented Mar 2, 2024

Probably the same as #9

This is a bug though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants