Bug 2244252 - Spyder does not launch due to symlink'ed fontawesome directory
Summary: Spyder does not launch due to symlink'ed fontawesome directory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: spyder
Version: 39
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jonathan Wright
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2241351
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-10-15 02:45 UTC by mattrennekamp
Modified: 2023-11-03 18:29 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-11-03 18:29:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description mattrennekamp 2023-10-15 02:45:41 UTC
Hello, python3-spyder does not launch (CLI or GUI) on $ spyder command.


QSocketNotifier: Can only be used with threads started with QThread
fromIccProfile: failed minimal tag size sanity
Traceback (most recent call last):
  File "/usr/bin/spyder", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/spyder/app/start.py", line 256, in main
    mainwindow.main(options, args)
  File "/usr/lib/python3.12/site-packages/spyder/app/mainwindow.py", line 1838, in main
    mainwindow = create_window(MainWindow, app, splash, options, args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/spyder/app/utils.py", line 289, in create_window
    main.setup()
  File "/usr/lib/python3.12/site-packages/spyder/app/mainwindow.py", line 747, in setup
    internal_plugins = find_internal_plugins()
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/spyder/app/find_plugins.py", line 40, in find_internal_plugins
    mod = importlib.import_module(entry_point.module_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1325, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 929, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 994, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.12/site-packages/spyder/plugins/pylint/plugin.py", line 22, in <module>
    from spyder.plugins.pylint.confpage import PylintConfigPage
  File "/usr/lib/python3.12/site-packages/spyder/plugins/pylint/confpage.py", line 16, in <module>
    from spyder.plugins.pylint.main_widget import (MAX_HISTORY_ENTRIES,
  File "/usr/lib/python3.12/site-packages/spyder/plugins/pylint/main_widget.py", line 90, in <module>
    class CategoryItem(QTreeWidgetItem):
  File "/usr/lib/python3.12/site-packages/spyder/plugins/pylint/main_widget.py", line 102, in CategoryItem
    'icon': ima.icon("convention")
            ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/spyder/utils/icon_manager.py", line 434, in icon
    qta.load_font('spyder', 'spyder.ttf', 'spyder-charmap.json',
  File "/usr/lib/python3.12/site-packages/qtawesome/__init__.py", line 280, in load_font
    return _instance().load_font(prefix, ttf_filename, charmap_filename, directory)
           ^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/qtawesome/__init__.py", line 125, in _instance
    with open(ttf_filepath, "rb") as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.12/site-packages/qtawesome/fonts/fontawesome4.7-webfont.ttf'

The python3-QtAwesome package (1.2.3-3) is installed and matches the Python version: 
But the file in the /usr/lib/ directory symlinks to /usr/share/fonts/fontawesome4/fontawesome-webfont.ttf. (Where the @fedora fontawesome4-fonts package installs as */fontawesome/*, not */fontawesome4/*.)

Should I report this bug to QtAwesome package manager or is there something I could assist, say adjusting a config?

Reproducible: Always

Steps to Reproduce:
1. Install python3-spyder from command line.
2. Launch 'spyder' executable from cli or desktop entry.

Comment 1 Ben Beasley 2023-10-15 02:55:50 UTC
Thanks for reporting this. This looks like bug 2241351, for which there is an update in testing, waiting for the F39 Final Freeze to end:

https://bodhi.fedoraproject.org/updates/FEDORA-2023-d62861b776

Would you mind testing that update and verifying it fixes the problem?

Comment 2 mattrennekamp 2023-10-15 03:05:21 UTC
That fixes it, thanks!

QSocketNotifier: Can only be used with threads started with QThread
fromIccProfile: failed minimal tag size sanity

(python3:75182): GLib-GIO-CRITICAL **: 23:04:01.527: GFileInfo created without standard::icon

(python3:75182): GLib-GIO-CRITICAL **: 23:04:01.527: file ../gio/gfileinfo.c: line 1766 (g_file_info_get_icon): should not be reached

(python3:75182): GLib-GIO-CRITICAL **: 23:04:01.528: GFileInfo created without standard::icon

(python3:75182): GLib-GIO-CRITICAL **: 23:04:01.528: file ../gio/gfileinfo.c: line 1766 (g_file_info_get_icon): should not be reached

(python3:75182): GLib-GIO-CRITICAL **: 23:04:01.528: GFileInfo created without standard::icon

(python3:75182): GLib-GIO-CRITICAL **: 23:04:01.528: file ../gio/gfileinfo.c: line 1766 (g_file_info_get_icon): should not be reached

(python3:75182): GLib-GIO-CRITICAL **: 23:04:02.722: GFileInfo created without standard::icon

(python3:75182): GLib-GIO-CRITICAL **: 23:04:02.722: file ../gio/gfileinfo.c: line 1766 (g_file_info_get_icon): should not be reached

(python3:75182): GLib-GIO-CRITICAL **: 23:04:02.722: GFileInfo created without standard::icon

(python3:75182): GLib-GIO-CRITICAL **: 23:04:02.722: file ../gio/gfileinfo.c: line 1766 (g_file_info_get_icon): should not be reached

(python3:75182): GLib-GIO-CRITICAL **: 23:04:02.722: GFileInfo created without standard::icon

(python3:75182): GLib-GIO-CRITICAL **: 23:04:02.722: file ../gio/gfileinfo.c: line 1766 (g_file_info_get_icon): should not be reached
Wayland does not support QWindow::requestActivate()
/usr/lib/python3.12/site-packages/jupyter_client/threaded.py:73: RuntimeWarning: ZMQStream only supports the base zmq.Socket class.

                Use zmq.Socket(shadow=other_socket)
                or `ctx.socket(zmq.DEALER, socket_class=zmq.Socket)`
                to create a base zmq.Socket object,
                no matter what other kind of socket your Context creates.
                
  self.stream = zmqstream.ZMQStream(self.socket, self.ioloop)
/usr/lib/python3.12/site-packages/jupyter_client/threaded.py:73: RuntimeWarning: ZMQStream only supports the base zmq.Socket class.

                Use zmq.Socket(shadow=other_socket)
                or `ctx.socket(zmq.SUB, socket_class=zmq.Socket)`
                to create a base zmq.Socket object,
                no matter what other kind of socket your Context creates.
                
  self.stream = zmqstream.ZMQStream(self.socket, self.ioloop)

...

Comment 3 Fedora Update System 2023-10-15 08:41:32 UTC
FEDORA-2023-d62861b776 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d62861b776

Comment 4 Fedora Update System 2023-11-03 18:29:23 UTC
FEDORA-2023-d62861b776 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.