[Bug 775387] Re: Invest-applet fails to start after upgrade to Natty

2018-03-13 Thread Alberts Muktupāvels
** Changed in: gnome-applets (Ubuntu)
   Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-applets in Ubuntu.
https://bugs.launchpad.net/bugs/775387

Title:
  Invest-applet fails to start after upgrade to Natty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-applets/+bug/775387/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 775387] Re: Invest-applet fails to start after upgrade to Natty

2013-03-27 Thread sdaau
Not only does it fail to start - but if you insist on adding invest-
applet to the panel, it turns out,  a process is spawned in the
background anyway; and at that, a process that you cannot kill - because
it respawns itself; this is what I get on Natty:

$ ps axf | grep -i inve 1846 ?Sl 0:00 python 
/usr/lib/gnome-applets/invest-applet 
--oaf-activate-iid=OAFIID:Invest_Applet_Factory --oaf-ior-fd=26
 8115 pts/0S+ 0:00  \_ grep --color=tty -i inve

$ kill 1846 # and say Delete to The panel encountered a problem while
loading OAFIID:Invest_Applet.

# still a new process is spawned
$ ps axf | grep -i inve
 8350 pts/0R+ 0:00  \_ grep --color=tty -i inve
 8190 ?Sl 0:00 python /usr/lib/gnome-applets/invest-applet 
--oaf-activate-iid=OAFIID:Invest_Applet_Factory --oaf-ior-fd=26


 and that sort of stuff persists after reboot. So, this is the procedure 
that I did to finally clean it up:


# look up invest applet via gconf panel/applets:
$ grep -ri invest $(find ~/.gconf/apps/panel/applets/ -type f)
~/.gconf/apps/panel/applets/applet_9/%gconf.xml:
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_19/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_13/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_10/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_17/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_14/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_7/%gconf.xml:
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_11/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_6/%gconf.xml:
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_21/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_18/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_20/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_15/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_5/%gconf.xml:
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_12/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_16/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue
~/.gconf/apps/panel/applets/applet_22/%gconf.xml:   
stringvalueOAFIID:Invest_Applet/stringvalue

# collect dirs where invest applet has been stored:
$INVDIRS=$(for ix in $(grep --files-with-matches -ri invest $(find 
~/.gconf/apps/panel/applets/ -type f)) ; do iz=$(dirname $ix); echo $iz; done)

$ echo $INVDIRS
~/.gconf/apps/panel/applets/applet_9
~/.gconf/apps/panel/applets/applet_19
~/.gconf/apps/panel/applets/applet_13
~/.gconf/apps/panel/applets/applet_10
~/.gconf/apps/panel/applets/applet_17
~/.gconf/apps/panel/applets/applet_14
~/.gconf/apps/panel/applets/applet_7
~/.gconf/apps/panel/applets/applet_11
~/.gconf/apps/panel/applets/applet_6
~/.gconf/apps/panel/applets/applet_21
~/.gconf/apps/panel/applets/applet_18
~/.gconf/apps/panel/applets/applet_20
~/.gconf/apps/panel/applets/applet_15
~/.gconf/apps/panel/applets/applet_5
~/.gconf/apps/panel/applets/applet_12
~/.gconf/apps/panel/applets/applet_16
~/.gconf/apps/panel/applets/applet_22

#  
http://www.ubuntugeek.com/tiphow-to-restore-accidently-deleted-top-panel-in-ubuntu-10-04-lucid.html
#  gconftool-2 --shutdown
#  rm -rf ~/.gconf/apps/panel

# since we cannot kill invest applet; go down to shell
# sudo telinit 1? Nope, just shows screen - doesn't drop to shell!
# Magic SysRq kills processes, but doesn't drop to runlevel 1
# sudo telinit 1 simply freezes
# MUST reboot - and choose recovery console!
# recovery console - choose netroot (shell with networking)
# recovery console logs in as root - go back to your user:

su - username

# so again:
$INVDIRS=$(for ix in $(grep --files-with-matches -ri invest $(find 
~/.gconf/apps/panel/applets/ -type f)) ; do iz=$(dirname $ix); echo $iz; done)

# check - here no quotes for $INVDIRS:
for ix in $INVDIRS; do echo rm -rf $ix; done

# execute
for ix in $INVDIRS; do rm -rf $ix; done

