python-dcop fails to connect if at first dcopserver didn't start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdebindings (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
If python-dcop makes a call when dcopserver is not start, it will no longer make any method calls after starting dcopserver.
Here is an example. I was using python and dcop to get the playlist of amarok.
(At first amarok and dcopserver was not running.)
lqs@lqs:~$ python
Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pcop, pydcop
>>> pcop.dcop_
ASSERT: debug output not ended with \n
[
0: /usr/lib/
1: /usr/lib/
2: /usr/lib/
3: /var/lib/
4: /var/lib/
5: python(
6: python(
7: python(
8: python(
9: python(
10: python(
11: python(
12: python(main+0x22) [0x80588c2]
13: /lib/tls/
14: python [0x8058831]
]
WARNING: Could not attach to DCOP server
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: Object is not accessible.
>>> pcop.dcop_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: Object is not accessible.
>>>
(Now I started amarok and call it again.....)
>>> pcop.dcop_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: Object is not accessible.
>>>
(Still not accessible. I have to exit the python shell and start over)
lqs@lqs:~$ python
Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pcop, pydcop
>>> pcop.dcop_
['Track 1.ogg', 'Track 2.ogg', 'Track 3.ogg']
>>>
(Now I got the result.)
DCOP was removed from KDE 4, therefore I am closing this bug as invalid.
Thank you for helping us make Kubuntu the best operating system ever.