Frescobaldi don't start anymore

91 views
Skip to first unread message

jcorr...@gmail.com

unread,
Nov 1, 2020, 9:19:29 AM11/1/20
to Frescobaldi
Hi everybody,

Frescobaldi was running fine but today I try to open it and got this errors:

=================================================================================
Traceback (most recent call last):
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/plugin.py", line 79, in instance
    return _instances[cls][obj]
  File "/usr/lib/python3.8/weakref.py", line 383, in __getitem__
    return self.data[ref(key)]
KeyError: <weakref at 0x7febeb1e8b80; to 'type' at 0x1ac0c10 (PanelManager)>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/james/bin/frescobaldi", line 40, in <module>
    main.main()                     # Parse command line, create windows etc
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/main.py", line 214, in main
    win = mainwindow.MainWindow()
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/mainwindow.py", line 136, in __init__
    self.createMenus()
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/mainwindow.py", line 1113, in createMenus
    menu.createMenus(self)
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/menu.py", line 61, in createMenus
    m.addMenu(menu_file(mainwindow))
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/menu.py", line 95, in menu_file
    m.addMenu(snippet.menu.TemplateMenu(mainwindow))
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/snippet/menu.py", line 146, in __init__
    self.addAction(self.tool().actionCollection.templates_manage)
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/snippet/menu.py", line 58, in tool
    return panelmanager.manager(self.mainwindow()).snippettool
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/panelmanager.py", line 38, in manager
    return PanelManager.instance(mainwindow)
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/plugin.py", line 84, in instance
    result.__init__(obj)
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/panelmanager.py", line 70, in __init__
    self.loadPanel("musicview.MusicViewPanel", "viewers")
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/panelmanager.py", line 107, in loadPanel
    __import__(module_name)
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/musicview/__init__.py", line 52, in <module>
    import pagedview
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/pagedview.py", line 36, in <module>
    import popplerqt5
ValueError: PyCapsule_GetPointer called with incorrect name
=====================================================

I have no idea how to fix it... Can someone help me?
I am running Frescobaldi 3.1.2 with Lilypond 2.21.6 on Kubuntu 20/04.

I appreciate any help.

Stay safe,

James

Federico Bruni

unread,
Nov 2, 2020, 4:19:59 PM11/2/20
to fresc...@googlegroups.com
Il giorno dom 1 nov 2020 alle 06:19, jcorr...@gmail.com ha scritto:
> File
> "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/pagedview.py",
> line 36, in <module>
> import popplerqt5
> ValueError: PyCapsule_GetPointer called with incorrect name

How did you install python-poppler-qt5?
Can you paste the output of:

frescobaldi --version-debug

If you compiled some dependency, this discussion may help you:
https://stackoverflow.com/questions/51693993/pyqt5-error-pycapsule-getpointer-called-with-incorrect-name



James Correa

unread,
Nov 3, 2020, 12:52:48 PM11/3/20
to fresc...@googlegroups.com
Hi Federico,
I installed python-poppler-qt5 using "apt install". I followed this guides:

this is the output from: frescobaldi --version-debug

====================================================================
Traceback (most recent call last):
  File "/home/james/bin/frescobaldi", line 40, in <module>
    main.main()                     # Parse command line, create windows etc
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/main.py", line 155, in main
    sys.stdout.write(debuginfo.version_info_string() + '\n')
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/debuginfo.py", line 136, in version_info_string
    return separator.join(map("{0[0]}: {0[1]}".format, version_info_named()))
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/debuginfo.py", line 127, in version_info_named
    yield "poppler", poppler_version()
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/debuginfo.py", line 38, in wrapper
    return f()
  File "/home/james/git/frescobaldi/frescobaldi/frescobaldi_app/debuginfo.py", line 89, in poppler_version
    import popplerqt5
ValueError: PyCapsule_GetPointer called with incorrect name
=====================================================================

I will check the link.



--
Frescobaldi homepage: http://www.frescobaldi.org/
Mailing list: http://groups.google.com/group/frescobaldi
Issue tracker: https://github.com/frescobaldi/frescobaldi/issues
---
You received this message because you are subscribed to a topic in the Google Groups "Frescobaldi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/frescobaldi/LqNuVzAnbd0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to frescobaldi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/frescobaldi/2XT6JQ.RUK39QWEJX8Z2%40inventati.org.

Federico Bruni

unread,
Nov 3, 2020, 4:42:45 PM11/3/20
to fresc...@googlegroups.com
Il giorno mar 3 nov 2020 alle 14:52, James Correa
<jcorr...@gmail.com> ha scritto:
> I installed python-poppler-qt5 using "apt install". I followed this
> guides:
> https://github.com/frescobaldi/frescobaldi/wiki/Run-Frescobaldi-3-on-Linux

Are you sure there's no other installation around (which you may have
forgotten)?

I would check it this way:

$ python
Python 3.9.0 (default, Oct 6 2020, 00:00:00)
[GCC 10.2.1 20200826 (Red Hat 10.2.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import popplerqt5
>>> import inspect
>>> inspect.getfile(popplerqt5)
'/usr/lib64/python3.9/site-packages/popplerqt5.cpython-39-x86_64-linux-gnu.so'

If you see a different path (e.g. in /usr/local or ~/), try removing
that installation.

If you cannot import popplerqt5, use find to check:

$ sudo find /usr/ -name 'popplerqt5*'
/usr/lib64/python3.9/site-packages/popplerqt5.cpython-39-x86_64-linux-gnu.so

$ find ~ -name 'popplerqt5*'



Yann

unread,
Feb 11, 2021, 10:12:32 AM2/11/21
to Frescobaldi
Hello all !
Sorry to revive this forgotten thread, I'm coming more or less into the same issue, after quite a few updates on my computer (ubuntu 18.04->20.04). I had the default repo version (3.0 or so) and it stopped working after the update. I uninstalled and purged and then tried to grab the last source, but it also failed to start when trying to run directly without install.

Here's the output :
Traceback (most recent call last):
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/plugin.py", line 79, in instance
    return _instances[cls][obj]
  File "/usr/lib/python3.8/weakref.py", line 383, in __getitem__
    return self.data[ref(key)]
KeyError: <weakref at 0x7f13be0b3270; to 'type' at 0x28f5bb0 (PanelManager)>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./frescobaldi", line 28, in <module>
    main.main()                     # Parse command line, create windows etc
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/main.py", line 210, in main
    win = mainwindow.MainWindow()
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/mainwindow.py", line 129, in __init__
    self.createMenus()
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/mainwindow.py", line 1105, in createMenus
    menu.createMenus(self)
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/menu.py", line 61, in createMenus
    m.addMenu(menu_file(mainwindow))
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/menu.py", line 95, in menu_file
    m.addMenu(snippet.menu.TemplateMenu(mainwindow))
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/snippet/menu.py", line 146, in __init__
    self.addAction(self.tool().actionCollection.templates_manage)
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/snippet/menu.py", line 58, in tool
    return panelmanager.manager(self.mainwindow()).snippettool
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/panelmanager.py", line 38, in manager
    return PanelManager.instance(mainwindow)
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/plugin.py", line 84, in instance
    result.__init__(obj)
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/panelmanager.py", line 70, in __init__
    self.loadPanel("musicview.MusicViewPanel", "viewers")
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/panelmanager.py", line 107, in loadPanel
    __import__(module_name)
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/musicview/__init__.py", line 59, in <module>
    from . import documents
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/musicview/documents.py", line 29, in <module>
    import popplerqt5
RuntimeError: popplerqt5 cannot import type '����' from PyQt5.QtCore


./frescobaldi --version-debug gives :

Traceback (most recent call last):
  File "./frescobaldi", line 28, in <module>
    main.main()                     # Parse command line, create windows etc
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/main.py", line 151, in main
    sys.stdout.write(debuginfo.version_info_string() + '\n')
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/debuginfo.py", line 130, in version_info_string
    return separator.join(map("{0[0]}: {0[1]}".format, version_info_named()))
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/debuginfo.py", line 122, in version_info_named
    yield "python-poppler-qt", python_poppler_version()
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/debuginfo.py", line 38, in wrapper
    return f()
  File "/home/yann/Softs/frescobaldi-3.1.3/frescobaldi_app/debuginfo.py", line 89, in python_poppler_version
    import popplerqt5
RuntimeError: popplerqt5 cannot import type '����' from PyQt5.QtCore

From your messages above, I thought it may have been a popplerqt5 issue, so I updated my version using pip3.

When I launch python and try "import popplerqt5" it fails :
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by /home/yann/.local/lib/python3.8/site-packages/PyQt5/QtCore.abi3.so)

Any clue ? Might be a version problem somewhere as I first installed some packages via the manager, and then updated through pip, but I don't know where to look.

Thanks in advance for your help (and for frescobaldi - eager to use it again after quite some time !)
Yann

Federico Bruni

unread,
Feb 11, 2021, 4:17:56 PM2/11/21
to fresc...@googlegroups.com
On Thu, Feb 11 2021 at 07:12:32 AM -0800, Yann
<yannick...@gmail.com> wrote:
> ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version
> `Qt_5.15' not found (required by
> /home/yann/.local/lib/python3.8/site-packages/PyQt5/QtCore.abi3.so)
>
> Any clue ? Might be a version problem somewhere as I first installed
> some packages via the manager, and then updated through pip, but I
> don't know where to look.

Yes, I think that's the problem.
It seems that your PyQt5 (pip) installation in ~/.local is not
compatible with your system Qt5 library in /usr/lib.

I would remove all the relevant packages installed via pip and use the
distro packages, as it's more likely to work correctly.

pip list --user
pip uninstall PyQt

PS
If you want a quick solution, you can install Frescobaldi as flatpak:
https://www.flathub.org/apps/details/org.frescobaldi.Frescobaldi

Flatpak was designed also to avoid this kind of problem.



Yannick CHARLES

unread,
Feb 12, 2021, 6:21:04 AM2/12/21
to fresc...@googlegroups.com
Hello Federico !
Grazie mille for your answer.

pip uninstalling PyQt5 solved the problem. I had to do it as well for python-poppler-qt5 that I updated via pip as well (I thought, the more recent, the better it is ! :)
I was missing a couple of other dependancies, but now it seems everything is working fine.

I never used flatpak before and didn't see the option on the website. Is the link given somewhere on frescobaldi.org ?
I think it is a very good idea. Now that it's working fine on my system I'll keep it as it is, but I'll probably use flatpak at next frescobaldi update.

Best regards,
Yann


You received this message because you are subscribed to the Google Groups "Frescobaldi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to frescobaldi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/frescobaldi/N5VDOQ.OAM9C7FJKDEK%40inventati.org.

Wolfgang Hofner

unread,
Feb 28, 2021, 6:19:06 AM2/28/21
to Frescobaldi
Hello,
I have this problem on a Windows Computer. How can I solve the problem?

Best regards
Wolfgang

Wolfgang Hofner

unread,
Mar 1, 2021, 1:28:22 PM3/1/21
to Frescobaldi
I am usually using Lilypond 2.23. Now I returneds to Lilypond 2.20 and Frescobaldi starts without error.

Federico Bruni

unread,
Dec 25, 2021, 9:05:33 AM12/25/21
to fresc...@googlegroups.com
On Fri, Feb 12 2021 at 12:20:52 +0100, Yannick CHARLES
<yannick...@gmail.com> wrote:
> I never used flatpak before and didn't see the option on the website.
> Is the link given somewhere on frescobaldi.org ?
> I think it is a very good idea. Now that it's working fine on my
> system I'll keep it as it is, but I'll probably use flatpak at next
> frescobaldi update.

This has been in my TODO list for a long time... just pushed a PR:
https://github.com/wbsoft/web/pull/8

Happy Christmas
Federico



Reply all
Reply to author
Forward
0 new messages