Bug 26744 - не запускается с ошибкой AttributeError: 'NoneType' object has no attribute 'startswith'
Summary: не запускается с ошибкой AttributeError: 'NoneType' object has no attribute '...
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: alacarte (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Yuri N. Sedunov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-23 09:32 MSK by Vyacheslav Dikonov
Modified: 2015-11-09 12:59 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vyacheslav Dikonov 2011-12-23 09:32:46 MSK
При запуске alacarte выдается вот такая ошибка:

$ alacarte 
Traceback (most recent call last):
  File "/usr/bin/alacarte", line 36, in <module>
    main()
  File "/usr/bin/alacarte", line 32, in main
    app = MainWindow(datadir, version, sys.argv)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 48, in __init__
    self.editor = MenuEditor()
  File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 36, in __init__
    self.__loadMenus()
  File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 56, in __loadMenus
    self.settings.path = os.path.join(util.getUserMenuPath(), self.settings.tree.get_menu_file()) 	 
  File "/usr/lib/python2.7/posixpath.py", line 66, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

Рецепты и патчи из Debian/Ubuntu/Gentoo (XDG префикс, удаление settings) не помогают.


https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/800215
http://www.gentoo.ru/node/17633
https://bugzilla.gnome.org/show_bug.cgi?id=647382
...
Comment 1 Michael Shigorin 2015-10-23 18:54:38 MSK
Нынче падает так:

$ rpm -q alacarte
alacarte-3.11.91-alt1
$ alacarte 
/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py:22: PyGIWarning: GMenu was imported without specifying a version first. Use gi.require_version('GMenu', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GdkPixbuf, Gdk, GMenu

(alacarte:1876): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(alacarte:1876): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
Traceback (most recent call last):
  File "/usr/bin/alacarte", line 24, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 463, in main
    app.setMenuBasename(basename)
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 61, in setMenuBasename
    self.editor = MenuEditor(menu_basename)
  File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 36, in __init__
    self.load()
  File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 49, in load
    if not self.tree.load_sync():
GLib.Error: g-io-error-quark: Failed to look up menu_file for "applications.menu"
 (0)

Это на http://nightly.altlinux.org/sisyphus/alpha/regular-mate-20151023-i586.iso с доустановленным mintmenu.
Comment 2 Michael Shigorin 2015-11-06 20:43:26 MSK
С mate-1.10 всё так же падает... (понимаю, что проект явно заброшен)
Comment 3 Michael Shigorin 2015-11-09 12:59:01 MSK
В общем, mintmenu собран с зависимостью от mozo (который добавлен);
мой вопрос исчерпан.