Crash while starting from install (setup.py)

Bug #1028546 reported by Paul Lange
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Lightread
Incomplete
Undecided
Unassigned

Bug Description

When running on Fedora I get this output:

[paul@laptop i686]$ lightread
ERROR:root:Could not find any typelib for Unity
ERROR:root:Could not find any typelib for Dbusmenu
Traceback (most recent call last):
  File "/usr/bin/lightread", line 61, in <module>
    lightread.main()
  File "/usr/lib/python2.7/site-packages/lightread/__init__.py", line 61, in main
    window = LightreadWindow.LightreadWindow()
  File "/usr/lib/python2.7/site-packages/lightread_lib/Window.py", line 61, in __new__
    builder = get_builder('LightreadWindow')
  File "/usr/lib/python2.7/site-packages/lightread_lib/helpers.py", line 53, in get_builder
    ui_filename = get_data_file('ui', '%s.ui' % (builder_file_name,))
  File "/usr/lib/python2.7/site-packages/lightread_lib/lightreadconfig.py", line 68, in get_data_file
    return os.path.join(get_data_path(), *path_segments)
  File "/usr/lib/python2.7/site-packages/lightread_lib/lightreadconfig.py", line 85, in get_data_path
    raise project_path_not_found
lightread_lib.lightreadconfig.project_path_not_found

Hopefully we can remove or make the calls to Unity optional.

Revision history for this message
consindo (cooperjona) wrote :

The calls to Unity are optional. Are you using the latest version?

Changed in lightread:
status: New → Incomplete
Revision history for this message
Paul Lange (palango) wrote :

I'm using 1.0.20.

Revision history for this message
Paul Lange (palango) wrote :

Tested again with 1.1.1.

I use a self created package, I'm attaching it. You can open it with file-roller to see the directory structure it creates, however it's just a call: setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
Output again:

Traceback (most recent call last):
  File "/usr/bin/lightread", line 61, in <module>
    lightread.main()
  File "/usr/lib/python2.7/site-packages/lightread/__init__.py", line 61, in main
    window = LightreadWindow.LightreadWindow()
  File "/usr/lib/python2.7/site-packages/lightread_lib/Window.py", line 61, in __new__
    builder = get_builder('LightreadWindow')
  File "/usr/lib/python2.7/site-packages/lightread_lib/helpers.py", line 53, in get_builder
    ui_filename = get_data_file('ui', '%s.ui' % (builder_file_name,))
  File "/usr/lib/python2.7/site-packages/lightread_lib/lightreadconfig.py", line 68, in get_data_file
    return os.path.join(get_data_path(), *path_segments)
  File "/usr/lib/python2.7/site-packages/lightread_lib/lightreadconfig.py", line 85, in get_data_path
    raise project_path_not_found
lightread_lib.lightreadconfig.project_path_not_found

summary: - typelib for Dbusmenu, Unity
+ Crash while starting from install (setup.py)
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

@Paul Lange, could you please try this branch - https://github.com/roignac/LightRead/tree/directory_structure?
I've updated the directory structure and setup.by to be build in /usr and correctly in Fedora

Revision history for this message
Paul Lange (palango) wrote :

Then branch works \o/

I get some warning while running though and a .desktop file is missing:
[paul@laptop i686]$ lightread
ERROR:root:Could not find any typelib for Unity
ERROR:root:Could not find any typelib for Dbusmenu
/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
ERROR:root:Could not find any typelib for LaunchpadIntegration
/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `LightreadWindow' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `AboutDialog' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `AboutLightreadDialog' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)

(lightread:4153): Gtk-CRITICAL **: gtk_icon_set_render_icon_pixbuf: assertion `icon_set != NULL' failed

(lightread:4153): Gtk-CRITICAL **: gtk_icon_set_render_icon_pixbuf: assertion `icon_set != NULL' failed

(lightread:4153): Gtk-CRITICAL **: gtk_icon_set_render_icon_pixbuf: assertion `icon_set != NULL' failed

(lightread:4153): Gtk-CRITICAL **: gtk_icon_set_render_icon_pixbuf: assertion `icon_set != NULL' failed

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.