Skip to content

msgpack 1.0.0 error #648

@bgermann

Description

@bgermann

Running the tests with Python 3.9 gives:

self = <spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bcdf3d940>
ctx = MessagePackMethodContext(
oob_ctx=None,
call_start=1603801847.689902,
call_end=None,
is_closed=False,
app=<sp...t_protocol=<spyne.protocol.msgpack.MessagePackDocument object at 0x7f7bcdf3d670>,
pusher_stack=[],
frozen=True,
))

def gen_method_request_string(self, ctx):
    """Uses information in context object to return a method_request_string.

    Returns a string in the form of "{namespaces}method name".
    """

    mrs, = ctx.in_body_doc.keys()
    if not six.PY2:
      mrs = mrs.decode('utf8')

E AttributeError: 'str' object has no attribute 'decode'

spyne/protocol/msgpack.py:152: AttributeError

See also https://bugs.debian.org/973211

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions