Greetings all;

On my GO704, I've a camera that uses emc_cam.py, which in turn is calling up some glade stuff, resulting in the error response from /usr/lib/python3/gi/__init__.py telling me its wrong to import GObject when using the gi libraries, instructing us to add from "from gi.repository in front
of the word import. In all instances of import GObject (whatever GObject is)

Sounds simple enough but what if the screws up other python3 apps?  That's above my pay grade.
Is that the real fix or is it someplace earlier in the trace chain?

Full trace:
[GladeVCP][INFO]  Logging to: /home/gene/gladevcp.log (logger.py:107)
gladevcp -x {XID} -c emb_cam -H emb_cam.hal -u emb_cam.py emb_cam.glade
[False]
Traceback (most recent call last):
  File "/usr/bin/gladevcp", line 346, in <module>
    main()
  File "/usr/bin/gladevcp", line 227, in main
    handlers, mod, obj = load_handlers(opts.usermod,halcomp,builder,opts.useropts)
  File "/usr/bin/gladevcp", line 124, in load_handlers
    mod = __import__(basename)
  File "./emb_cam.py", line 69, in <module>
    gtk.gdk.threads_init()
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 72, in __getattr__
    raise AttributeError(_static_binding_error)
AttributeError: 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: https://bugzilla.gnome.org/show_bug.cgi?id=709183

Thank you.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>



_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to