partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Federico Ferri-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

when I plug in the phone, I get this error on sync-engine:

ERROR dbus.connection : Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib64/python2.5/site-packages/dbus/connection.py", line
214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "//usr/lib64/python2.5/site-packages/SyncEngine/kernel.py",
line 272, in _CBHalDeviceConnected
    self.OnConnect()
  File "//usr/lib64/python2.5/site-packages/SyncEngine/kernel.py",
line 427, in OnConnect
    self.PshipManager.AttemptToBind()
  File "//usr/lib64/python2.5/site-packages/SyncEngine/pshipmgr.py",
line 372, in AttemptToBind
    self._ReadDevicePartnerships()
  File "//usr/lib64/python2.5/site-packages/SyncEngine/pshipmgr.py",
line 72, in _ReadDevicePartnerships
    id = key.query_value("PId")
  File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
TypeError: exceptions must be strings, classes, or instances, not
RAPIError

as a result, each time I plug the phone, partnership are not
recognized, so I see zero partnership in synce-kpm, even if I have
files in ~/.synce/partnerships/

software version:
dbus-1.2.3
python-2.5.2
synce-hal-0.2
synce-sync-engine-0.12
synce-librapi2-0.12
synce-librra-0.12
synce-libsynce-0.12
synce-librtfcomp-1.1

is there some incompatibility between the software versions I
installed? or what?


- --
regards,
Federico Ferri


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkgVY4ACgkQV/B5axfzrPuDcgCggHwUgzPmXH5P3+rSBNk0Ey/M
2fAAnjey/ieiHjLwFeArb2JxuSDKRuxo
=OIta
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Mark Ellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 2008-11-16 at 18:17 +0100, Federico Ferri wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> when I plug in the phone, I get this error on sync-engine:
>
> ERROR dbus.connection : Exception in handler for D-Bus signal:
> Traceback (most recent call last):
>   File "/usr/lib64/python2.5/site-packages/dbus/connection.py", line
> 214, in maybe_handle_message
>     self._handler(*args, **kwargs)
>   File "//usr/lib64/python2.5/site-packages/SyncEngine/kernel.py",
> line 272, in _CBHalDeviceConnected
>     self.OnConnect()
>   File "//usr/lib64/python2.5/site-packages/SyncEngine/kernel.py",
> line 427, in OnConnect
>     self.PshipManager.AttemptToBind()
>   File "//usr/lib64/python2.5/site-packages/SyncEngine/pshipmgr.py",
> line 372, in AttemptToBind
>     self._ReadDevicePartnerships()
>   File "//usr/lib64/python2.5/site-packages/SyncEngine/pshipmgr.py",
> line 72, in _ReadDevicePartnerships
>     id = key.query_value("PId")
>   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> TypeError: exceptions must be strings, classes, or instances, not
> RAPIError
>
> as a result, each time I plug the phone, partnership are not
> recognized, so I see zero partnership in synce-kpm, even if I have
> files in ~/.synce/partnerships/
>
> software version:
> dbus-1.2.3
> python-2.5.2
> synce-hal-0.2
> synce-sync-engine-0.12
> synce-librapi2-0.12
> synce-librra-0.12
> synce-libsynce-0.12
> synce-librtfcomp-1.1
>
> is there some incompatibility between the software versions I
> installed? or what?
>
Hi Federico, Alessandro I have copied you on this because it seems to be
a similar problem.

You are both experiencing the TypeError exception, which should not
occur, and only seems to be happening on Gentoo. There is another report
in sourceforge bug 2249289. I would deduce from this that there is a
problem with the python module of librapi2 in gentoo. I have no idea
about gentoo, can you think of what might be causing this ?

Mark



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

signature.asc (204 bytes) Download Attachment

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Alessandro Cristiani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2008-11-17 at 14:40 +0000, Mark Ellis wrote:

> On Sun, 2008-11-16 at 18:17 +0100, Federico Ferri wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > when I plug in the phone, I get this error on sync-engine:
> >
> > ERROR dbus.connection : Exception in handler for D-Bus signal:
> > Traceback (most recent call last):
> >   File "/usr/lib64/python2.5/site-packages/dbus/connection.py", line
> > 214, in maybe_handle_message
> >     self._handler(*args, **kwargs)
> >   File "//usr/lib64/python2.5/site-packages/SyncEngine/kernel.py",
> > line 272, in _CBHalDeviceConnected
> >     self.OnConnect()
> >   File "//usr/lib64/python2.5/site-packages/SyncEngine/kernel.py",
> > line 427, in OnConnect
> >     self.PshipManager.AttemptToBind()
> >   File "//usr/lib64/python2.5/site-packages/SyncEngine/pshipmgr.py",
> > line 372, in AttemptToBind
> >     self._ReadDevicePartnerships()
> >   File "//usr/lib64/python2.5/site-packages/SyncEngine/pshipmgr.py",
> > line 72, in _ReadDevicePartnerships
> >     id = key.query_value("PId")
> >   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> > TypeError: exceptions must be strings, classes, or instances, not
> > RAPIError
> >
> > as a result, each time I plug the phone, partnership are not
> > recognized, so I see zero partnership in synce-kpm, even if I have
> > files in ~/.synce/partnerships/
> >
> > software version:
> > dbus-1.2.3
> > python-2.5.2
> > synce-hal-0.2
> > synce-sync-engine-0.12
> > synce-librapi2-0.12
> > synce-librra-0.12
> > synce-libsynce-0.12
> > synce-librtfcomp-1.1
> >
> > is there some incompatibility between the software versions I
> > installed? or what?
> >
>
> Hi Federico, Alessandro I have copied you on this because it seems to be
> a similar problem.
>
> You are both experiencing the TypeError exception, which should not
> occur, and only seems to be happening on Gentoo. There is another report
> in sourceforge bug 2249289. I would deduce from this that there is a
> problem with the python module of librapi2 in gentoo. I have no idea
> about gentoo, can you think of what might be causing this ?
>
> Mark
>
Hi,
I don't know which are the differences, but if you think that it can
help I can compare the official source with the gentoo one.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Alessandro Cristiani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2008-11-17 at 17:21 +0100, Alessandro Cristiani wrote:

> On Mon, 2008-11-17 at 14:40 +0000, Mark Ellis wrote:
> > On Sun, 2008-11-16 at 18:17 +0100, Federico Ferri wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > when I plug in the phone, I get this error on sync-engine:
> > >
> > > ERROR dbus.connection : Exception in handler for D-Bus signal:
> > > Traceback (most recent call last):
> > >   File "/usr/lib64/python2.5/site-packages/dbus/connection.py", line
> > > 214, in maybe_handle_message
> > >     self._handler(*args, **kwargs)
> > >   File "//usr/lib64/python2.5/site-packages/SyncEngine/kernel.py",
> > > line 272, in _CBHalDeviceConnected
> > >     self.OnConnect()
> > >   File "//usr/lib64/python2.5/site-packages/SyncEngine/kernel.py",
> > > line 427, in OnConnect
> > >     self.PshipManager.AttemptToBind()
> > >   File "//usr/lib64/python2.5/site-packages/SyncEngine/pshipmgr.py",
> > > line 372, in AttemptToBind
> > >     self._ReadDevicePartnerships()
> > >   File "//usr/lib64/python2.5/site-packages/SyncEngine/pshipmgr.py",
> > > line 72, in _ReadDevicePartnerships
> > >     id = key.query_value("PId")
> > >   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> > > TypeError: exceptions must be strings, classes, or instances, not
> > > RAPIError
> > >
> > > as a result, each time I plug the phone, partnership are not
> > > recognized, so I see zero partnership in synce-kpm, even if I have
> > > files in ~/.synce/partnerships/
> > >
> > > software version:
> > > dbus-1.2.3
> > > python-2.5.2
> > > synce-hal-0.2
> > > synce-sync-engine-0.12
> > > synce-librapi2-0.12
> > > synce-librra-0.12
> > > synce-libsynce-0.12
> > > synce-librtfcomp-1.1
> > >
> > > is there some incompatibility between the software versions I
> > > installed? or what?
> > >
> >
> > Hi Federico, Alessandro I have copied you on this because it seems to be
> > a similar problem.
> >
> > You are both experiencing the TypeError exception, which should not
> > occur, and only seems to be happening on Gentoo. There is another report
> > in sourceforge bug 2249289. I would deduce from this that there is a
> > problem with the python module of librapi2 in gentoo. I have no idea
> > about gentoo, can you think of what might be causing this ?
> >
> > Mark
> >
> Hi,
> I don't know which are the differences, but if you think that it can
> help I can compare the official source with the gentoo one.
>
Hi,
I look inside the gentoo overlay and I'm quite sure that the librapy2 is
the same of the official, I compared the version 0.11.1 from sourceforge
with the one installed on my pc. Reading the ebuild, it seems gentoo get
the source directly by sourceforge without applying modification.

Regards


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Federico Ferri-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alessandro Cristiani wrote:

>>> Hi Federico, Alessandro I have copied you on this because it seems
>>> to be
>>> a similar problem.
>>>
>>> You are both experiencing the TypeError exception, which should not
>>> occur, and only seems to be happening on Gentoo. There is another report
>>> in sourceforge bug 2249289. I would deduce from this that there is a
>>> problem with the python module of librapi2 in gentoo. I have no idea
>>> about gentoo, can you think of what might be causing this ?
>>>
>>> Mark
>>>
>> Hi,
>> I don't know which are the differences, but if you think that it can
>> help I can compare the official source with the gentoo one.
>>
> Hi,
> I look inside the gentoo overlay and I'm quite sure that the librapy2 is
> the same of the official, I compared the version 0.11.1 from sourceforge
> with the one installed on my pc. Reading the ebuild, it seems gentoo get
> the source directly by sourceforge without applying modification.

yes, it's true.
it gets installed with ./configure && make && make install without
modifications.

Mark: is there a testsuite to run, or a simple test case that could
help spotting this problem?