# check - should be deleted ok
ls ~/.gconf/apps/panel/applets/

# reboot
sudo shutdown -r now


# after reboot, check again:
$ ps axf | grep -i invest
 2409 pts/0S+ 0:00  \_ grep --color=tty -i invest

# 'tis clean!

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-applets in Ubuntu.

[Bug 775387] Re: Invest-applet fails to start after upgrade to Natty

2013-03-27 Thread sdaau
Well, I don't really care about investing, but this seemed like a python
example for an applet which I wanted to study - so after some fiddling
around, I finally got (at least) the `/usr/lib/gnome-applets/invest-
applet -d --window` to show an icon and preference window. (goddamn
capitalists, using my labor, hehe :) ) Here's a pic:

http://sdaaubckp.sourceforge.net/post/gnome/invest-applet-natty.png


The thing is - I basically went along with errors I saw, and tried to modify 
them. First of, I got a working Python applet example from here: 
http://www.znasibov.info/blog/post/gnome-applet-with-python-part-1.html
... and changed `PanelApplet.Applet()` into `gnomeapplet.Applet()`; apart from 
that, there are modifications going from `Gtk.` to `gtk.` (e.g. `app = 
Gtk.Window(Gtk.WindowType.TOPLEVEL)` - `app = gtk.Window()`). 

Then, I found this, where it seems that someone already tried to patch
`invest-applet` for natty:

https://code.launchpad.net/~rodrigo-moya/ubuntu/natty/gnome-applets/no-
more-deprecated/+merge/41494

 but seemingly, I had _reverted_ some of those changes - to get it
working again with my 11.04 Natty?

I'm not sure if this is  due to different gtk bindings for different
Pythons; I think I may have seen somewhere, that `Gtk` is for Python 3 -
however, that makes the above `no-more-deprecated` posting a little
weird, because the default Python in Natty is 2.7 ???!

Therefore - the patch is *really* nasty, as it mixes `gi.repository` and
`gtk` imports - but it's basically a proof of concept, I guess... Also
- I just tried to add this patched version to panel; again there is no
icon visible on panel (that could be due to me not converting every
single pixbuf call; see patch) - however, one positive thing is that
after that attempt, while `ps axf | grep invest` does still show the
process in the background, it takes only a single `kill $pid` in order
to get it removed (so no single user mode mess like in previous post).
With the original version, even the standalone debug couldn't be killed
with Ctrl-C (I had to do a `ps axf` and `kill $pid` in another terminal,
to stop the process).

I didn't try fixing anything beyond the starting icon in standalone
debug mode, and the preferences window which is raised upon click of
that icon (as shown in screenshot). Still, hope this will be helpful to
others...


PS: I'll dump a few dev notes (obtained during patch development) here
as well:

invest-applet works w/
from gi.repository import GObject, Gtk, PanelApplet

others: import gnomeapplet

$ activation-client -q -s iid.defined() | grep ^IID | grep -i invest
IID OAFIID:Invest_Applet_Factory, type exe, location 
/usr/lib/gnome-applets/invest-applet
IID OAFIID:Invest_Applet, type factory, location OAFIID:Invest_Applet_Factory
IID OAFIID:GNOME_GtikApplet, type factory, location OAFIID:Invest_Applet_Factory

$ find / -xdev -name '*invest*' 2/dev/null | grep py
/usr/lib/pymodules/python2.7/invest
/usr/share/pyshared/invest

