Frescobaldi startup error on Ubuntu 22.04.1 LTS

152 views
Skip to first unread message

andrew....@gmail.com

unread,
Sep 8, 2022, 5:49:58 AM9/8/22
to Frescobaldi
After apt install frescobaldi, the following error is shown on startup:

Traceback (most recent call last):

File "/usr/share/frescobaldi/frescobaldi_app/qpageview/highlight.py", line 209, in paintEvent

super().paintEvent(ev) # first paint the contents

File "/usr/share/frescobaldi/frescobaldi_app/qpageview/shadow.py", line 43, in paintEvent

rect = ev.rect().adjusted(-width, -width, width / 2, width / 2)

TypeError: adjusted(self, int, int, int, int): argument 1 has unexpected type 'float'


Please remind me how one submits a bug report.


Andrew





Knute Snortum

unread,
Sep 8, 2022, 10:58:19 AM9/8/22
to fresc...@googlegroups.com
I think you go here:

https://github.com/frescobaldi/frescobaldi/issues

--
Knute Snortum
> --
> 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 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/a5554abd-8699-4576-97ab-519005df404an%40googlegroups.com.

Wilbert Berendsen

unread,
Nov 25, 2022, 6:31:33 AM11/25/22
to fresc...@googlegroups.com
This is already fixed in Frescobaldi 3.2. Maybe that's not yet in
Ubuntu; it's caused by incompatible changes in Python 3.10.

So, for Frescobaldi 3.1.x, use Python 3.9; For Python 3.10, use
Frescobaldi 3.2 or newer.

Op Thu, 8 Sep 2022 02:49:58 -0700 (PDT)
"andrew....@gmail.com" <andrew....@gmail.com> schreef:
--
Wilbert Berendsen (www.wilbertberendsen.nl)

Jean Abou Samra

unread,
Nov 25, 2022, 6:33:49 AM11/25/22
to fresc...@googlegroups.com, Wilbert Berendsen, Andrew Bernard
Hey Wilbert, glad to see you!


Le 25/11/2022 à 12:31, Wilbert Berendsen a écrit :
This is already fixed in Frescobaldi 3.2. Maybe that's not yet in
Ubuntu; it's caused by incompatible changes in Python 3.10.

OpenPGP_signature

Gergely K.

unread,
Nov 25, 2022, 6:44:38 AM11/25/22
to Frescobaldi
Are you talking about install from here? https://flathub.org/apps/details/org.frescobaldi.Frescobaldi

That needs a huge amount of kde packages, so I've just git cloned the repo instead.

frescobaldi.png

Knute Snortum

unread,
Nov 25, 2022, 11:24:46 AM11/25/22
to fresc...@googlegroups.com
On Fri, Nov 25, 2022 at 3:44 AM Gergely K. <pihe...@gmail.com> wrote:
 I've just git cloned the repo instead.

That's what I do, then I use this Desktop file:
 
#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/path/to/frescobaldi-3.2/frescobaldi
Name=Frescobaldi 3.2
Icon=/path/to/frescobaldi-3.2/frescobaldi.png 


--
Knute Snortum

Federico Bruni

unread,
Nov 25, 2022, 5:08:22 PM11/25/22
to fresc...@googlegroups.com


Il giorno ven 25 nov 2022 alle 08:24:33 -0800, Knute Snortum
<ksno...@gmail.com> ha scritto:
Nice idea.
Here's what I did to get even more control and choose python-ly from
source as well.

$ cat ~/.local/bin/frescobaldi-git
#!/bin/sh
python3 ~/src/frescobaldi/frescobaldi/frescobaldi --python-ly
~/src/frescobaldi/python-ly

$ cat ~/.local/share/applications/org.frescobaldi.FrescobaldiGit.desktop
#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/home/fede/.local/bin/frescobaldi-git
Name=Frescobaldi Git
Icon=/home/fede/src/frescobaldi/frescobaldi/frescobaldi_app/icons/org.frescobaldi.Frescobaldi.svg






Knute Snortum

unread,
Nov 26, 2022, 12:16:10 PM11/26/22
to fresc...@googlegroups.com
That's cool. My frescobaldi-git looks like this. Does that work too?

#!/bin/bash
PYTHONPATH=~/git-repos/python-ly: python3 ~/git-repos/frescobaldi/frescobaldi

--
Knute Snortum

Federico Bruni

unread,
Nov 26, 2022, 4:35:32 PM11/26/22
to fresc...@googlegroups.com
Il giorno sab 26 nov 2022 alle 09:15:57 -0800, Knute Snortum
<ksno...@gmail.com> ha scritto:
> That's cool. My frescobaldi-git looks like this. Does that work too?
>
> #!/bin/bash
> PYTHONPATH=~/git-repos/python-ly: python3
> ~/git-repos/frescobaldi/frescobaldi

Yes, that was the only way to do it before the --python-ly option was
introduced:
https://github.com/frescobaldi/frescobaldi/commit/1eb83472f916df86356716887d61b7c7e36362fd


Jean Abou Samra

unread,
Nov 29, 2022, 6:22:03 AM11/29/22
to 'Federico Bruni' via Frescobaldi
Alternatively, I guess you could install python-ly in editable mode
("pip install -e ." in the python-ly/ folder).
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages