You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by register <re...@inode.serveftp.com> on 2009/02/12 04:12:46 UTC

About python command

Hi all,

I am running Qpid C++ on Opensuse 10.2 and CentOS 5.2, then run the command 
below
I have tried the command on both sides, same result

qpidc-0.4/python> ./qpid-route -v link add user/pass@192.168.20.133:5672 
user/pass@localhost:5672
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.5/threading.py", line 460, in __bootstrap
    self.run()
  File "/usr/lib64/python2.5/threading.py", line 440, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/connection.py", line 
172, in run
    self.delegate.received(seg)
  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/delegates.py", line 
46, in received
    getattr(self, attr)(ch, ctl)
  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/delegates.py", line 
160, in connection_start
    ch.connection_start_ok(client_properties=Client.PROPERTIES, 
mechanism=self.mechanism, response=r)
  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/generator.py", line 
25, in <lambda>
    method = lambda self, *args, **kwargs: self.invoke(inst, args, kwargs)
  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/connection.py", line 
200, in invoke
    sc.write_control(ctl)
  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/codec010.py", line 
253, in write_control
    type.encode_fields(self, ctrl)
  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/spec010.py", line 256, 
in encode_fields
    f.type.encode(codec, values[f.name])
  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/spec010.py", line 147, 
in encode
    getattr(codec, "write_%s" % self.name)(value)
  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/codec010.py", line 
162, in write_vbin32
    self.write(b)
  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/codec010.py", line 
296, in write
    self.encoded += s
UnicodeDecodeError: 'ascii' codec can't decode byte 0x90 in position 21: 
ordinal not in range(128)

Thanks
Stephen 


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: About python command

Posted by Ted Ross <tr...@redhat.com>.
Ted Ross wrote:
> register wrote:
>> Hi all,
>>
>> I am running Qpid C++ on Opensuse 10.2 and CentOS 5.2, then run the 
>> command below
>> I have tried the command on both sides, same result
>>
>> qpidc-0.4/python> ./qpid-route -v link add 
>> user/pass@192.168.20.133:5672 user/pass@localhost:5672
>> Exception in thread Thread-1:
>> Traceback (most recent call last):
>>  File "/usr/lib64/python2.5/threading.py", line 460, in __bootstrap
>>    self.run()
>>  File "/usr/lib64/python2.5/threading.py", line 440, in run
>>    self.__target(*self.__args, **self.__kwargs)
>>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/connection.py", 
>> line 172, in run
>>    self.delegate.received(seg)
>>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/delegates.py", 
>> line 46, in received
>>    getattr(self, attr)(ch, ctl)
>>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/delegates.py", 
>> line 160, in connection_start
>>    ch.connection_start_ok(client_properties=Client.PROPERTIES, 
>> mechanism=self.mechanism, response=r)
>>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/generator.py", 
>> line 25, in <lambda>
>>    method = lambda self, *args, **kwargs: self.invoke(inst, args, 
>> kwargs)
>>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/connection.py", 
>> line 200, in invoke
>>    sc.write_control(ctl)
>>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/codec010.py", 
>> line 253, in write_control
>>    type.encode_fields(self, ctrl)
>>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/spec010.py", 
>> line 256, in encode_fields
>>    f.type.encode(codec, values[f.name])
>>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/spec010.py", 
>> line 147, in encode
>>    getattr(codec, "write_%s" % self.name)(value)
>>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/codec010.py", 
>> line 162, in write_vbin32
>>    self.write(b)
>>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/codec010.py", 
>> line 296, in write
>>    self.encoded += s
>> UnicodeDecodeError: 'ascii' codec can't decode byte 0x90 in position 
>> 21: ordinal not in range(128)
>>
>> Thanks
>> Stephen
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
> Stephen,
>
> Thanks for pointing this out.  I'm seeing it on Fedora as well.  I'll 
> see if I can find what's causing the exception.
>
> -Ted
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
Stephen,

The symptom you reported was a bug in the URL handling code.  It has 
been fixed on the SVN trunk.

http://issues.apache.org/jira/browse/QPID-1661

Regards,

-Ted


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: About python command

Posted by Ted Ross <tr...@redhat.com>.
register wrote:
> Hi all,
>
> I am running Qpid C++ on Opensuse 10.2 and CentOS 5.2, then run the 
> command below
> I have tried the command on both sides, same result
>
> qpidc-0.4/python> ./qpid-route -v link add 
> user/pass@192.168.20.133:5672 user/pass@localhost:5672
> Exception in thread Thread-1:
> Traceback (most recent call last):
>  File "/usr/lib64/python2.5/threading.py", line 460, in __bootstrap
>    self.run()
>  File "/usr/lib64/python2.5/threading.py", line 440, in run
>    self.__target(*self.__args, **self.__kwargs)
>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/connection.py", 
> line 172, in run
>    self.delegate.received(seg)
>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/delegates.py", 
> line 46, in received
>    getattr(self, attr)(ch, ctl)
>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/delegates.py", 
> line 160, in connection_start
>    ch.connection_start_ok(client_properties=Client.PROPERTIES, 
> mechanism=self.mechanism, response=r)
>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/generator.py", 
> line 25, in <lambda>
>    method = lambda self, *args, **kwargs: self.invoke(inst, args, kwargs)
>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/connection.py", 
> line 200, in invoke
>    sc.write_control(ctl)
>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/codec010.py", 
> line 253, in write_control
>    type.encode_fields(self, ctrl)
>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/spec010.py", line 
> 256, in encode_fields
>    f.type.encode(codec, values[f.name])
>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/spec010.py", line 
> 147, in encode
>    getattr(codec, "write_%s" % self.name)(value)
>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/codec010.py", 
> line 162, in write_vbin32
>    self.write(b)
>  File "/media/datadisk/daemons/qpidc-0.4/python/qpid/codec010.py", 
> line 296, in write
>    self.encoded += s
> UnicodeDecodeError: 'ascii' codec can't decode byte 0x90 in position 
> 21: ordinal not in range(128)
>
> Thanks
> Stephen
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
Stephen,

Thanks for pointing this out.  I'm seeing it on Fedora as well.  I'll 
see if I can find what's causing the exception.

-Ted


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org