$ ls -la /usr/lib/pymodules/python2.7/invest
total 96
drwxr-xr-x  2 root root  4096 2011-04-25 20:57 .
drwxr-xr-x 66 root root  4096 2013-03-26 17:39 ..
lrwxrwxrwx  1 root root35 2011-04-25 20:57 about.py - 
/usr/share/pyshared/invest/about.py
-rw-r--r--  1 root root  1568 2011-04-25 20:57 about.pyc
lrwxrwxrwx  1 root root36 2011-04-25 20:57 applet.py - 
/usr/share/pyshared/invest/applet.py
-rw-r--r--  1 root root  7052 2011-04-25 20:57 applet.pyc
lrwxrwxrwx  1 root root35 2011-04-25 20:57 chart.py - 
/usr/share/pyshared/invest/chart.py
-rw-r--r--  1 root root  8066 2011-04-25 20:57 chart.pyc
lrwxrwxrwx  1 root root40 2011-04-25 20:57 currencies.py - 
/usr/share/pyshared/invest/currencies.py
-rw-r--r--  1 root root  5548 2011-04-25 20:57 currencies.pyc
lrwxrwxrwx  1 root root34 2011-04-25 20:57 defs.py - 
/usr/share/pyshared/invest/defs.py
-rw-r--r--  1 root root   486 2011-04-25 20:57 defs.pyc
lrwxrwxrwx  1 root root34 2011-04-25 20:57 help.py - 
/usr/share/pyshared/invest/help.py
-rw-r--r--  1 root root   676 2011-04-25 20:57 help.pyc
lrwxrwxrwx  1 root root38 2011-04-25 20:57 __init__.py - 
/usr/share/pyshared/invest/__init__.py
-rw-r--r--  1 root root  5205 2011-04-25 20:57 __init__.pyc
lrwxrwxrwx  1 root root44 2011-04-25 20:57 networkmanager.py - 
/usr/share/pyshared/invest/networkmanager.py
-rw-r--r--  1 root root  2463 2011-04-25 20:57 networkmanager.pyc
lrwxrwxrwx  1 root root41 2011-04-25 20:57 preferences.py - 
/usr/share/pyshared/invest/preferences.py
-rw-r--r--  1 root root 10982 2011-04-25 20:57 preferences.pyc
lrwxrwxrwx  1 root root36 2011-04-25 20:57 quotes.py - 
/usr/share/pyshared/invest/quotes.py
-rw-r--r--  1 root root 12786 2011-04-25 20:57 quotes.pyc
lrwxrwxrwx  1 root root37 2011-04-25 20:57 widgets.py - 
/usr/share/pyshared/invest/widgets.py
-rw-r--r--  1 root root  8547 2011-04-25 20:57 widgets.pyc

# so in /usr/share/pyshared/invest/

$ grep -r PanelApplet /usr/share/pyshared/invest

[Bug 775387] Re: Invest-applet fails to start after upgrade to Natty

2013-03-27 Thread sdaau
Ah, one more - for the patched version above, to get the icon to show in
panel via Add to Panel, or via command line (check the name of the
panels first via `ls ~/.gconf/apps/panel/toplevels`):

python /usr/lib/gnome-panel/gnome-panel-add
--applet=OAFIID:Invest_Applet --panel=panel_0


... just change the line (in /usr/lib/gnome-applets/invest-applet): 

gnomeapplet.bonobo_factory('OAFIID:Invest_Applet',

... into:

gnomeapplet.bonobo_factory('OAFIID:Invest_Applet_Factory',

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-applets in Ubuntu.
https://bugs.launchpad.net/bugs/775387

Title:
  Invest-applet fails to start after upgrade to Natty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-applets/+bug/775387/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 775387] Re: Invest-applet fails to start after upgrade to Natty

2013-03-27 Thread Ubuntu Foundations Team Bug Bot
The attachment partial patch, to get `/usr/lib/gnome-applets/invest-
applet -d --window` to show an icon and prefs window under Natty only
(rest is not fixed) seems to be a patch.  If it isn't, please remove
the patch flag from the attachment, remove the patch tag, and if you
are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-applets in Ubuntu.
https://bugs.launchpad.net/bugs/775387

Title:
  Invest-applet fails to start after upgrade to Natty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-applets/+bug/775387/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 775387] Re: Invest-applet fails to start after upgrade to Natty

2011-11-10 Thread Larry T
app = Gtk.Window(Gtk.WindowType.toplevel)
AttributeError: type object 'GtkWindowType' has no attribute 'toplevel'

I can get past this changing :


app = Gtk.Window(Gtk.WindowType.TOPLEVEL)

but then I get some other error, something obscure and I believe OO
programming related, along the lines that some call expects no
attributes but gets one nevertheless.

Also: I do not have the resources to run Unity, so (I guess) I'm running
the other alternative (gnome -shell ?)

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-applets in Ubuntu.
https://bugs.launchpad.net/bugs/775387

Title:
  Invest-applet fails to start after upgrade to Natty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-applets/+bug/775387/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 775387] Re: Invest-applet fails to start after upgrade to Natty

2011-07-07 Thread Sebastien Bacher
Could somebody try if that's still an issue in oneiric?