- --
regards,
Federico Ferri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkl5SMACgkQV/B5axfzrPtsagCeIXrt0LIJUFUpQoxCafI5E7aD
2EAAn0b6K0qQS/P/bg90q1BoHRpMM9v9
=vNCC
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Dr J A Gow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Alessandro Cristiani wrote:
> >>> Hi Federico, Alessandro I have copied you on this because it seems
> >>> to be
> >>> a similar problem.
> >>>
> >>> You are both experiencing the TypeError exception, which should not
> >>> occur, and only seems to be happening on Gentoo. There is another report
> >>> in sourceforge bug 2249289. I would deduce from this that there is a
> >>> problem with the python module of librapi2 in gentoo. I have no idea
> >>> about gentoo, can you think of what might be causing this ?
> >>>
> >>> Mark
> >>>
> >> Hi,
> >> I don't know which are the differences, but if you think that it can
> >> help I can compare the official source with the gentoo one.
> >>
> > Hi,
> > I look inside the gentoo overlay and I'm quite sure that the librapy2 is
> > the same of the official, I compared the version 0.11.1 from sourceforge
> > with the one installed on my pc. Reading the ebuild, it seems gentoo get
> > the source directly by sourceforge without applying modification.
>
> yes, it's true.
> it gets installed with ./configure && make && make install without
> modifications.
>
> Mark: is there a testsuite to run, or a simple test case that could
> help spotting this problem?
>
> - --


Since this one seems not to be a packaging issue I will investigate it
further in the sources.

        John.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Federico Ferri-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dr J A Gow wrote:

> On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Alessandro Cristiani wrote:
>>>>> Hi Federico, Alessandro I have copied you on this because it seems
>>>>> to be
>>>>> a similar problem.
>>>>>
>>>>> You are both experiencing the TypeError exception, which should not
>>>>> occur, and only seems to be happening on Gentoo. There is another
report

>>>>> in sourceforge bug 2249289. I would deduce from this that there is a
>>>>> problem with the python module of librapi2 in gentoo. I have no idea
>>>>> about gentoo, can you think of what might be causing this ?
>>>>>
>>>>> Mark
>>>>>
>>>> Hi,
>>>> I don't know which are the differences, but if you think that it can
>>>> help I can compare the official source with the gentoo one.
>>>>
>>> Hi,
>>> I look inside the gentoo overlay and I'm quite sure that the librapy2 is
>>> the same of the official, I compared the version 0.11.1 from sourceforge
>>> with the one installed on my pc. Reading the ebuild, it seems gentoo get
>>> the source directly by sourceforge without applying modification.
>> yes, it's true.
>> it gets installed with ./configure && make && make install without
>> modifications.
>>
>> Mark: is there a testsuite to run, or a simple test case that could
>> help spotting this problem?
>>
>> - --
>
>
> Since this one seems not to be a packaging issue I will investigate it
> further in the sources.
>
>     John.
>

I just installed dbus-python-0.83.0 and problem disappeared (thanks to
Iain for the suggestion)

versions 0.82.4 and 0.80.2 have this problem (and maybe more)

- --
regards
Federico Ferri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkl/fkACgkQV/B5axfzrPszpQCeI/xOwQeM2r3ZkdvukV9gZkQw
L9kAnArzMEnOydf5MnaCxedgaOtvGZV1
=J/uQ
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Mark Ellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2008-11-21 at 01:16 +0100, Federico Ferri wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dr J A Gow wrote:
> > On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> Alessandro Cristiani wrote:
> >>>>> Hi Federico, Alessandro I have copied you on this because it seems
> >>>>> to be
> >>>>> a similar problem.
> >>>>>
> >>>>> You are both experiencing the TypeError exception, which should not
> >>>>> occur, and only seems to be happening on Gentoo. There is another
> report
> >>>>> in sourceforge bug 2249289. I would deduce from this that there is a
> >>>>> problem with the python module of librapi2 in gentoo. I have no idea
> >>>>> about gentoo, can you think of what might be causing this ?
> >>>>>
> >>>>> Mark
> >>>>>
> >>>> Hi,
> >>>> I don't know which are the differences, but if you think that it can
> >>>> help I can compare the official source with the gentoo one.
> >>>>
> >>> Hi,
> >>> I look inside the gentoo overlay and I'm quite sure that the librapy2 is
> >>> the same of the official, I compared the version 0.11.1 from sourceforge
> >>> with the one installed on my pc. Reading the ebuild, it seems gentoo get
> >>> the source directly by sourceforge without applying modification.
> >> yes, it's true.
> >> it gets installed with ./configure && make && make install without
> >> modifications.
> >>
> >> Mark: is there a testsuite to run, or a simple test case that could
> >> help spotting this problem?
> >>
> >> - --
> >
> >
> > Since this one seems not to be a packaging issue I will investigate it
> > further in the sources.
> >
> >     John.
> >
>
> I just installed dbus-python-0.83.0 and problem disappeared (thanks to
> Iain for the suggestion)
>
> versions 0.82.4 and 0.80.2 have this problem (and maybe more)
>
Thanks to Iain again for his good memory :)

Now I'm really confused. I'm on ubuntu, dbus-python-0.82.4, and it works
fine, no distro specific fixes I can see. But besides that, how can the
version of dbus-python mess with how python sees a user defined
exception ?

Mark




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

signature.asc (204 bytes) Download Attachment

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Alessandro Cristiani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2008-11-21 at 01:16 +0100, Federico Ferri wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dr J A Gow wrote:
> > On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> Alessandro Cristiani wrote:
> >>>>> Hi Federico, Alessandro I have copied you on this because it seems
> >>>>> to be
> >>>>> a similar problem.
> >>>>>
> >>>>> You are both experiencing the TypeError exception, which should not
> >>>>> occur, and only seems to be happening on Gentoo. There is another
> report
> >>>>> in sourceforge bug 2249289. I would deduce from this that there is a
> >>>>> problem with the python module of librapi2 in gentoo. I have no idea
> >>>>> about gentoo, can you think of what might be causing this ?
> >>>>>
> >>>>> Mark
> >>>>>
> >>>> Hi,
> >>>> I don't know which are the differences, but if you think that it can
> >>>> help I can compare the official source with the gentoo one.
> >>>>
> >>> Hi,
> >>> I look inside the gentoo overlay and I'm quite sure that the librapy2 is
> >>> the same of the official, I compared the version 0.11.1 from sourceforge
> >>> with the one installed on my pc. Reading the ebuild, it seems gentoo get
> >>> the source directly by sourceforge without applying modification.
> >> yes, it's true.
> >> it gets installed with ./configure && make && make install without
> >> modifications.
> >>
> >> Mark: is there a testsuite to run, or a simple test case that could
> >> help spotting this problem?
> >>
> >> - --
> >
> >
> > Since this one seems not to be a packaging issue I will investigate it
> > further in the sources.
> >
> >     John.
> >
>
> I just installed dbus-python-0.83.0 and problem disappeared (thanks to
> Iain for the suggestion)
>
> versions 0.82.4 and 0.80.2 have this problem (and maybe more)
>
Sorry but in my case the problem persists. I update the dbus-python to
the version 0.83.0 then I recreate the partnership. At this point I
disconnect the cable and then I reconnect it.
The output of the command list_partnership is empty and the output of
the sync-engine display the same error of the previous version.
Maybe I can try to uninstall all synce related packages, can be a valid
test?

Regards

> - --
> regards
> Federico Ferri
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkkl/fkACgkQV/B5axfzrPszpQCeI/xOwQeM2r3ZkdvukV9gZkQw
> L9kAnArzMEnOydf5MnaCxedgaOtvGZV1
> =J/uQ
> -----END PGP SIGNATURE-----
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> SynCE-Users mailing list
> SynCE-Users@...
> https://lists.sourceforge.net/lists/listinfo/synce-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Mark Ellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2008-11-21 at 11:27 +0100, Alessandro Cristiani wrote:

> On Fri, 2008-11-21 at 01:16 +0100, Federico Ferri wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Dr J A Gow wrote:
> > > On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
> > >> -----BEGIN PGP SIGNED MESSAGE-----
> > >> Hash: SHA1
> > >>
> > >> Alessandro Cristiani wrote:
> > >>>>> Hi Federico, Alessandro I have copied you on this because it seems
> > >>>>> to be
> > >>>>> a similar problem.
> > >>>>>
> > >>>>> You are both experiencing the TypeError exception, which should not
> > >>>>> occur, and only seems to be happening on Gentoo. There is another
> > report
> > >>>>> in sourceforge bug 2249289. I would deduce from this that there is a
> > >>>>> problem with the python module of librapi2 in gentoo. I have no idea
> > >>>>> about gentoo, can you think of what might be causing this ?
> > >>>>>
> > >>>>> Mark
> > >>>>>
> > >>>> Hi,
> > >>>> I don't know which are the differences, but if you think that it can
> > >>>> help I can compare the official source with the gentoo one.
> > >>>>
> > >>> Hi,
> > >>> I look inside the gentoo overlay and I'm quite sure that the librapy2 is
> > >>> the same of the official, I compared the version 0.11.1 from sourceforge
> > >>> with the one installed on my pc. Reading the ebuild, it seems gentoo get
> > >>> the source directly by sourceforge without applying modification.
> > >> yes, it's true.
> > >> it gets installed with ./configure && make && make install without
> > >> modifications.
> > >>
> > >> Mark: is there a testsuite to run, or a simple test case that could
> > >> help spotting this problem?
> > >>
> > >> - --
> > >
> > >
> > > Since this one seems not to be a packaging issue I will investigate it
> > > further in the sources.
> > >
> > >     John.
> > >
> >
> > I just installed dbus-python-0.83.0 and problem disappeared (thanks to
> > Iain for the suggestion)
> >
> > versions 0.82.4 and 0.80.2 have this problem (and maybe more)
> >
> Sorry but in my case the problem persists. I update the dbus-python to
> the version 0.83.0 then I recreate the partnership. At this point I
> disconnect the cable and then I reconnect it.
> The output of the command list_partnership is empty and the output of
> the sync-engine display the same error of the previous version.
> Maybe I can try to uninstall all synce related packages, can be a valid
> test?
>
Alessandro, is it _exactly_ the same error ? You may still get a
traceback because of an error, but if it isn't that strange TypeError we
may be able to figure out why.

Mark



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

signature.asc (204 bytes) Download Attachment

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Alessandro Cristiani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2008-11-21 at 17:02 +0000, Mark Ellis wrote:

