You are not logged in.

#1 2013-07-10 00:08:35

oliver
Member
Registered: 2007-12-12
Posts: 448

gpodder3 fails when /sbin is in front of /usr/bin in PATH

Can someone help me understand what is going here? 

I'm fully up to date with regards to upgrades and had no issues with the migration to the symlinked /bin /sbin structure.

[oliver@overlook /]$ ls -l
total 60
lrwxrwxrwx   1 root root     7 May 31 14:40 bin -> usr/bin
drwxr-xr-x   3 root root  4096 Jul  5 20:34 boot
drwxr-xr-x  17 root root  3000 Jul  9 17:33 dev
drwxr-xr-x  81 root root  4096 Jul  9 17:22 etc
drwxr-xr-x   2 root root  4096 Apr 12 18:26 export
drwxr-xr-x   5 root root  4096 Jun 25 19:31 home
lrwxrwxrwx   1 root root     7 May 31 14:40 lib -> usr/lib
lrwxrwxrwx   1 root root     7 May 31 14:40 lib64 -> usr/lib
drwx------   2 root root 16384 Dec 27  2012 lost+found
drwxr-xr-x   3 root root  4096 Jul  2 19:05 media
drwxr-xr-x   5 root root  4096 Apr 17 07:31 mnt
drwxr-xr-x   3 root root  4096 Jun 17 18:46 opt
dr-xr-xr-x 112 root root     0 Jul  9 13:32 proc
drwxr-x---   9 root root  4096 Apr 17 07:33 root
drwxr-xr-x  15 root root   440 Jul  9 17:33 run
lrwxrwxrwx   1 root root     7 May 31 14:40 sbin -> usr/bin
drwxr-xr-x   5 root root  4096 Mar 23 08:54 srv
dr-xr-xr-x  13 root root     0 Jul  9 13:32 sys
drwxrwxrwt   7 root root   180 Jul  9 17:37 tmp
drwxr-xr-x   9 root root  4096 Jun  9 08:57 usr
drwxr-xr-x  13 root root  4096 Jul  4 19:01 var

Here's the problem... if I run gpodder (from AUR) with /sbin in my PATH before /usr/bin, it fails
If I have /usr/bin before /sbin it works

[oliver@overlook ~]$ pacman -Q gpodder3
gpodder3 3.5.1-1

Here's what happens when it works (and you'll have to take my word that it works)

[oliver@overlook ~]$ export PATH=/usr/bin

[oliver@overlook ~]$ gpodder
1373405778.512109 [gpodder.sync] WARNING: Could not find eyeD3
1373405780.677207 [gpodder.my] WARNING: Flush requested, but sync disabled.

And here's the failure

[oliver@overlook ~]$ export PATH=/sbin:/usr/bin
[oliver@overlook ~]$ gpodder
1373405800.382076 [gpodder.sync] WARNING: Could not find eyeD3
1373405800.496155 [gpodder.log] ERROR: Uncaught exception: Traceback (most recent call last):
  File "/sbin/gpodder", line 174, in <module>
    main()
  File "/sbin/gpodder", line 169, in main
    main.main(options)
  File "/usr/lib/python2.7/site-packages/gpodder/gtkui/main.py", line 3518, in main
    gp = gPodder(bus_name, core.Core(UIConfig, model_class=Model))
  File "/usr/lib/python2.7/site-packages/gpodder/gtkui/main.py", line 122, in __init__
    BuilderWidget.__init__(self, None)
  File "/usr/lib/python2.7/site-packages/gpodder/gtkui/interface/common.py", line 38, in __init__
    GtkBuilderWidget.__init__(self, gpodder.ui_folders, gpodder.textdomain, **kwargs)
  File "/usr/lib/python2.7/site-packages/gpodder/gtkui/base.py", line 66, in __init__
    self.new()
  File "/usr/lib/python2.7/site-packages/gpodder/gtkui/main.py", line 126, in new
    self.toolbar.set_property('visible', self.config.show_toolbar)
AttributeError: 'gPodder' object has no attribute 'toolbar'

Traceback (most recent call last):
  File "/sbin/gpodder", line 174, in <module>
    main()
  File "/sbin/gpodder", line 169, in main
    main.main(options)
  File "/usr/lib/python2.7/site-packages/gpodder/gtkui/main.py", line 3518, in main
    gp = gPodder(bus_name, core.Core(UIConfig, model_class=Model))
  File "/usr/lib/python2.7/site-packages/gpodder/gtkui/main.py", line 122, in __init__
    BuilderWidget.__init__(self, None)
  File "/usr/lib/python2.7/site-packages/gpodder/gtkui/interface/common.py", line 38, in __init__
    GtkBuilderWidget.__init__(self, gpodder.ui_folders, gpodder.textdomain, **kwargs)
  File "/usr/lib/python2.7/site-packages/gpodder/gtkui/base.py", line 66, in __init__
    self.new()
  File "/usr/lib/python2.7/site-packages/gpodder/gtkui/main.py", line 126, in new
    self.toolbar.set_property('visible', self.config.show_toolbar)
AttributeError: 'gPodder' object has no attribute 'toolbar'

Seems like a weird gpodder issue but I'm failing to understand exactly what is happening.  What am I missing in my understanding?

The only thing I can think of is that gpodder is somehow messed up.  It was last updated in AUR in April while the the /usr/bin migration thing was in June. 

/sbin/gpodder is all over that traceback though

edit - I've since removed the /sbin entry in my PATH because it's redundant but I'd still like to know what is causing the crash

edit2 - not that it really matters, but the same thing happens on gpodder2 as well

Last edited by oliver (2013-07-10 17:01:18)

Offline

Board footer

Powered by FluxBB