cannot start Xpresser in fedora

Bug #1060120 reported by Garret Raziel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xpresser
Invalid
Undecided
Unassigned

Bug Description

I have tried to use Xpresser in fedora:

>>> from xpresser import Xpresser

but the output was:

/usr/lib64/python2.7/site-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
/usr/lib64/python2.7/site-packages/gi/module.py:142: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  g_type = info.get_g_type()
/usr/lib64/python2.7/site-packages/gi/module.py:142: Warning: g_once_init_leave: assertion `result != 0' failed
  g_type = info.get_g_type()
/usr/lib64/python2.7/site-packages/gi/module.py:146: Warning: g_type_get_qdata: assertion `node != NULL' failed
  type_ = g_type.pytype

and it didn't returned from that import, it froze.

Revision history for this message
Chris Wayne (cwayne) wrote :

While I did have some issues using it in Fedora, I was at least able to import it. I think you might be missing some dependencies, do you have cairo and gi-cairo installed?

Revision history for this message
Garret Raziel (boloomka) wrote :

I cannot find gi-cairo in repositories. I will try to install it using pip.

Revision history for this message
Garret Raziel (boloomka) wrote :

I have installed cairo-gobject from repositories, but problem still remains.

Revision history for this message
Tim Flink (tflink) wrote :

I'm working on this as well but I'm hitting an additional issue with getting xpresser to run on Fedora.

ImportError: No module named opencv

I'm having trouble figuring out where this python module comes from. As far as I can tell, the python bindings from opencv are compiled as the 'cv' module, not 'opencv'. Is another wrapper being used or is this a platform difference between the opencv packages?

Revision history for this message
Tim Flink (tflink) wrote :

I'm not very familiar with bzr and apparently, I was using an old version of the code.

The new version is presenting other issues that seem to be related to platform differences between Ubuntu and Fedora (the v4l dep in pygame for SimpleCV is what I think I'm hitting right now but I'm not 100% sure). I'll keep plugging away at this as I have time.

Chris, do you happen to remember what deps you needed when you tried xpresser on Fedora?

Revision history for this message
Garret Raziel (boloomka) wrote :

I have tracked down one of the assertions:
in xutils.py you are importing pyatspi and then SimpleCV. If I, on Fedora, try to import SimpleCV, it is OK. If I import pyatspi and THEN SimpleCV, it shows:

/usr/lib64/python2.7/site-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject

Revision history for this message
Garret Raziel (boloomka) wrote :

And when you import SImpleCV and then pyatspi, it shows traceback:

>>> import SimpleCV
>>> import pyatspi
ERROR:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/pyatspi/__init__.py", line 17, in <module>
    from gi.repository import Atspi
  File "/usr/lib64/python2.7/site-packages/gi/__init__.py", line 23, in <module>
    from ._gi import _API, Repository
ImportError: could not import gobject (error was: ImportError('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".',))

Revision history for this message
Garret Raziel (boloomka) wrote :

It seems like Fedora-related issue with SimpleCV. I have tried it on freshly-installed F17 and it worked. So Xpresser is fine, please, close this bug.

Revision history for this message
afonit (afonit-gmail) wrote :

I just installed this on ubuntu 12.04 and I am getting the errors first mentioned.

In [1]: from xpresser import Xpresser
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
/usr/lib/python2.7/dist-packages/gi/module.py:142: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  g_type = info.get_g_type()
/usr/lib/python2.7/dist-packages/gi/module.py:142: Warning: g_once_init_leave: assertion `result != 0' failed
  g_type = info.get_g_type()
/usr/lib/python2.7/dist-packages/gi/module.py:146: Warning: g_type_get_qdata: assertion `node != NULL' failed
  type_ = g_type.pytype

Revision history for this message
afonit (afonit-gmail) wrote :

Regarding my above comment.

I realized I was not running unity and had installed the gnome-classic/fallback
So I checked on another computer from a clean install and there were no issues - so it must have just been a library mixup when installing the classic/fallback of gnome.

So, there is no issue with a clean install. - also I was able to get it working on fedora 18 just fine.

Revision history for this message
Chris Gagnon (chris.gagnon) wrote :

Thanks for the feedback Garret and afonit, I am closing this bug

Changed in xpresser:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.