> On Fri, 2008-11-21 at 11:27 +0100, Alessandro Cristiani wrote:
> > On Fri, 2008-11-21 at 01:16 +0100, Federico Ferri wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > Dr J A Gow wrote:
> > > > On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
> > > >> -----BEGIN PGP SIGNED MESSAGE-----
> > > >> Hash: SHA1
> > > >>
> > > >> Alessandro Cristiani wrote:
> > > >>>>> Hi Federico, Alessandro I have copied you on this because it seems
> > > >>>>> to be
> > > >>>>> a similar problem.
> > > >>>>>
> > > >>>>> You are both experiencing the TypeError exception, which should not
> > > >>>>> occur, and only seems to be happening on Gentoo. There is another
> > > report
> > > >>>>> in sourceforge bug 2249289. I would deduce from this that there is a
> > > >>>>> problem with the python module of librapi2 in gentoo. I have no idea
> > > >>>>> about gentoo, can you think of what might be causing this ?
> > > >>>>>
> > > >>>>> Mark
> > > >>>>>
> > > >>>> Hi,
> > > >>>> I don't know which are the differences, but if you think that it can
> > > >>>> help I can compare the official source with the gentoo one.
> > > >>>>
> > > >>> Hi,
> > > >>> I look inside the gentoo overlay and I'm quite sure that the librapy2 is
> > > >>> the same of the official, I compared the version 0.11.1 from sourceforge
> > > >>> with the one installed on my pc. Reading the ebuild, it seems gentoo get
> > > >>> the source directly by sourceforge without applying modification.
> > > >> yes, it's true.
> > > >> it gets installed with ./configure && make && make install without
> > > >> modifications.
> > > >>
> > > >> Mark: is there a testsuite to run, or a simple test case that could
> > > >> help spotting this problem?
> > > >>
> > > >> - --
> > > >
> > > >
> > > > Since this one seems not to be a packaging issue I will investigate it
> > > > further in the sources.
> > > >
> > > >     John.
> > > >
> > >
> > > I just installed dbus-python-0.83.0 and problem disappeared (thanks to
> > > Iain for the suggestion)
> > >
> > > versions 0.82.4 and 0.80.2 have this problem (and maybe more)
> > >
> > Sorry but in my case the problem persists. I update the dbus-python to
> > the version 0.83.0 then I recreate the partnership. At this point I
> > disconnect the cable and then I reconnect it.
> > The output of the command list_partnership is empty and the output of
> > the sync-engine display the same error of the previous version.
> > Maybe I can try to uninstall all synce related packages, can be a valid
> > test?
> >
>
> Alessandro, is it _exactly_ the same error ? You may still get a
> traceback because of an error, but if it isn't that strange TypeError we
> may be able to figure out why.
>
> Mark
>
Hi,
I do some test but nothing change. The following is a summary of what I
do and what was the error, I hope it can be useful to solve the problem.
First of all, after installing dev-python/dbus-python package I
restarted my computer and I try to create a new partnership. I try to
disconnect and reconnect the cable and the result was the following
error:
Traceback (most recent call last):
  File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
195, in _CBDeviceConnected
    self.OnConnect()
  File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
324, in OnConnect
    self.PshipManager.AttemptToBind()
  File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
372, in AttemptToBind
    self._ReadDevicePartnerships()
  File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
72, in _ReadDevicePartnerships
    id = key.query_value("PId")
  File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
TypeError: exceptions must be strings, classes, or instances, not
RAPIError

Then I tried to unistall all synce related packages and following the
instruction on www.synce.org I installed the synce-0.12 and the
libopensinc-0.22 packages. After this I tried to create a new
partnership and the resul was:
2008-11-22 01:38:11,556 ERROR dbus.connection : Exception in handler for
D-Bus signal:
Traceback (most recent call last):
  File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
212, in _CBDeviceConnected
    self.OnConnect()
  File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
427, in OnConnect
    self.PshipManager.AttemptToBind()
  File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
372, in AttemptToBind
    self._ReadDevicePartnerships()
  File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
72, in _ReadDevicePartnerships
    id = key.query_value("PId")
  File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
TypeError: exceptions must be strings, classes, or instances, not
RAPIError

That's all

Regards



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Mark Ellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 2008-11-22 at 01:48 +0100, Alessandro Cristiani wrote:

> On Fri, 2008-11-21 at 17:02 +0000, Mark Ellis wrote:
> > On Fri, 2008-11-21 at 11:27 +0100, Alessandro Cristiani wrote:
> > > On Fri, 2008-11-21 at 01:16 +0100, Federico Ferri wrote:
> > > > -----BEGIN PGP SIGNED MESSAGE-----
> > > > Hash: SHA1
> > > >
> > > > Dr J A Gow wrote:
> > > > > On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
> > > > >> -----BEGIN PGP SIGNED MESSAGE-----
> > > > >> Hash: SHA1
> > > > >>
> > > > >> Alessandro Cristiani wrote:
> > > > >>>>> Hi Federico, Alessandro I have copied you on this because it seems
> > > > >>>>> to be
> > > > >>>>> a similar problem.
> > > > >>>>>
> > > > >>>>> You are both experiencing the TypeError exception, which should not
> > > > >>>>> occur, and only seems to be happening on Gentoo. There is another
> > > > report
> > > > >>>>> in sourceforge bug 2249289. I would deduce from this that there is a
> > > > >>>>> problem with the python module of librapi2 in gentoo. I have no idea
> > > > >>>>> about gentoo, can you think of what might be causing this ?
> > > > >>>>>
> > > > >>>>> Mark
> > > > >>>>>
> > > > >>>> Hi,
> > > > >>>> I don't know which are the differences, but if you think that it can
> > > > >>>> help I can compare the official source with the gentoo one.
> > > > >>>>
> > > > >>> Hi,
> > > > >>> I look inside the gentoo overlay and I'm quite sure that the librapy2 is
> > > > >>> the same of the official, I compared the version 0.11.1 from sourceforge
> > > > >>> with the one installed on my pc. Reading the ebuild, it seems gentoo get
> > > > >>> the source directly by sourceforge without applying modification.
> > > > >> yes, it's true.
> > > > >> it gets installed with ./configure && make && make install without
> > > > >> modifications.
> > > > >>
> > > > >> Mark: is there a testsuite to run, or a simple test case that could
> > > > >> help spotting this problem?
> > > > >>
> > > > >> - --
> > > > >
> > > > >
> > > > > Since this one seems not to be a packaging issue I will investigate it
> > > > > further in the sources.
> > > > >
> > > > >     John.
> > > > >
> > > >
> > > > I just installed dbus-python-0.83.0 and problem disappeared (thanks to
> > > > Iain for the suggestion)
> > > >
> > > > versions 0.82.4 and 0.80.2 have this problem (and maybe more)
> > > >
> > > Sorry but in my case the problem persists. I update the dbus-python to
> > > the version 0.83.0 then I recreate the partnership. At this point I
> > > disconnect the cable and then I reconnect it.
> > > The output of the command list_partnership is empty and the output of
> > > the sync-engine display the same error of the previous version.
> > > Maybe I can try to uninstall all synce related packages, can be a valid
> > > test?
> > >
> >
> > Alessandro, is it _exactly_ the same error ? You may still get a
> > traceback because of an error, but if it isn't that strange TypeError we
> > may be able to figure out why.
> >
> > Mark
> >
> Hi,
> I do some test but nothing change. The following is a summary of what I
> do and what was the error, I hope it can be useful to solve the problem.
> First of all, after installing dev-python/dbus-python package I
> restarted my computer and I try to create a new partnership. I try to
> disconnect and reconnect the cable and the result was the following
> error:
> Traceback (most recent call last):
>   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
> in maybe_handle_message
>     self._handler(*args, **kwargs)
>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> 195, in _CBDeviceConnected
>     self.OnConnect()
>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> 324, in OnConnect
>     self.PshipManager.AttemptToBind()
>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> 372, in AttemptToBind
>     self._ReadDevicePartnerships()
>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> 72, in _ReadDevicePartnerships
>     id = key.query_value("PId")
>   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> TypeError: exceptions must be strings, classes, or instances, not
> RAPIError
>
> Then I tried to unistall all synce related packages and following the
> instruction on www.synce.org I installed the synce-0.12 and the
> libopensinc-0.22 packages. After this I tried to create a new
> partnership and the resul was:
> 2008-11-22 01:38:11,556 ERROR dbus.connection : Exception in handler for
> D-Bus signal:
> Traceback (most recent call last):
>   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
> in maybe_handle_message
>     self._handler(*args, **kwargs)
>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> 212, in _CBDeviceConnected
>     self.OnConnect()
>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> 427, in OnConnect
>     self.PshipManager.AttemptToBind()
>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> 372, in AttemptToBind
>     self._ReadDevicePartnerships()
>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> 72, in _ReadDevicePartnerships
>     id = key.query_value("PId")
>   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> TypeError: exceptions must be strings, classes, or instances, not
> RAPIError
>
Thinking aloud here.

Right, having followed the code through, the initial exception is caused
by the value "PId" not existing in one of the subkeys in "\Software
\Microsoft\Windows CE Services\Partners". This is perfectly normal,
meaning one of the partnership slots is empty.

However, the reg function has to indicate that the key doesn't exist,
and so raises a RAPIError. This exception will be caught by sync-engine,
because it is an expected result. However, python instead raises a
TypeError because it doesn't think RAPIError is a 'string, class or
instance'. Our confusion arises because in pyrapi2.pyx RAPIError is
clearly defined as a class that is derived from the Exception class.

Could this be a pyrex problem ?

Alessandro, could you rebuild librapi2 and send the log of the whole
build ? Also, after the build in the python directory of the build tree
will hopefully be a pyrapi2.c file, could you also send that. What
version of pyrex do you have ?

Mark



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

signature.asc (204 bytes) Download Attachment

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Alessandro Cristiani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 2008-11-22 at 11:13 +0000, Mark Ellis wrote:

> On Sat, 2008-11-22 at 01:48 +0100, Alessandro Cristiani wrote:
> > On Fri, 2008-11-21 at 17:02 +0000, Mark Ellis wrote:
> > > On Fri, 2008-11-21 at 11:27 +0100, Alessandro Cristiani wrote:
> > > > On Fri, 2008-11-21 at 01:16 +0100, Federico Ferri wrote:
> > > > > -----BEGIN PGP SIGNED MESSAGE-----
> > > > > Hash: SHA1
> > > > >
> > > > > Dr J A Gow wrote:
> > > > > > On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
> > > > > >> -----BEGIN PGP SIGNED MESSAGE-----
> > > > > >> Hash: SHA1
> > > > > >>
> > > > > >> Alessandro Cristiani wrote:
> > > > > >>>>> Hi Federico, Alessandro I have copied you on this because it seems
> > > > > >>>>> to be
> > > > > >>>>> a similar problem.
> > > > > >>>>>
> > > > > >>>>> You are both experiencing the TypeError exception, which should not
> > > > > >>>>> occur, and only seems to be happening on Gentoo. There is another
> > > > > report
> > > > > >>>>> in sourceforge bug 2249289. I would deduce from this that there is a
> > > > > >>>>> problem with the python module of librapi2 in gentoo. I have no idea
> > > > > >>>>> about gentoo, can you think of what might be causing this ?
> > > > > >>>>>
> > > > > >>>>> Mark
> > > > > >>>>>
> > > > > >>>> Hi,
> > > > > >>>> I don't know which are the differences, but if you think that it can
> > > > > >>>> help I can compare the official source with the gentoo one.
> > > > > >>>>
> > > > > >>> Hi,
> > > > > >>> I look inside the gentoo overlay and I'm quite sure that the librapy2 is
> > > > > >>> the same of the official, I compared the version 0.11.1 from sourceforge
> > > > > >>> with the one installed on my pc. Reading the ebuild, it seems gentoo get
> > > > > >>> the source directly by sourceforge without applying modification.
> > > > > >> yes, it's true.
> > > > > >> it gets installed with ./configure && make && make install without
> > > > > >> modifications.
> > > > > >>
> > > > > >> Mark: is there a testsuite to run, or a simple test case that could
> > > > > >> help spotting this problem?
> > > > > >>
> > > > > >> - --
> > > > > >
> > > > > >
> > > > > > Since this one seems not to be a packaging issue I will investigate it
> > > > > > further in the sources.
> > > > > >
> > > > > >     John.
> > > > > >
> > > > >
> > > > > I just installed dbus-python-0.83.0 and problem disappeared (thanks to
> > > > > Iain for the suggestion)
> > > > >
> > > > > versions 0.82.4 and 0.80.2 have this problem (and maybe more)
> > > > >
> > > > Sorry but in my case the problem persists. I update the dbus-python to
> > > > the version 0.83.0 then I recreate the partnership. At this point I
> > > > disconnect the cable and then I reconnect it.
> > > > The output of the command list_partnership is empty and the output of
> > > > the sync-engine display the same error of the previous version.
> > > > Maybe I can try to uninstall all synce related packages, can be a valid
> > > > test?
> > > >
> > >
> > > Alessandro, is it _exactly_ the same error ? You may still get a
> > > traceback because of an error, but if it isn't that strange TypeError we
> > > may be able to figure out why.
> > >
> > > Mark
> > >
> > Hi,
> > I do some test but nothing change. The following is a summary of what I
> > do and what was the error, I hope it can be useful to solve the problem.
> > First of all, after installing dev-python/dbus-python package I
> > restarted my computer and I try to create a new partnership. I try to
> > disconnect and reconnect the cable and the result was the following
> > error:
> > Traceback (most recent call last):
> >   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
> > in maybe_handle_message
> >     self._handler(*args, **kwargs)
> >   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > 195, in _CBDeviceConnected
> >     self.OnConnect()
> >   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > 324, in OnConnect
> >     self.PshipManager.AttemptToBind()
> >   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > 372, in AttemptToBind
> >     self._ReadDevicePartnerships()
> >   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > 72, in _ReadDevicePartnerships
> >     id = key.query_value("PId")
> >   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> > TypeError: exceptions must be strings, classes, or instances, not
> > RAPIError
> >
> > Then I tried to unistall all synce related packages and following the
> > instruction on www.synce.org I installed the synce-0.12 and the
> > libopensinc-0.22 packages. After this I tried to create a new
> > partnership and the resul was:
> > 2008-11-22 01:38:11,556 ERROR dbus.connection : Exception in handler for
> > D-Bus signal:
> > Traceback (most recent call last):
> >   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
> > in maybe_handle_message
> >     self._handler(*args, **kwargs)
> >   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > 212, in _CBDeviceConnected
> >     self.OnConnect()
> >   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > 427, in OnConnect
> >     self.PshipManager.AttemptToBind()
> >   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > 372, in AttemptToBind
> >     self._ReadDevicePartnerships()
> >   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > 72, in _ReadDevicePartnerships
> >     id = key.query_value("PId")
> >   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> > TypeError: exceptions must be strings, classes, or instances, not
> > RAPIError
> >
>
> Thinking aloud here.
>
> Right, having followed the code through, the initial exception is caused
> by the value "PId" not existing in one of the subkeys in "\Software
> \Microsoft\Windows CE Services\Partners". This is perfectly normal,
> meaning one of the partnership slots is empty.
>
> However, the reg function has to indicate that the key doesn't exist,
> and so raises a RAPIError. This exception will be caught by sync-engine,
> because it is an expected result. However, python instead raises a
> TypeError because it doesn't think RAPIError is a 'string, class or
> instance'. Our confusion arises because in pyrapi2.pyx RAPIError is
> clearly defined as a class that is derived from the Exception class.
>
> Could this be a pyrex problem ?
>
> Alessandro, could you rebuild librapi2 and send the log of the whole
> build ? Also, after the build in the python directory of the build tree
> will hopefully be a pyrapi2.c file, could you also send that. What
> version of pyrex do you have ?
>
> Mark
>
I don't really know how it is possible, but now it works. The last steps
I do to understand the problem and to obtain the log of the build were:
     1. update my portage and layman to be sure to have the last version
        of all packages;
     2. upgrade the pyrex package to version 0.9.8.5;
     3. remove the previous installation of synce version 0.12,
        including configuration directory;
     4. install synce version 0.12 following the instruction on the
        site.
Results...I try to connect and disconnect the cable and every time
list_partnership show me the correct value.
The only difference I can see is in the Wireless Manager screen of my
i600, now when I connect the cable with the wireless turned on, the
wireless button disappeared and the connection to the AP closed.

Thank you for your help, and I hope that the above little summary can
useful to someone else to resolve this problem.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Mark Ellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2008-11-28 at 09:49 +0100, Alessandro Cristiani wrote:

> On Sat, 2008-11-22 at 11:13 +0000, Mark Ellis wrote:
> > On Sat, 2008-11-22 at 01:48 +0100, Alessandro Cristiani wrote:
> > > On Fri, 2008-11-21 at 17:02 +0000, Mark Ellis wrote:
> > > > On Fri, 2008-11-21 at 11:27 +0100, Alessandro Cristiani wrote:
> > > > > On Fri, 2008-11-21 at 01:16 +0100, Federico Ferri wrote:
> > > > > > -----BEGIN PGP SIGNED MESSAGE-----
> > > > > > Hash: SHA1
> > > > > >
> > > > > > Dr J A Gow wrote:
> > > > > > > On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
> > > > > > >> -----BEGIN PGP SIGNED MESSAGE-----
> > > > > > >> Hash: SHA1
> > > > > > >>
> > > > > > >> Alessandro Cristiani wrote:
> > > > > > >>>>> Hi Federico, Alessandro I have copied you on this because it seems
> > > > > > >>>>> to be
> > > > > > >>>>> a similar problem.
> > > > > > >>>>>
> > > > > > >>>>> You are both experiencing the TypeError exception, which should not
> > > > > > >>>>> occur, and only seems to be happening on Gentoo. There is another
> > > > > > report
> > > > > > >>>>> in sourceforge bug 2249289. I would deduce from this that there is a
> > > > > > >>>>> problem with the python module of librapi2 in gentoo. I have no idea
> > > > > > >>>>> about gentoo, can you think of what might be causing this ?
> > > > > > >>>>>
> > > > > > >>>>> Mark
> > > > > > >>>>>
> > > > > > >>>> Hi,
> > > > > > >>>> I don't know which are the differences, but if you think that it can
> > > > > > >>>> help I can compare the official source with the gentoo one.
> > > > > > >>>>
> > > > > > >>> Hi,
> > > > > > >>> I look inside the gentoo overlay and I'm quite sure that the librapy2 is
> > > > > > >>> the same of the official, I compared the version 0.11.1 from sourceforge
> > > > > > >>> with the one installed on my pc. Reading the ebuild, it seems gentoo get
> > > > > > >>> the source directly by sourceforge without applying modification.
> > > > > > >> yes, it's true.
> > > > > > >> it gets installed with ./configure && make && make install without
> > > > > > >> modifications.
> > > > > > >>
> > > > > > >> Mark: is there a testsuite to run, or a simple test case that could
> > > > > > >> help spotting this problem?
> > > > > > >>
> > > > > > >> - --
> > > > > > >
> > > > > > >
> > > > > > > Since this one seems not to be a packaging issue I will investigate it
> > > > > > > further in the sources.
> > > > > > >
> > > > > > >     John.
> > > > > > >
> > > > > >
> > > > > > I just installed dbus-python-0.83.0 and problem disappeared (thanks to
> > > > > > Iain for the suggestion)
> > > > > >
> > > > > > versions 0.82.4 and 0.80.2 have this problem (and maybe more)
> > > > > >
> > > > > Sorry but in my case the problem persists. I update the dbus-python to
> > > > > the version 0.83.0 then I recreate the partnership. At this point I
> > > > > disconnect the cable and then I reconnect it.
> > > > > The output of the command list_partnership is empty and the output of
> > > > > the sync-engine display the same error of the previous version.
> > > > > Maybe I can try to uninstall all synce related packages, can be a valid
> > > > > test?
> > > > >
> > > >
> > > > Alessandro, is it _exactly_ the same error ? You may still get a
> > > > traceback because of an error, but if it isn't that strange TypeError we
> > > > may be able to figure out why.
> > > >
> > > > Mark
> > > >
> > > Hi,
> > > I do some test but nothing change. The following is a summary of what I
> > > do and what was the error, I hope it can be useful to solve the problem.
> > > First of all, after installing dev-python/dbus-python package I
> > > restarted my computer and I try to create a new partnership. I try to
> > > disconnect and reconnect the cable and the result was the following
> > > error:
> > > Traceback (most recent call last):
> > >   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
> > > in maybe_handle_message
> > >     self._handler(*args, **kwargs)
> > >   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > > 195, in _CBDeviceConnected
> > >     self.OnConnect()
> > >   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > > 324, in OnConnect
> > >     self.PshipManager.AttemptToBind()
> > >   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > > 372, in AttemptToBind
> > >     self._ReadDevicePartnerships()
> > >   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > > 72, in _ReadDevicePartnerships
> > >     id = key.query_value("PId")
> > >   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> > > TypeError: exceptions must be strings, classes, or instances, not
> > > RAPIError
> > >
> > > Then I tried to unistall all synce related packages and following the
> > > instruction on www.synce.org I installed the synce-0.12 and the
> > > libopensinc-0.22 packages. After this I tried to create a new
> > > partnership and the resul was:
> > > 2008-11-22 01:38:11,556 ERROR dbus.connection : Exception in handler for
> > > D-Bus signal:
> > > Traceback (most recent call last):
> > >   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
> > > in maybe_handle_message
> > >     self._handler(*args, **kwargs)
> > >   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > > 212, in _CBDeviceConnected
> > >     self.OnConnect()
> > >   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > > 427, in OnConnect
> > >     self.PshipManager.AttemptToBind()
> > >   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > > 372, in AttemptToBind
> > >     self._ReadDevicePartnerships()
> > >   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > > 72, in _ReadDevicePartnerships
> > >     id = key.query_value("PId")
> > >   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> > > TypeError: exceptions must be strings, classes, or instances, not
> > > RAPIError
> > >
> >
> > Thinking aloud here.
> >
> > Right, having followed the code through, the initial exception is caused
> > by the value "PId" not existing in one of the subkeys in "\Software
> > \Microsoft\Windows CE Services\Partners". This is perfectly normal,
> > meaning one of the partnership slots is empty.
> >
> > However, the reg function has to indicate that the key doesn't exist,
> > and so raises a RAPIError. This exception will be caught by sync-engine,
> > because it is an expected result. However, python instead raises a
> > TypeError because it doesn't think RAPIError is a 'string, class or
> > instance'. Our confusion arises because in pyrapi2.pyx RAPIError is
> > clearly defined as a class that is derived from the Exception class.
> >
> > Could this be a pyrex problem ?
> >
> > Alessandro, could you rebuild librapi2 and send the log of the whole
> > build ? Also, after the build in the python directory of the build tree
> > will hopefully be a pyrapi2.c file, could you also send that. What
> > version of pyrex do you have ?
> >
> > Mark
> >
> I don't really know how it is possible, but now it works. The last steps
> I do to understand the problem and to obtain the log of the build were:
>      1. update my portage and layman to be sure to have the last version
>         of all packages;
>      2. upgrade the pyrex package to version 0.9.8.5;
Curiouser and curiouser. Do you know what the pyrex version was before ?

Federico, can you check what pyrex version you have ?

>      3. remove the previous installation of synce version 0.12,
>         including configuration directory;
>      4. install synce version 0.12 following the instruction on the
>         site.
> Results...I try to connect and disconnect the cable and every time
> list_partnership show me the correct value.
> The only difference I can see is in the Wireless Manager screen of my
> i600, now when I connect the cable with the wireless turned on, the
> wireless button disappeared and the connection to the AP closed.
>
> Thank you for your help, and I hope that the above little summary can
> useful to someone else to resolve this problem.
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

signature.asc (204 bytes) Download Attachment

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Alessandro Cristiani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2008-11-28 at 09:16 +0000, Mark Ellis wrote:

> On Fri, 2008-11-28 at 09:49 +0100, Alessandro Cristiani wrote:
> > On Sat, 2008-11-22 at 11:13 +0000, Mark Ellis wrote:
> > > On Sat, 2008-11-22 at 01:48 +0100, Alessandro Cristiani wrote:
> > > > On Fri, 2008-11-21 at 17:02 +0000, Mark Ellis wrote:
> > > > > On Fri, 2008-11-21 at 11:27 +0100, Alessandro Cristiani wrote:
> > > > > > On Fri, 2008-11-21 at 01:16 +0100, Federico Ferri wrote:
> > > > > > > -----BEGIN PGP SIGNED MESSAGE-----
> > > > > > > Hash: SHA1
> > > > > > >
> > > > > > > Dr J A Gow wrote:
> > > > > > > > On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
> > > > > > > >> -----BEGIN PGP SIGNED MESSAGE-----
> > > > > > > >> Hash: SHA1
> > > > > > > >>
> > > > > > > >> Alessandro Cristiani wrote:
> > > > > > > >>>>> Hi Federico, Alessandro I have copied you on this because it seems
> > > > > > > >>>>> to be
> > > > > > > >>>>> a similar problem.
> > > > > > > >>>>>
> > > > > > > >>>>> You are both experiencing the TypeError exception, which should not
> > > > > > > >>>>> occur, and only seems to be happening on Gentoo. There is another
> > > > > > > report
> > > > > > > >>>>> in sourceforge bug 2249289. I would deduce from this that there is a
> > > > > > > >>>>> problem with the python module of librapi2 in gentoo. I have no idea
> > > > > > > >>>>> about gentoo, can you think of what might be causing this ?
> > > > > > > >>>>>
> > > > > > > >>>>> Mark
> > > > > > > >>>>>
> > > > > > > >>>> Hi,
> > > > > > > >>>> I don't know which are the differences, but if you think that it can
> > > > > > > >>>> help I can compare the official source with the gentoo one.
> > > > > > > >>>>
> > > > > > > >>> Hi,
> > > > > > > >>> I look inside the gentoo overlay and I'm quite sure that the librapy2 is
> > > > > > > >>> the same of the official, I compared the version 0.11.1 from sourceforge
> > > > > > > >>> with the one installed on my pc. Reading the ebuild, it seems gentoo get
> > > > > > > >>> the source directly by sourceforge without applying modification.
> > > > > > > >> yes, it's true.
> > > > > > > >> it gets installed with ./configure && make && make install without
> > > > > > > >> modifications.
> > > > > > > >>
> > > > > > > >> Mark: is there a testsuite to run, or a simple test case that could
> > > > > > > >> help spotting this problem?
> > > > > > > >>
> > > > > > > >> - --
> > > > > > > >
> > > > > > > >
> > > > > > > > Since this one seems not to be a packaging issue I will investigate it
> > > > > > > > further in the sources.
> > > > > > > >
> > > > > > > >     John.
> > > > > > > >
> > > > > > >
> > > > > > > I just installed dbus-python-0.83.0 and problem disappeared (thanks to
> > > > > > > Iain for the suggestion)
> > > > > > >
> > > > > > > versions 0.82.4 and 0.80.2 have this problem (and maybe more)
> > > > > > >
> > > > > > Sorry but in my case the problem persists. I update the dbus-python to
> > > > > > the version 0.83.0 then I recreate the partnership. At this point I
> > > > > > disconnect the cable and then I reconnect it.
> > > > > > The output of the command list_partnership is empty and the output of
> > > > > > the sync-engine display the same error of the previous version.
> > > > > > Maybe I can try to uninstall all synce related packages, can be a valid
> > > > > > test?
> > > > > >
> > > > >
> > > > > Alessandro, is it _exactly_ the same error ? You may still get a
> > > > > traceback because of an error, but if it isn't that strange TypeError we
> > > > > may be able to figure out why.
> > > > >
> > > > > Mark
> > > > >
> > > > Hi,
> > > > I do some test but nothing change. The following is a summary of what I
> > > > do and what was the error, I hope it can be useful to solve the problem.
> > > > First of all, after installing dev-python/dbus-python package I
> > > > restarted my computer and I try to create a new partnership. I try to
> > > > disconnect and reconnect the cable and the result was the following
> > > > error:
> > > > Traceback (most recent call last):
> > > >   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
> > > > in maybe_handle_message
> > > >     self._handler(*args, **kwargs)
> > > >   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > > > 195, in _CBDeviceConnected
> > > >     self.OnConnect()
> > > >   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > > > 324, in OnConnect
> > > >     self.PshipManager.AttemptToBind()
> > > >   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > > > 372, in AttemptToBind
> > > >     self._ReadDevicePartnerships()
> > > >   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > > > 72, in _ReadDevicePartnerships
> > > >     id = key.query_value("PId")
> > > >   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> > > > TypeError: exceptions must be strings, classes, or instances, not
> > > > RAPIError
> > > >
> > > > Then I tried to unistall all synce related packages and following the
> > > > instruction on www.synce.org I installed the synce-0.12 and the
> > > > libopensinc-0.22 packages. After this I tried to create a new
> > > > partnership and the resul was:
> > > > 2008-11-22 01:38:11,556 ERROR dbus.connection : Exception in handler for
> > > > D-Bus signal:
> > > > Traceback (most recent call last):
> > > >   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
> > > > in maybe_handle_message
> > > >     self._handler(*args, **kwargs)
> > > >   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > > > 212, in _CBDeviceConnected
> > > >     self.OnConnect()
> > > >   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > > > 427, in OnConnect
> > > >     self.PshipManager.AttemptToBind()
> > > >   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > > > 372, in AttemptToBind
> > > >     self._ReadDevicePartnerships()
> > > >   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > > > 72, in _ReadDevicePartnerships
> > > >     id = key.query_value("PId")
> > > >   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> > > > TypeError: exceptions must be strings, classes, or instances, not
> > > > RAPIError
> > > >
> > >
> > > Thinking aloud here.
> > >
> > > Right, having followed the code through, the initial exception is caused
> > > by the value "PId" not existing in one of the subkeys in "\Software
> > > \Microsoft\Windows CE Services\Partners". This is perfectly normal,
> > > meaning one of the partnership slots is empty.
> > >
> > > However, the reg function has to indicate that the key doesn't exist,
> > > and so raises a RAPIError. This exception will be caught by sync-engine,
> > > because it is an expected result. However, python instead raises a
> > > TypeError because it doesn't think RAPIError is a 'string, class or
> > > instance'. Our confusion arises because in pyrapi2.pyx RAPIError is
> > > clearly defined as a class that is derived from the Exception class.
> > >
> > > Could this be a pyrex problem ?
> > >
> > > Alessandro, could you rebuild librapi2 and send the log of the whole
> > > build ? Also, after the build in the python directory of the build tree
> > > will hopefully be a pyrapi2.c file, could you also send that. What
> > > version of pyrex do you have ?
> > >
> > > Mark
> > >
> > I don't really know how it is possible, but now it works. The last steps
> > I do to understand the problem and to obtain the log of the build were:
> >      1. update my portage and layman to be sure to have the last version
> >         of all packages;
> >      2. upgrade the pyrex package to version 0.9.8.5;
>
> Curiouser and curiouser. Do you know what the pyrex version was before ?
>
I am not sure, but may be it was version 0.9.4.1


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Federico Ferri-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark Ellis wrote:

> On Fri, 2008-11-28 at 09:49 +0100, Alessandro Cristiani wrote:
>> On Sat, 2008-11-22 at 11:13 +0000, Mark Ellis wrote:
>>> On Sat, 2008-11-22 at 01:48 +0100, Alessandro Cristiani wrote:
>>>> On Fri, 2008-11-21 at 17:02 +0000, Mark Ellis wrote:
>>>>> On Fri, 2008-11-21 at 11:27 +0100, Alessandro Cristiani wrote:
>>>>>> On Fri, 2008-11-21 at 01:16 +0100, Federico Ferri wrote:
>>>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>>>> Hash: SHA1
>>>>>>>
>>>>>>> Dr J A Gow wrote:
>>>>>>>> On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
>>>>>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>>>>>> Hash: SHA1
>>>>>>>>>
>>>>>>>>> Alessandro Cristiani wrote:
>>>>>>>>>>>> Hi Federico, Alessandro I have copied you on this because it
seems
>>>>>>>>>>>> to be
>>>>>>>>>>>> a similar problem.
>>>>>>>>>>>>
>>>>>>>>>>>> You are both experiencing the TypeError exception, which
should not
>>>>>>>>>>>> occur, and only seems to be happening on Gentoo. There is
another
>>>>>>> report
>>>>>>>>>>>> in sourceforge bug 2249289. I would deduce from this that
there is a
>>>>>>>>>>>> problem with the python module of librapi2 in gentoo. I have
no idea
>>>>>>>>>>>> about gentoo, can you think of what might be causing this ?
>>>>>>>>>>>>
>>>>>>>>>>>> Mark
>>>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>> I don't know which are the differences, but if you think that
it can
>>>>>>>>>>> help I can compare the official source with the gentoo one.
>>>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>> I look inside the gentoo overlay and I'm quite sure that the
librapy2 is
>>>>>>>>>> the same of the official, I compared the version 0.11.1 from
sourceforge
>>>>>>>>>> with the one installed on my pc. Reading the ebuild, it seems
gentoo get

>>>>>>>>>> the source directly by sourceforge without applying modification.
>>>>>>>>> yes, it's true.
>>>>>>>>> it gets installed with ./configure && make && make install without
>>>>>>>>> modifications.
>>>>>>>>>
>>>>>>>>> Mark: is there a testsuite to run, or a simple test case that could
>>>>>>>>> help spotting this problem?
>>>>>>>>>
>>>>>>>>> - --
>>>>>>>>
>>>>>>>> Since this one seems not to be a packaging issue I will
investigate it
>>>>>>>> further in the sources.
>>>>>>>>
>>>>>>>>     John.
>>>>>>>>
>>>>>>> I just installed dbus-python-0.83.0 and problem disappeared
(thanks to

>>>>>>> Iain for the suggestion)
>>>>>>>
>>>>>>> versions 0.82.4 and 0.80.2 have this problem (and maybe more)
>>>>>>>
>>>>>> Sorry but in my case the problem persists. I update the dbus-python to
>>>>>> the version 0.83.0 then I recreate the partnership. At this point I
>>>>>> disconnect the cable and then I reconnect it.
>>>>>> The output of the command list_partnership is empty and the output of
>>>>>> the sync-engine display the same error of the previous version.
>>>>>> Maybe I can try to uninstall all synce related packages, can be a
valid
>>>>>> test?
>>>>>>
>>>>> Alessandro, is it _exactly_ the same error ? You may still get a
>>>>> traceback because of an error, but if it isn't that strange
TypeError we

>>>>> may be able to figure out why.
>>>>>
>>>>> Mark
>>>>>
>>>> Hi,
>>>> I do some test but nothing change. The following is a summary of what I
>>>> do and what was the error, I hope it can be useful to solve the problem.
>>>> First of all, after installing dev-python/dbus-python package I
>>>> restarted my computer and I try to create a new partnership. I try to
>>>> disconnect and reconnect the cable and the result was the following
>>>> error:
>>>> Traceback (most recent call last):
>>>>   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
>>>> in maybe_handle_message
>>>>     self._handler(*args, **kwargs)
>>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
>>>> 195, in _CBDeviceConnected
>>>>     self.OnConnect()
>>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
>>>> 324, in OnConnect
>>>>     self.PshipManager.AttemptToBind()
>>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
>>>> 372, in AttemptToBind
>>>>     self._ReadDevicePartnerships()
>>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
>>>> 72, in _ReadDevicePartnerships
>>>>     id = key.query_value("PId")
>>>>   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
>>>> TypeError: exceptions must be strings, classes, or instances, not
>>>> RAPIError
>>>>
>>>> Then I tried to unistall all synce related packages and following the
>>>> instruction on www.synce.org I installed the synce-0.12 and the
>>>> libopensinc-0.22 packages. After this I tried to create a new
>>>> partnership and the resul was:
>>>> 2008-11-22 01:38:11,556 ERROR dbus.connection : Exception in handler for
>>>> D-Bus signal:
>>>> Traceback (most recent call last):
>>>>   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
>>>> in maybe_handle_message
>>>>     self._handler(*args, **kwargs)
>>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
>>>> 212, in _CBDeviceConnected
>>>>     self.OnConnect()
>>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
>>>> 427, in OnConnect
>>>>     self.PshipManager.AttemptToBind()
>>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
>>>> 372, in AttemptToBind
>>>>     self._ReadDevicePartnerships()
>>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
>>>> 72, in _ReadDevicePartnerships
>>>>     id = key.query_value("PId")
>>>>   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
>>>> TypeError: exceptions must be strings, classes, or instances, not
>>>> RAPIError
>>>>
>>> Thinking aloud here.
>>>
>>> Right, having followed the code through, the initial exception is caused
>>> by the value "PId" not existing in one of the subkeys in "\Software
>>> \Microsoft\Windows CE Services\Partners". This is perfectly normal,
>>> meaning one of the partnership slots is empty.
>>>
>>> However, the reg function has to indicate that the key doesn't exist,
>>> and so raises a RAPIError. This exception will be caught by sync-engine,
>>> because it is an expected result. However, python instead raises a
>>> TypeError because it doesn't think RAPIError is a 'string, class or
>>> instance'. Our confusion arises because in pyrapi2.pyx RAPIError is
>>> clearly defined as a class that is derived from the Exception class.
>>>
>>> Could this be a pyrex problem ?
>>>
>>> Alessandro, could you rebuild librapi2 and send the log of the whole
>>> build ? Also, after the build in the python directory of the build tree
>>> will hopefully be a pyrapi2.c file, could you also send that. What
>>> version of pyrex do you have ?
>>>
>>> Mark
>>>
>> I don't really know how it is possible, but now it works. The last steps
>> I do to understand the problem and to obtain the log of the build were:
>>      1. update my portage and layman to be sure to have the last version
>>         of all packages;
>>      2. upgrade the pyrex package to version 0.9.8.5;
>
> Curiouser and curiouser. Do you know what the pyrex version was before ?
>
> Federico, can you check what pyrex version you have ?
>

sorry, I disappeared, without even finish reporting my issues. (really
busy with work, school and life)

after the upgrade of dbus python I don't know what happened, but the
error disappeared, but the it returned after a while (it can be on the
next boot)

I have pyrex 0.9.4.1
maybe I'll be able to help a bit with debugging in the we

bye

>>      3. remove the previous installation of synce version 0.12,
>>         including configuration directory;
>>      4. install synce version 0.12 following the instruction on the
>>         site.
>> Results...I try to connect and disconnect the cable and every time
>> list_partnership show me the correct value.
>> The only difference I can see is in the Wireless Manager screen of my
>> i600, now when I connect the cable with the wireless turned on, the
>> wireless button disappeared and the connection to the AP closed.
>>
>> Thank you for your help, and I hope that the above little summary can
>> useful to someone else to resolve this problem.
>>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkv8xMACgkQV/B5axfzrPvP/gCfbvsbb4x+mB3IZ2zVH1lXc6kN
L4MAoKX/hWaBSZa8DJMgM2Ca/5Sk8RGI
=Tiu0
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Alessandro Cristiani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2008-11-28 at 14:33 +0100, Federico Ferri wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Mark Ellis wrote:
> > On Fri, 2008-11-28 at 09:49 +0100, Alessandro Cristiani wrote:
> >> On Sat, 2008-11-22 at 11:13 +0000, Mark Ellis wrote:
> >>> On Sat, 2008-11-22 at 01:48 +0100, Alessandro Cristiani wrote:
> >>>> On Fri, 2008-11-21 at 17:02 +0000, Mark Ellis wrote:
> >>>>> On Fri, 2008-11-21 at 11:27 +0100, Alessandro Cristiani wrote:
> >>>>>> On Fri, 2008-11-21 at 01:16 +0100, Federico Ferri wrote:
> >>>>>>> -----BEGIN PGP SIGNED MESSAGE-----
> >>>>>>> Hash: SHA1
> >>>>>>>
> >>>>>>> Dr J A Gow wrote:
> >>>>>>>> On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
> >>>>>>>>> -----BEGIN PGP SIGNED MESSAGE-----
> >>>>>>>>> Hash: SHA1
> >>>>>>>>>
> >>>>>>>>> Alessandro Cristiani wrote:
> >>>>>>>>>>>> Hi Federico, Alessandro I have copied you on this because it
> seems
> >>>>>>>>>>>> to be
> >>>>>>>>>>>> a similar problem.
> >>>>>>>>>>>>
> >>>>>>>>>>>> You are both experiencing the TypeError exception, which
> should not
> >>>>>>>>>>>> occur, and only seems to be happening on Gentoo. There is
> another
> >>>>>>> report
> >>>>>>>>>>>> in sourceforge bug 2249289. I would deduce from this that
> there is a
> >>>>>>>>>>>> problem with the python module of librapi2 in gentoo. I have
> no idea
> >>>>>>>>>>>> about gentoo, can you think of what might be causing this ?
> >>>>>>>>>>>>
> >>>>>>>>>>>> Mark
> >>>>>>>>>>>>
> >>>>>>>>>>> Hi,
> >>>>>>>>>>> I don't know which are the differences, but if you think that
> it can
> >>>>>>>>>>> help I can compare the official source with the gentoo one.
> >>>>>>>>>>>
> >>>>>>>>>> Hi,
> >>>>>>>>>> I look inside the gentoo overlay and I'm quite sure that the
> librapy2 is
> >>>>>>>>>> the same of the official, I compared the version 0.11.1 from
> sourceforge
> >>>>>>>>>> with the one installed on my pc. Reading the ebuild, it seems
> gentoo get
> >>>>>>>>>> the source directly by sourceforge without applying modification.
> >>>>>>>>> yes, it's true.
> >>>>>>>>> it gets installed with ./configure && make && make install without
> >>>>>>>>> modifications.
> >>>>>>>>>
> >>>>>>>>> Mark: is there a testsuite to run, or a simple test case that could
> >>>>>>>>> help spotting this problem?
> >>>>>>>>>
> >>>>>>>>> - --
> >>>>>>>>
> >>>>>>>> Since this one seems not to be a packaging issue I will
> investigate it
> >>>>>>>> further in the sources.
> >>>>>>>>
> >>>>>>>>     John.
> >>>>>>>>
> >>>>>>> I just installed dbus-python-0.83.0 and problem disappeared
> (thanks to
> >>>>>>> Iain for the suggestion)
> >>>>>>>
> >>>>>>> versions 0.82.4 and 0.80.2 have this problem (and maybe more)
> >>>>>>>
> >>>>>> Sorry but in my case the problem persists. I update the dbus-python to
> >>>>>> the version 0.83.0 then I recreate the partnership. At this point I
> >>>>>> disconnect the cable and then I reconnect it.
> >>>>>> The output of the command list_partnership is empty and the output of
> >>>>>> the sync-engine display the same error of the previous version.
> >>>>>> Maybe I can try to uninstall all synce related packages, can be a
> valid
> >>>>>> test?
> >>>>>>
> >>>>> Alessandro, is it _exactly_ the same error ? You may still get a
> >>>>> traceback because of an error, but if it isn't that strange
> TypeError we
> >>>>> may be able to figure out why.
> >>>>>
> >>>>> Mark
> >>>>>
> >>>> Hi,
> >>>> I do some test but nothing change. The following is a summary of what I
> >>>> do and what was the error, I hope it can be useful to solve the problem.
> >>>> First of all, after installing dev-python/dbus-python package I
> >>>> restarted my computer and I try to create a new partnership. I try to
> >>>> disconnect and reconnect the cable and the result was the following
> >>>> error:
> >>>> Traceback (most recent call last):
> >>>>   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
> >>>> in maybe_handle_message
> >>>>     self._handler(*args, **kwargs)
> >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> >>>> 195, in _CBDeviceConnected
> >>>>     self.OnConnect()
> >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> >>>> 324, in OnConnect
> >>>>     self.PshipManager.AttemptToBind()
> >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> >>>> 372, in AttemptToBind
> >>>>     self._ReadDevicePartnerships()
> >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> >>>> 72, in _ReadDevicePartnerships
> >>>>     id = key.query_value("PId")
> >>>>   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> >>>> TypeError: exceptions must be strings, classes, or instances, not
> >>>> RAPIError
> >>>>
> >>>> Then I tried to unistall all synce related packages and following the
> >>>> instruction on www.synce.org I installed the synce-0.12 and the
> >>>> libopensinc-0.22 packages. After this I tried to create a new
> >>>> partnership and the resul was:
> >>>> 2008-11-22 01:38:11,556 ERROR dbus.connection : Exception in handler for
> >>>> D-Bus signal:
> >>>> Traceback (most recent call last):
> >>>>   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
> >>>> in maybe_handle_message
> >>>>     self._handler(*args, **kwargs)
> >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> >>>> 212, in _CBDeviceConnected
> >>>>     self.OnConnect()
> >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> >>>> 427, in OnConnect
> >>>>     self.PshipManager.AttemptToBind()
> >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> >>>> 372, in AttemptToBind
> >>>>     self._ReadDevicePartnerships()
> >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> >>>> 72, in _ReadDevicePartnerships
> >>>>     id = key.query_value("PId")
> >>>>   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> >>>> TypeError: exceptions must be strings, classes, or instances, not
> >>>> RAPIError
> >>>>
> >>> Thinking aloud here.
> >>>
> >>> Right, having followed the code through, the initial exception is caused
> >>> by the value "PId" not existing in one of the subkeys in "\Software
> >>> \Microsoft\Windows CE Services\Partners". This is perfectly normal,
> >>> meaning one of the partnership slots is empty.
> >>>
> >>> However, the reg function has to indicate that the key doesn't exist,
> >>> and so raises a RAPIError. This exception will be caught by sync-engine,
> >>> because it is an expected result. However, python instead raises a
> >>> TypeError because it doesn't think RAPIError is a 'string, class or
> >>> instance'. Our confusion arises because in pyrapi2.pyx RAPIError is
> >>> clearly defined as a class that is derived from the Exception class.
> >>>
> >>> Could this be a pyrex problem ?
> >>>
> >>> Alessandro, could you rebuild librapi2 and send the log of the whole
> >>> build ? Also, after the build in the python directory of the build tree
> >>> will hopefully be a pyrapi2.c file, could you also send that. What
> >>> version of pyrex do you have ?
> >>>
> >>> Mark
> >>>
> >> I don't really know how it is possible, but now it works. The last steps
> >> I do to understand the problem and to obtain the log of the build were:
> >>      1. update my portage and layman to be sure to have the last version
> >>         of all packages;
> >>      2. upgrade the pyrex package to version 0.9.8.5;
> >
> > Curiouser and curiouser. Do you know what the pyrex version was before ?
> >
> > Federico, can you check what pyrex version you have ?
> >
>
> sorry, I disappeared, without even finish reporting my issues. (really
> busy with work, school and life)
>
> after the upgrade of dbus python I don't know what happened, but the
> error disappeared, but the it returned after a while (it can be on the
> next boot)
>
> I have pyrex 0.9.4.1
> maybe I'll be able to help a bit with debugging in the we
>
> bye
Federico since we had the same error and the same version of pyrex, and
since when I updated the pyrex package the error disappeared, I think
that a useful test can be upgrading the pyrex package; to do so, I added
the package name to the portage.keywords file.

bye

>
> >>      3. remove the previous installation of synce version 0.12,
> >>         including configuration directory;
> >>      4. install synce version 0.12 following the instruction on the
> >>         site.
> >> Results...I try to connect and disconnect the cable and every time
> >> list_partnership show me the correct value.
> >> The only difference I can see is in the Wireless Manager screen of my
> >> i600, now when I connect the cable with the wireless turned on, the
> >> wireless button disappeared and the connection to the AP closed.
> >>
> >> Thank you for your help, and I hope that the above little summary can
> >> useful to someone else to resolve this problem.
> >>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkkv8xMACgkQV/B5axfzrPvP/gCfbvsbb4x+mB3IZ2zVH1lXc6kN
> L4MAoKX/hWaBSZa8DJMgM2Ca/5Sk8RGI
> =Tiu0
> -----END PGP SIGNATURE-----
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Mark Ellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2008-11-28 at 14:45 +0100, Alessandro Cristiani wrote:

> On Fri, 2008-11-28 at 14:33 +0100, Federico Ferri wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > >>>>>>>
> > >>>>>>> Dr J A Gow wrote:
> > >>>>>>>> On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
> > >>>>>>>>> -----BEGIN PGP SIGNED MESSAGE-----
> > >>>>>>>>> Hash: SHA1
> > >>>>>>>>>
> > >>>>>>>>> Alessandro Cristiani wrote:
> > >>>>>>>>>>>> Hi Federico, Alessandro I have copied you on this because it
> > seems
> > >>>>>>>>>>>> to be
> > >>>>>>>>>>>> a similar problem.
> > >>>>>>>>>>>>
> > >>>>>>>>>>>> You are both experiencing the TypeError exception, which
> > should not
> > >>>>>>>>>>>> occur, and only seems to be happening on Gentoo. There is
> > another
> > >>>>>>> report
> > >>>>>>>>>>>> in sourceforge bug 2249289. I would deduce from this that
> > there is a
> > >>>>>>>>>>>> problem with the python module of librapi2 in gentoo. I have
> > no idea
> > >>>>>>>>>>>> about gentoo, can you think of what might be causing this ?
> > >>>>>>>>>>>>
> > >>>>>>>>>>>> Mark
> > >>>>>>>>>>>>
> > >>>>>>>>>>> Hi,
> > >>>>>>>>>>> I don't know which are the differences, but if you think that
> > it can
> > >>>>>>>>>>> help I can compare the official source with the gentoo one.
> > >>>>>>>>>>>
> > >>>>>>>>>> Hi,
> > >>>>>>>>>> I look inside the gentoo overlay and I'm quite sure that the
> > librapy2 is
> > >>>>>>>>>> the same of the official, I compared the version 0.11.1 from
> > sourceforge
> > >>>>>>>>>> with the one installed on my pc. Reading the ebuild, it seems
> > gentoo get
> > >>>>>>>>>> the source directly by sourceforge without applying modification.
> > >>>>>>>>
> > >>>>>>> I just installed dbus-python-0.83.0 and problem disappeared
> > (thanks to
> > >>>>>>> Iain for the suggestion)
> > >>>>>>>
> > >>>>>>> versions 0.82.4 and 0.80.2 have this problem (and maybe more)
> > >>>>>>>
> > >>>>>> Sorry but in my case the problem persists. I update the dbus-python to
> > >>>>>> the version 0.83.0 then I recreate the partnership. At this point I
> > >>>>>> disconnect the cable and then I reconnect it.
> > >>>>>> The output of the command list_partnership is empty and the output of
> > >>>>>> the sync-engine display the same error of the previous version.
> > >>>>>> Maybe I can try to uninstall all synce related packages, can be a
> > valid
> > >>>>>> test?
> > >>>>>>
> > >>>>>
> > >>>> Hi,
> > >>>> I do some test but nothing change. The following is a summary of what I
> > >>>> do and what was the error, I hope it can be useful to solve the problem.
> > >>>> First of all, after installing dev-python/dbus-python package I
> > >>>> restarted my computer and I try to create a new partnership. I try to
> > >>>> disconnect and reconnect the cable and the result was the following
> > >>>> error:
> > >>>> Traceback (most recent call last):
> > >>>>   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
> > >>>> in maybe_handle_message
> > >>>>     self._handler(*args, **kwargs)
> > >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > >>>> 195, in _CBDeviceConnected
> > >>>>     self.OnConnect()
> > >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > >>>> 324, in OnConnect
> > >>>>     self.PshipManager.AttemptToBind()
> > >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > >>>> 372, in AttemptToBind
> > >>>>     self._ReadDevicePartnerships()
> > >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > >>>> 72, in _ReadDevicePartnerships
> > >>>>     id = key.query_value("PId")
> > >>>>   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> > >>>> TypeError: exceptions must be strings, classes, or instances, not
> > >>>> RAPIError
> > >>>>
> > >>> Thinking aloud here.
> > >>>
> > >>> Right, having followed the code through, the initial exception is caused
> > >>> by the value "PId" not existing in one of the subkeys in "\Software
> > >>> \Microsoft\Windows CE Services\Partners". This is perfectly normal,
> > >>> meaning one of the partnership slots is empty.
> > >>>
> > >>> However, the reg function has to indicate that the key doesn't exist,
> > >>> and so raises a RAPIError. This exception will be caught by sync-engine,
> > >>> because it is an expected result. However, python instead raises a
> > >>> TypeError because it doesn't think RAPIError is a 'string, class or
> > >>> instance'. Our confusion arises because in pyrapi2.pyx RAPIError is
> > >>> clearly defined as a class that is derived from the Exception class.
> > >>>
> > >>> Could this be a pyrex problem ?
> > >>>
> > >>> Alessandro, could you rebuild librapi2 and send the log of the whole
> > >>> build ? Also, after the build in the python directory of the build tree
> > >>> will hopefully be a pyrapi2.c file, could you also send that. What
> > >>> version of pyrex do you have ?
> > >>>
> > >>> Mark
> > >>>
> > >> I don't really know how it is possible, but now it works. The last steps
> > >> I do to understand the problem and to obtain the log of the build were:
> > >>      1. update my portage and layman to be sure to have the last version
> > >>         of all packages;
> > >>      2. upgrade the pyrex package to version 0.9.8.5;
> > >
> > > Curiouser and curiouser. Do you know what the pyrex version was before ?
> > >
> > > Federico, can you check what pyrex version you have ?
> > >
> >
> > sorry, I disappeared, without even finish reporting my issues. (really
> > busy with work, school and life)
> >
> > after the upgrade of dbus python I don't know what happened, but the
> > error disappeared, but the it returned after a while (it can be on the
> > next boot)
> >
> > I have pyrex 0.9.4.1
> > maybe I'll be able to help a bit with debugging in the we
> >
> > bye
> Federico since we had the same error and the same version of pyrex, and
> since when I updated the pyrex package the error disappeared, I think
> that a useful test can be upgrading the pyrex package; to do so, I added
> the package name to the portage.keywords file.
>
I think this _may_ be a pyrex/python version combo thing, though I'm
still not sure, need to try with a machine that doesn't have python 2.5.

Alessandro, what python version are you using ? Do you thing it changed
when you upgraded pyrex ? Federico, how about you ?

Mark



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

signature.asc (204 bytes) Download Attachment

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Alessandro Cristiani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2008-12-09 at 08:31 +0000, Mark Ellis wrote:

> On Fri, 2008-11-28 at 14:45 +0100, Alessandro Cristiani wrote:
> > On Fri, 2008-11-28 at 14:33 +0100, Federico Ferri wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > >>>>>>>
> > > >>>>>>> Dr J A Gow wrote:
> > > >>>>>>>> On Thu, 2008-11-20 at 23:31 +0100, Federico Ferri wrote:
> > > >>>>>>>>> -----BEGIN PGP SIGNED MESSAGE-----
> > > >>>>>>>>> Hash: SHA1
> > > >>>>>>>>>
> > > >>>>>>>>> Alessandro Cristiani wrote:
> > > >>>>>>>>>>>> Hi Federico, Alessandro I have copied you on this because it
> > > seems
> > > >>>>>>>>>>>> to be
> > > >>>>>>>>>>>> a similar problem.
> > > >>>>>>>>>>>>
> > > >>>>>>>>>>>> You are both experiencing the TypeError exception, which
> > > should not
> > > >>>>>>>>>>>> occur, and only seems to be happening on Gentoo. There is
> > > another
> > > >>>>>>> report
> > > >>>>>>>>>>>> in sourceforge bug 2249289. I would deduce from this that
> > > there is a
> > > >>>>>>>>>>>> problem with the python module of librapi2 in gentoo. I have
> > > no idea
> > > >>>>>>>>>>>> about gentoo, can you think of what might be causing this ?
> > > >>>>>>>>>>>>
> > > >>>>>>>>>>>> Mark
> > > >>>>>>>>>>>>
> > > >>>>>>>>>>> Hi,
> > > >>>>>>>>>>> I don't know which are the differences, but if you think that
> > > it can
> > > >>>>>>>>>>> help I can compare the official source with the gentoo one.
> > > >>>>>>>>>>>
> > > >>>>>>>>>> Hi,
> > > >>>>>>>>>> I look inside the gentoo overlay and I'm quite sure that the
> > > librapy2 is
> > > >>>>>>>>>> the same of the official, I compared the version 0.11.1 from
> > > sourceforge
> > > >>>>>>>>>> with the one installed on my pc. Reading the ebuild, it seems
> > > gentoo get
> > > >>>>>>>>>> the source directly by sourceforge without applying modification.
> > > >>>>>>>>
> > > >>>>>>> I just installed dbus-python-0.83.0 and problem disappeared
> > > (thanks to
> > > >>>>>>> Iain for the suggestion)
> > > >>>>>>>
> > > >>>>>>> versions 0.82.4 and 0.80.2 have this problem (and maybe more)
> > > >>>>>>>
> > > >>>>>> Sorry but in my case the problem persists. I update the dbus-python to
> > > >>>>>> the version 0.83.0 then I recreate the partnership. At this point I
> > > >>>>>> disconnect the cable and then I reconnect it.
> > > >>>>>> The output of the command list_partnership is empty and the output of
> > > >>>>>> the sync-engine display the same error of the previous version.
> > > >>>>>> Maybe I can try to uninstall all synce related packages, can be a
> > > valid
> > > >>>>>> test?
> > > >>>>>>
> > > >>>>>
> > > >>>> Hi,
> > > >>>> I do some test but nothing change. The following is a summary of what I
> > > >>>> do and what was the error, I hope it can be useful to solve the problem.
> > > >>>> First of all, after installing dev-python/dbus-python package I
> > > >>>> restarted my computer and I try to create a new partnership. I try to
> > > >>>> disconnect and reconnect the cable and the result was the following
> > > >>>> error:
> > > >>>> Traceback (most recent call last):
> > > >>>>   File "//usr/lib/python2.5/site-packages/dbus/connection.py", line 214,
> > > >>>> in maybe_handle_message
> > > >>>>     self._handler(*args, **kwargs)
> > > >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > > >>>> 195, in _CBDeviceConnected
> > > >>>>     self.OnConnect()
> > > >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/kernel.py", line
> > > >>>> 324, in OnConnect
> > > >>>>     self.PshipManager.AttemptToBind()
> > > >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > > >>>> 372, in AttemptToBind
> > > >>>>     self._ReadDevicePartnerships()
> > > >>>>   File "/usr/lib/python2.5/site-packages/SyncEngine/pshipmgr.py", line
> > > >>>> 72, in _ReadDevicePartnerships
> > > >>>>     id = key.query_value("PId")
> > > >>>>   File "pyrapi2.pyx", line 297, in pyrapi2.RegKey.query_value
> > > >>>> TypeError: exceptions must be strings, classes, or instances, not
> > > >>>> RAPIError
> > > >>>>
> > > >>> Thinking aloud here.
> > > >>>
> > > >>> Right, having followed the code through, the initial exception is caused
> > > >>> by the value "PId" not existing in one of the subkeys in "\Software
> > > >>> \Microsoft\Windows CE Services\Partners". This is perfectly normal,
> > > >>> meaning one of the partnership slots is empty.
> > > >>>
> > > >>> However, the reg function has to indicate that the key doesn't exist,
> > > >>> and so raises a RAPIError. This exception will be caught by sync-engine,
> > > >>> because it is an expected result. However, python instead raises a
> > > >>> TypeError because it doesn't think RAPIError is a 'string, class or
> > > >>> instance'. Our confusion arises because in pyrapi2.pyx RAPIError is
> > > >>> clearly defined as a class that is derived from the Exception class.
> > > >>>
> > > >>> Could this be a pyrex problem ?
> > > >>>
> > > >>> Alessandro, could you rebuild librapi2 and send the log of the whole
> > > >>> build ? Also, after the build in the python directory of the build tree
> > > >>> will hopefully be a pyrapi2.c file, could you also send that. What
> > > >>> version of pyrex do you have ?
> > > >>>
> > > >>> Mark
> > > >>>
> > > >> I don't really know how it is possible, but now it works. The last steps
> > > >> I do to understand the problem and to obtain the log of the build were:
> > > >>      1. update my portage and layman to be sure to have the last version
> > > >>         of all packages;
> > > >>      2. upgrade the pyrex package to version 0.9.8.5;
> > > >
> > > > Curiouser and curiouser. Do you know what the pyrex version was before ?
> > > >
> > > > Federico, can you check what pyrex version you have ?
> > > >
> > >
> > > sorry, I disappeared, without even finish reporting my issues. (really
> > > busy with work, school and life)
> > >
> > > after the upgrade of dbus python I don't know what happened, but the
> > > error disappeared, but the it returned after a while (it can be on the
> > > next boot)
> > >
> > > I have pyrex 0.9.4.1
> > > maybe I'll be able to help a bit with debugging in the we
> > >
> > > bye
> > Federico since we had the same error and the same version of pyrex, and
> > since when I updated the pyrex package the error disappeared, I think
> > that a useful test can be upgrading the pyrex package; to do so, I added
> > the package name to the portage.keywords file.
> >
>
> I think this _may_ be a pyrex/python version combo thing, though I'm
> still not sure, need to try with a machine that doesn't have python 2.5.
>
> Alessandro, what python version are you using ? Do you thing it changed
> when you upgraded pyrex ? Federico, how about you ?
>
> Mark
>
Hi,
the python version installed is python-2.5.2.
I'm not sure that it was only a pyrex version problem, but starting from
its update to pyrex-0.9.8.5 it began to work.

In your opinion, can be a phone related problem?

Regards
Alessandro


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: partnerships disappearing - TypeError: exceptions must be strings, classes, or instances, not RAPIError

by Dr J A Gow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2008-12-09 at 09:49 +0100, Alessandro Cristiani wrote:

>
> In your opinion, can be a phone related problem?
>

I doubt it's phone related. Phone related problems invariably manifest
themselves as either connection problems (in which case you can't even
pls/pstatus) or problems in the data stream from the phone (that can be
traced through the sync-engine logs). If it started to work with a pyrex
update it points strongly to pyrex as the source of the problem.

I could not reproduce the problem here and tracing the sync-engine
execution path did not show any clear indicators of where the problem
might be.

        John.



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users
< Prev | 1 - 2 | Next >