Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TexText not working in Inkscape 1.43 (MacOS) #484

@jcwinkler

Description

@jcwinkler

From issue #483, user @fbonaldi reports:

It was indeed working fine on Inkscape 1.42. The issue only occurs with TexText, not with the "Formula (pdflatex)" option of Inkscape 1.43 which is still working fine.

Nevertheless, I do get an error message upon selecting "TexText", the following (tried also with TexText 1.11.1 to no avail).

macOS 26.2 Tahoe
MacTeX 2024

[TexText][DEBUG   ]: First run of TexText. Enforcing DEBUG mode.
[TexText][DEBUG   ]: TexText initialized
[TexText][DEBUG   ]: TexText version = '1.12.0' (md5sum = 234e944e716c31909c0070d61c7ed830)
[TexText][DEBUG   ]: platform.system() = 'Darwin'
[TexText][DEBUG   ]: platform.release() = '25.2.0'
[TexText][DEBUG   ]: platform.version() = 'Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:56 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6041'
[TexText][DEBUG   ]: platform.machine() = 'arm64'
[TexText][DEBUG   ]: platform.uname() = uname_result(system='Darwin', node='Mac.homenet.telecomitalia.it', release='25.2.0', version='Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:56 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6041', machine='arm64')
[TexText][DEBUG   ]: platform.mac_ver() = ('26.2', ('', '', ''), 'arm64')
[TexText][DEBUG   ]: sys.executable = '/Applications/Inkscape.app/Contents/Resources/bin/python3'
[TexText][DEBUG   ]: sys.version = '3.10.19 (main, Nov 22 2025, 16:29:05) [Clang 16.0.0 (clang-1600.0.26.3)]'
[TexText][DEBUG   ]: os.environ = environ({'OSLogRateLimit': '64', 'USER': 'francescobonaldi', 'COMMAND_MODE': 'unix2003', '__CFBundleIdentifier': 'org.inkscape.Inkscape', 'PATH': '/Applications/Inkscape.app/Contents/MacOS:/Applications/Inkscape.app/Contents/Resources/bin:/usr/bin:/bin:/usr/sbin:/sbin', 'LOGNAME': 'francescobonaldi', 'DISPLAY': '/private/tmp/com.apple.launchd.Kau8IBx66m/org.xquartz:0', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.w3hdIDag4X/Listeners', 'HOME': '/Users/francescobonaldi', 'SHELL': '/bin/zsh', 'TMPDIR': '/var/folders/6r/4ydrbbqd4_n26t27gjl3c8w00000gn/T/', '__CF_USER_TEXT_ENCODING': '0x1F5:0x0:0x4', 'XPC_SERVICE_NAME': '0', 'XPC_FLAGS': '0x0', 'XDG_DATA_HOME': '/Users/francescobonaldi/Library/Application Support/org.inkscape.Inkscape/share', 'XDG_DATA_DIRS': '/Applications/Inkscape.app/Contents/Resources/share:/Applications/Inkscape.app/Contents/Resources/share/inkscape', 'XDG_CONFIG_HOME': '/Users/francescobonaldi/Library/Application Support/org.inkscape.Inkscape/config', 'XDG_CONFIG_DIRS': '/Applications/Inkscape.app/Contents/Resources/etc/xdg', 'XDG_CACHE_HOME': '/Users/francescobonaldi/Library/Application Support/org.inkscape.Inkscape/cache', 'GDK_PIXBUF_MODULE_FILE': '/Applications/Inkscape.app/Contents/Resources/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache', 'FONTCONFIG_PATH': '/Applications/Inkscape.app/Contents/Resources/etc/fonts', 'GIO_MODULE_DIR': '/Applications/Inkscape.app/Contents/Resources/lib/gio/modules', 'GI_TYPELIB_PATH': '/Applications/Inkscape.app/Contents/Resources/lib/girepository-1.0', 'ENCHANT_PREFIX': '/Applications/Inkscape.app/Contents/Resources', 'DYLD_LIBRARY_PATH': '/Applications/Inkscape.app/Contents/Resources/lib:/Applications/Inkscape.app/Contents/Resources/lib/gdk-pixbuf-2.0/2.10.0/loaders', 'PYTHONPATH': '/Users/francescobonaldi/Library/Application Support/org.inkscape.Inkscape/config/inkscape/extensions:/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions:/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/deprecated-simple', 'PYTHONIOENCODING': 'UTF-8', 'LANGUAGE': 'en', 'INKSCAPE_PROFILE_DIR': '/Users/francescobonaldi/Library/Application Support/org.inkscape.Inkscape/config/inkscape', 'SELF_CALL': 'true', 'DOCUMENT_PATH': '', 'INKEX_GETTEXT_DOMAIN': 'inkscape', 'INKEX_GETTEXT_DIRECTORY': '/Applications/Inkscape.app/Contents/Resources/share/locale', 'LC_CTYPE': 'C.UTF-8'})
[TexText][INFO    ]: Python interpreter: /Applications/Inkscape.app/Contents/Resources/bin/python3
[TexText][INFO    ]: Python version: 3.10.19 (main, Nov 22 2025, 16:29:05) [Clang 16.0.0 (clang-1600.0.26.3)]
[TexText][INFO    ]: Checking for Inkscape 1.4.0...
[TexText][SUCCESS ]:    ...Inkscape = 1.4.3 is found at /Applications/Inkscape.app/Contents/MacOS/inkscape
[TexText][INFO    ]: Checking if GTK is available...
[TexText][WARNING ]:    ...GTK3 is not found (but TkInter maybe available as a fall back...).
[TexText][INFO    ]:       GTK3 offers the best user experience. You may refer to the installation
[TexText][INFO    ]:       instructions to make it available:
[TexText][INFO    ]:       https://textext.github.io/textext/install/macos.html
[TexText][INFO    ]: Checking if Tk interface (tkinter) is available...
[TexText][SUCCESS ]:    ...tkinter is found.
[TexText][INFO    ]: Checking if pdflatex is available...
[TexText][INFO    ]:    ...using 'pdflatex-executable' = '/Library/TeX/texbin/pdflatex' from settings.
[TexText][SUCCESS ]:    ...pdflatex is found at /Library/TeX/texbin/pdflatex.
[TexText][INFO    ]: Checking if lualatex is available...
[TexText][DEBUG   ]:    ...Looking for 'lualatex' in '/Applications/Inkscape.app/Contents/Resources'
[TexText][DEBUG   ]:    ...Looking for 'lualatex' in '/Applications/Inkscape.app/Contents/MacOS'
[TexText][DEBUG   ]:    ...Looking for 'lualatex' in '/Applications/Inkscape.app/Contents/Resources/bin'
[TexText][DEBUG   ]:    ...Looking for 'lualatex' in '/usr/bin'
[TexText][DEBUG   ]:    ...Looking for 'lualatex' in '/bin'
[TexText][DEBUG   ]:    ...Looking for 'lualatex' in '/usr/sbin'
[TexText][DEBUG   ]:    ...Looking for 'lualatex' in '/sbin'
[TexText][DEBUG   ]:    ...'lualatex' is NOT found in PATH
[TexText][WARNING ]:    ...lualatex not found, but other LaTeX compilers or typst may
[TexText][INFO    ]:       be available. If you want to use lualatex: Ensure that the
[TexText][INFO    ]:       lualatex executable is in the system path or pass the path to
[TexText][INFO    ]:       the setup via the --lualatex-executable command line option:
[TexText][INFO    ]:       python3 setup.py --lualatex-executable /path/to/your/lualatex
[TexText][INFO    ]: Checking if xelatex is available...
[TexText][DEBUG   ]:    ...Looking for 'xelatex' in '/Applications/Inkscape.app/Contents/Resources'
[TexText][DEBUG   ]:    ...Looking for 'xelatex' in '/Applications/Inkscape.app/Contents/MacOS'
[TexText][DEBUG   ]:    ...Looking for 'xelatex' in '/Applications/Inkscape.app/Contents/Resources/bin'
[TexText][DEBUG   ]:    ...Looking for 'xelatex' in '/usr/bin'
[TexText][DEBUG   ]:    ...Looking for 'xelatex' in '/bin'
[TexText][DEBUG   ]:    ...Looking for 'xelatex' in '/usr/sbin'
[TexText][DEBUG   ]:    ...Looking for 'xelatex' in '/sbin'
[TexText][DEBUG   ]:    ...'xelatex' is NOT found in PATH
[TexText][WARNING ]:    ...xelatex not found, but other LaTeX compilers or typst may
[TexText][INFO    ]:       be available. If you want to use xelatex: Ensure that the
[TexText][INFO    ]:       xelatex executable is in the system path or pass the path to
[TexText][INFO    ]:       the setup via the --xelatex-executable command line option:
[TexText][INFO    ]:       python3 setup.py --xelatex-executable /path/to/your/xelatex
[TexText][INFO    ]: Checking if typst is available...
[TexText][DEBUG   ]:    ...Looking for 'typst' in '/Applications/Inkscape.app/Contents/Resources'
[TexText][DEBUG   ]:    ...Looking for 'typst' in '/Applications/Inkscape.app/Contents/MacOS'
[TexText][DEBUG   ]:    ...Looking for 'typst' in '/Applications/Inkscape.app/Contents/Resources/bin'
[TexText][DEBUG   ]:    ...Looking for 'typst' in '/usr/bin'
[TexText][DEBUG   ]:    ...Looking for 'typst' in '/bin'
[TexText][DEBUG   ]:    ...Looking for 'typst' in '/usr/sbin'
[TexText][DEBUG   ]:    ...Looking for 'typst' in '/sbin'
[TexText][DEBUG   ]:    ...'typst' is NOT found in PATH
[TexText][WARNING ]:    ...typst not found, but latex compilers are available.
[TexText][INFO    ]:       If you want to use typst: Ensure that the  typst executable is in the system
[TexText][INFO    ]:       path or pass the path to the setup via the --typst-executable command line
[TexText][INFO    ]:       option: python3 setup.py --typst-executable /path/to/your/typst
[TexText][DEBUG   ]: TexText.effect
[TexText][DEBUG   ]:   Using default preamble file `/Users/francescobonaldi/Library/Application Support/org.inkscape.Inkscape/config/inkscape/extensions/textext/default_packages.tex`
[TexText][DEBUG   ]: TexText.effect failed
[TexText][ERROR   ]: 'gi.repository.GioUnix' object has no attribute 'DesktopAppInfo'
[TexText][ERROR   ]: Traceback (most recent call last):
  File "/Users/francescobonaldi/Library/Application Support/org.inkscape.Inkscape/config/inkscape/extensions/textext/__main__.py", line 24, in <module>
    effect.run()
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/base.py", line 255, in run
    self.save_raw(self.effect())
  File "/Users/francescobonaldi/Library/Application Support/org.inkscape.Inkscape/config/inkscape/extensions/textext/base.py", line 299, in effect
    AskTextImpl = load_asktext_gtk()
  File "/Users/francescobonaldi/Library/Application Support/org.inkscape.Inkscape/config/inkscape/extensions/textext/asktext.py", line 482, in load_asktext_gtk
    from gi.repository import Gtk
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 674, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.10/site-packages/gi/importer.py", line 146, in create_module
    importlib.import_module('gi.repository.' + dep.split("-")[0])
  File "/Applications/Inkscape.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 674, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.10/site-packages/gi/importer.py", line 146, in create_module
    importlib.import_module('gi.repository.' + dep.split("-")[0])
  File "/Applications/Inkscape.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 674, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.10/site-packages/gi/importer.py", line 146, in create_module
    importlib.import_module('gi.repository.' + dep.split("-")[0])
  File "/Applications/Inkscape.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 674, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.10/site-packages/gi/importer.py", line 147, in create_module
    dynamic_module = load_overrides(introspection_module)
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.10/site-packages/gi/overrides/__init__.py", line 112, in load_overrides
    override_mod = importlib.import_module(override_package_name)
  File "/Applications/Inkscape.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.10/site-packages/gi/overrides/Gio.py", line 598, in <module>
    from gi.repository import GioUnix as GioPlatform
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 674, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.10/site-packages/gi/importer.py", line 147, in create_module
    dynamic_module = load_overrides(introspection_module)
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.10/site-packages/gi/overrides/__init__.py", line 112, in load_overrides
    override_mod = importlib.import_module(override_package_name)
  File "/Applications/Inkscape.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.10/site-packages/gi/overrides/GioUnix.py", line 23, in <module>
    class DesktopAppInfo(GioUnix.DesktopAppInfo):
  File "/Applications/Inkscape.app/Contents/Resources/lib/python3.10/site-packages/gi/module.py", line 130, in __getattr__
    raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.GioUnix' object has no attribute 'DesktopAppInfo'

[TexText][INFO    ]: TexText finished with error, please run extension again
[TexText][INFO    ]: If problem persists, please file a bug https://github.com/textext/textext/issues/new?template=bug_report.md
''' 

Originally posted by @fbonaldi in #483

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions