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

Bug Report: Linux installer throws _tkinter.TclError exception #123

Closed
higaski opened this issue Jan 23, 2024 · 7 comments · Fixed by #136
Closed

Bug Report: Linux installer throws _tkinter.TclError exception #123

higaski opened this issue Jan 23, 2024 · 7 comments · Fixed by #136
Assignees
Labels
Bug Something isn't working as designed EX-Installer Item relates to EX-Installer

Comments

@higaski
Copy link

higaski commented Jan 23, 2024

Version

latest

Bug description

The Linux version currently linked over on the EX-Installer page gives me a _tkinter.TclError.

╰─λ ./EX-Installer-Linux64
Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-sub-pixel-rgb.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-yes-antialias.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/48-spacing.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Traceback (most recent call last):
File "ex_installer/__main__.py", line 113, in <module>
File "ex_installer/__main__.py", line 64, in main
File "ex_installer/ex_installer.py", line 114, in __init__
File "tkinter/__init__.py", line 3272, in __init__
File "tkinter/__init__.py", line 2567, in __init__
_tkinter.TclError: failed to allocate font due to internal system font engine problem
[142245] Failed to execute script '__main__' due to unhandled exception!

Some sys info

╰─λ uname -a
Linux archlinux 6.7.0-zen3-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sat, 13 Jan 2024 14:36:54 +0000 x86_64 GNU/Linux

Steps to reproduce the bug

  1. Download the latest version from the EX-Installer page
  2. chmod +x EX-Installer-Linux64
  3. ./EX-Installer-Linux64

Expected behaviour

The installer should execute.

Screenshots

No response

Additional context

No response

@higaski higaski added the Bug Something isn't working as designed label Jan 23, 2024
@github-actions github-actions bot added the EX-Installer Item relates to EX-Installer label Jan 23, 2024
@dcc-ex-project-workflow-app dcc-ex-project-workflow-app bot moved this to To Do in DCC-EX Jan 23, 2024
@higaski higaski changed the title Bug Report: Bug Report: Linux installer throws _tkinter.TclError exception Jan 23, 2024
@peteGSX
Copy link
Contributor

peteGSX commented Jan 23, 2024

What flavour of Linux is this? There's a known situation with Linux Mint where it will generate a bunch of warnings about fonts similar to what you see, but it still runs successfully and the warnings can be safely ignored.

From what I see in the error (and a bunch of searching I did for the Linux Mint issue) it's likely the system font configuration that's the issue here.

EX-Installer uses Helvetica which apparently may not always be installed on Linux distributions by default, and if the font system isn't configured to use a substitute, it may cause issues.

@peteGSX peteGSX self-assigned this Jan 23, 2024
@peteGSX peteGSX moved this from To Do to In Progress in DCC-EX Jan 23, 2024
@higaski
Copy link
Author

higaski commented Jan 24, 2024

It's KDE. I just checked and I've got "Adobe Helvetica" installed.

Also tried this:
https://stackoverflow.com/questions/45499865/trouble-allocating-fonts-in-a-tcl-tk-based-ubuntu-snap-app

Didn't do anything.

@higaski
Copy link
Author

higaski commented Jan 31, 2024

Opened an issue over at the fontconfig repo as well:
https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/404

@peteGSX
Copy link
Contributor

peteGSX commented Feb 2, 2024

Same bug with Manjaros Linux as per #126.

Investigating options to prevent these exceptions if Helvetica is not installed/available.

As it turns out, Helvetica is not installed in Windows either, and it performs a seemless substitution, possibly with Arial.

Best option at the moment seems to be not to use Helvetica, and to use probably Arial on Windows, and FreeSans on Linux. Need to find the right option for Mac but possibly Arial as well.

@habazut
Copy link
Contributor

habazut commented Feb 2, 2024

Could you install the following packages:
git
python3-tk
pythong3.8-venv
curl
(packages might be named slightly different)
and then run installer.sh and report if that starts a working installer or not.
Harald.

@peteGSX
Copy link
Contributor

peteGSX commented Feb 7, 2024

According to the issue opened by @higaski over at fontconfig, the issue is the build is done on a system with an older version of fontconfig.

I've validated this is the case, as I've been building on Ubuntu 18 to try to ensure it runs on older Linux flavours, however this is obviously causing issues.

Have tested with Ubuntu 20 and the issue is resolved, so from the next release (which will be 0.0.17), these will be built on Ubuntu 20 which should resolve this issue.

@higaski
Copy link
Author

higaski commented Feb 8, 2024

Thanks, works for me.

@peteGSX peteGSX linked a pull request Feb 14, 2024 that will close this issue
@peteGSX peteGSX moved this from In Progress to Done in DCC-EX Feb 14, 2024
@peteGSX peteGSX closed this as completed Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working as designed EX-Installer Item relates to EX-Installer
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants