Hi Rob,

Rob Shortt said the following on 11/17/2004 02:28 AM:
Rob Shortt wrote:

File "/opt/freevo/site-packages/mbus/types.py", line 327, in mlistAsString
utf = unicode( mlist, encoding, 'ignore' ).encode( 'utf8' )
TypeError: unicode() argument 2 must be string, not None

I'm using pyMbus-0.8.1. I'm going to walk through the code and find out why encoding is None.

I added two print statements for debug and it mysteriously went away... no joke, this was right after I hit send on that email.

Dischi already told me about this problem and I'm not really sure why this happens. In CVS I've added a fix which checks the ascertained encoding and if its None it is set to iso-8859-15.

Another problem:

On another host i run ./freevo execute src/tv/recordings.py and on the Freevo site I get a crash:
[snip]
TypeError: unbound method __init__() must be called with MError instance as first argument (got MAuthenticationError instance instead)

That was quite a stupid bug. MAuthenticationError.__init__ called MError.__init__, but MAuthenticationError did not inherit MError.

I then tried this on the same host and nothing bad happens. On both hosts in my .mbus file I have SCOPE=LINKLOCAL, both hosts are on the same (internal) network, each machine onlt has one interface.

This exception should be raised, if both Mbus sessions use the same IP address and port, but have a different hash key. If the stupid bug above is fixed this exception is catched internally and passed to the errorFunction as an argument if given.

thanx for the bug report

The next release 0.8.2 will contain this fixes. Release date is hopefully today or tomorrow (as one day after tomorrow I'm on vacation for the next 10 days :-)).

crunchy

--
"Everything should be made as simple as possible, but not simpler."
        (A.Einstein)

Attachment: signature.asc
Description: OpenPGP digital signature



Reply via email to