- Posts: 19311
- Thank you received: 4655
Hakan wrote: Andy was that on raspbian RPi4 or on Intel buster? It seems to me the two are not exactly the same.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Hakan wrote: I think I figured out what you did. You replaced rsvg in lathehandler.py?
import error: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: bugzilla.gnome.org/show_bug.cgi?id=709183
Please Log in or Create an account to join the conversation.
andypugh wrote:
Hakan wrote: I think I figured out what you did. You replaced rsvg in lathehandler.py?
I feel to be homing in on a solution for the lathe macros, but it isn't all the way there. I think we might need to change all of GladeVCP.
If youCode:sudo apt-get install gir1.2-rsvg-2.0
Then in a standalone Python session you canCode:from gi.repository import Rsvg as rsvg
Unfortunately once you are using gi (gobject introspection) it seems that you are not allowed to not use it elsewhere, so if you edit lathehandler.py to use the above, you get:import error: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: bugzilla.gnome.org/show_bug.cgi?id=709183
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.