Description of problem: I don't use frescobaldi to compose from scratch, only to edit files and print them. Altering an existing .ly file, changes were saved. The following applies even to an unchanged .ly file. On attempting to run "Preview" the program generated a bug report as follows: "Frescobaldi: 2.0.4 Python: 2.7.3 -- Qt: 4.8.0 -- PyQt4: 4.9.1 -- sip: 4.13.2 OS: Linux-3.3.6-server-2.mga2-i686-with-mandrake-2-Official Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/frescobaldi_app/musicview/widget.py", line 112, in openDocument self.view.load(document) File "/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/view.py", line 117, in load self.surface().pageLayout().load(document) File "/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/layout.py", line 324, in load p.setScale(self._scale) File "/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/page.py", line 129, in setScale self.computeSize() File "/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/page.py", line 122, in computeSize x = round(self._pageSize.width() * xdpi / 72.0 * self._scale) AttributeError: 'Scope' object has no attribute 'width' Optionally describe below what you were doing: transposing from D to E flat. That step was O.K. Started preview: then got error message. Ran convert-ly, ran OK, saved. Same error on preview. OS is Mageia 2 Official. I don't know why mandrake is mentioned." This was emailed to the developer, who replied: "This occurs when python-poppler-qt4 links to the wrong version of SIP. Probably some that package needs to be re-installed (and old versions of it and SIP removed)" I have no old versions of SIP, only python-sip-4.13.2-1.mga2 In addition, there are visual artefacts, pieces of the splash screen (I think) showing on the icon bar and through the bug report window. How reproducible: Any attempt to run "Preview." Steps to Reproduce: 1. 2. 3.
CC: (none) => dmorganec, fundawang
In case it was something to do with the Frescobaldi RPM, I tried building the tarball and running that without installing it. It gives me a different error: Traceback (most recent call last): File "/home/doug/builds/frescobaldi-2.0.6/frescobaldi_app/musicview/widget.py", line 112, in openDocument self._links = pointandclick.links(document) File "/home/doug/builds/frescobaldi-2.0.6/frescobaldi_app/musicview/pointandclick.py", line 75, in links l = _cache[document] = Links(document) File "/home/doug/builds/frescobaldi-2.0.6/frescobaldi_app/musicview/pointandclick.py", line 95, in __init__ m = textedit_match(link.url()) TypeError: expected string or buffer HTH, Doug.
After the upgrade of Qt, just installed, the original error message no longer comes up. Instead the error message in Comment 1 appears twice, once on opening a file, and once on clicking Preview. The progress pane shows that the pdf is indeed generated (which I have confirmed.) It sounds like a problem in rendering the PDF. The pieces of splash screen still appear in the menu (the main one looks like a black version of the Frescobaldi logo, a bit like a car tyre,) another graphical issue. A different bug?
A similar error message is discussed here: https://groups.google.com/forum/#!msg/frescobaldi/FNR8Aor9UPE/4viWj8rJOiEJ Wilbert Berendsen (http://www.wilbertberendsen.nl) wrote: "This is related to python-poppler-qt4 not being compiled with the same PyQt4 version that is used. So python-poppler-qt4 must be recompiled with the current PyQt4 version!"
CC: (none) => rac
Slightly different, but sounds like the same problem. That is why I compiled Frescobaldi from source. Seems as though if I compile python-poppler-qt4 from source as well, everything will become consistent. Must give it a try. It has no dependencies.
Google Groups is playing Windows and telling me that I don't need to see the referenced link, but I saw one like it.
Unfortunately, when trying to compile python-poppler-qt4 I am getting a heap of error messages such as: undefined reference to `qt_assert_x(char const*, char const*, char const*, int)' Am I missing a Qt package? No failed dependencies showed up during the compile.
Here's the text of the Google Groups post, in case the link above is not working. Subject: Re: [Frescobaldi 2.0.0] AttributeError: 'Scope' object has no attribute 'width' Jan 9 Op Fri, 06 Jan 2012 18:51:25 -0800 Bernardo Barros <ma...@bbarros.com> schreef: > Frescobaldi: 2.0.0Python: 2.7.2 -- Qt: 4.8.0 -- PyQt4: 4.9 -- sip: > 4.13.1OS: > Linux-3.0-rt-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-glibc2.2.5Traceback > (most recent call last): File > "/usr/lib/python2.7/site-packages/frescobaldi_app/musicview/__init__.py", > line 102, in openDocument self.widget().openDocument(doc) File > "/usr/lib/python2.7/site-packages/frescobaldi_app/musicview/widget.py", > line 112, in openDocument self.view.load(document) File > "/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/view.py", > line 117, in load self.surface().pageLayout().load(document) File > "/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/layout.py", > line 324, in load p.setScale(self._scale) File > "/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/page.py", > line 129, in setScale self.computeSize() File > "/usr/lib/python2.7/site-packages/frescobaldi_app/qpopplerview/page.py", > line 122, in computeSize x = round(self._pageSize.width() * xdpi / > 72.0 * self._scale)AttributeError: 'Scope' object has no attribute > 'width'Optionally describe below what you were doing: > This is related to python-poppler-qt4 not being compiled with the same PyQt4 version that is used. So python-poppler-qt4 must be recompiled with the current PyQt4 version! -- Wilbert Berendsen (http://www.wilbertberendsen.nl) =========== I haven't tried yet, but you may need some of these to compile frescobaldi: libqt4-dev python-qt4-dev python-sip-dev libpoppler-qt4-dev libqt4-core python-sip4-dev
Depends on: (none) => 8034
Keywords: (none) => Triaged
(In reply to comment #7) Hi Richard ... > > This is related to python-poppler-qt4 not being compiled with the same > PyQt4 version that is used. > > So python-poppler-qt4 must be recompiled with the current PyQt4 version! > > -- > Wilbert Berendsen > (http://www.wilbertberendsen.nl) > He's right ! > =========== > > I haven't tried yet, but you may need some of these to compile frescobaldi: > > libqt4-dev > python-qt4-dev > python-sip-dev > libpoppler-qt4-dev > libqt4-core > python-sip4-dev No need to compile frescobaldi : Just need to rebuild python-poppler-qt4 inside Mageia2 it's easy to do : just need to change the release number from 1 to 2 in the spec file of its srpm... and it's OK see bug 8034
CC: (none) => philippedidier
*** This bug has been marked as a duplicate of bug 8034 ***
Status: NEW => RESOLVEDResolution: (none) => DUPLICATE