** Changed in: gnome-applets (Ubuntu)
   Importance: Undecided = Low

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-applets in Ubuntu.
https://bugs.launchpad.net/bugs/775387

Title:
  Invest-applet fails to start after upgrade to Natty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-applets/+bug/775387/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 775387] Re: Invest-applet fails to start after upgrade to Natty

2011-07-07 Thread Rune K. Svendsen
I tried to test this on a Oneiric live CD, but I was unable to get to a GNOME 
session to test it.
If someone knows how to achieve this, please provide some instructions.
I tried the Classic Guest session option (from the Power(button) menu), 
this seemed to have no effect. Logging out of the Unity session produced a 
screen with only the background visible - no login prompt/window. Running 
gnome-session --session=classic-gnome gives the following error:
gnome-session[5470]: WARNING: Failed to acquire org.gnome.SessionManager

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-applets in Ubuntu.
https://bugs.launchpad.net/bugs/775387

Title:
  Invest-applet fails to start after upgrade to Natty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-applets/+bug/775387/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 775387] Re: Invest-applet fails to start after upgrade to Natty

2011-06-04 Thread Rene
I confirm this bug occurs from Natty , FRESH INSTALL
on i386:
$ uname -a
Linux rg-sdx6 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 
i686 i386 GNU/Linux

and amd64:
$ uname -a
Linux rg 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 
x86_64 x86_64 GNU/Linux

previous comments shows some issues with gtk.
Also while googling I found some comment about recent port related to gtk3... 

On Maverick invest applet is working just fine, and python script is
completely different (/usr/lib/gnome-applets/invest-applet)

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-applets in Ubuntu.
https://bugs.launchpad.net/bugs/775387

Title:
  Invest-applet fails to start after upgrade to Natty

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 775387] Re: Invest-applet fails to start after upgrade to Natty

2011-05-31 Thread Olivier Godart
** Changed in: gnome-applets (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-applets in Ubuntu.
https://bugs.launchpad.net/bugs/775387

Title:
  Invest-applet fails to start after upgrade to Natty

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 775387] Re: Invest-applet fails to start after upgrade to Natty

2011-05-04 Thread Toby Corkindale
Does this debugging info help?
I note that I only get this error if I try to run it with the --window command; 
it may be an unrelated error.

tobyc@adonai:~$ /usr/lib/gnome-applets/invest-applet -d --window
2011-05-05 11:20:21.609092: Debugging enabled
2011-05-05 11:20:21.609141: Data Dir: /usr/share/gnome-applets/invest-applet
2011-05-05 11:20:21.609155: Detected PROXY: None
Traceback (most recent call last):
  File /usr/lib/gnome-applets/invest-applet, line 90, in module
build_window()
  File /usr/lib/gnome-applets/invest-applet, line 40, in build_window
app = Gtk.Window(Gtk.WindowType.toplevel)
AttributeError: type object 'GtkWindowType' has no attribute 'toplevel'
tobyc@adonai:~$

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-applets in Ubuntu.
https://bugs.launchpad.net/bugs/775387

Title:
  Invest-applet fails to start after upgrade to Natty

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 775387] Re: Invest-applet fails to start after upgrade to Natty

2011-05-04 Thread Toby Corkindale
Am trying debugging via strace, ie:
tobyc@adonai:~$ strace /usr/lib/gnome-applets/invest-applet -d

This shows the module loading up, picking up various icons, shared
libraries, etc, then it hangs on a poll.. The last few lines are:

poll([{fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=11, 
events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, 
events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}, {fd=16, 
events=POLLIN}], 7, 25000) = 1 ([{fd=5, revents=POLLIN}])
read(5, A, 1) = 1
read(4, 0x232ad74, 4096)= -1 EAGAIN (Resource temporarily 
unavailable)
poll([{fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=11, 
events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, 
events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}, {fd=16, 
events=POLLIN}], 7, -1) = ? ERESTART_RESTARTBLOCK (To be restarted)
--- SIGWINCH (Window changed) @ 0 (0) ---
restart_syscall(... resuming interrupted call ...) = ? ERESTART_RESTARTBLOCK 
(To be restarted)


.. I don't really know what this indicates though.. Seems to be waiting for 
input on several sockets, which never arrives?

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-applets in Ubuntu.
https://bugs.launchpad.net/bugs/775387

Title:
  Invest-applet fails to start after upgrade to Natty

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs