Opened 7 years ago

Closed 7 years ago

#226 closed defect (fixed)

b2a_base64() argument 1 must be string or read-only buffer, not None

Reported by: ryanofsky Owned by: Antoine Martin
Priority: major Milestone:
Component: Client Keywords:
Cc:

Description

I'm seeing the following error trying to connect from a 0.12.17 client on lucid to a 0.12.17 server on gentoo:

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/gtk2reactor.py", line 249, in run
    self.__run()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/gtk2reactor.py", line 120, in wrapper
    return real_cb(real_s, condition)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/gtk2reactor.py", line 283, in callback
    self.simulate() # fire Twisted timers
  File "/usr/lib/python2.6/dist-packages/twisted/internet/gtk2reactor.py", line 293, in simulate
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 778, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/pymodules/python2.6/winswitch/client/server_line_connection.py", line 603, in start_login
    self.add_current_user()
  File "/usr/lib/pymodules/python2.6/winswitch/client/server_line_connection.py", line 397, in add_current_user
    self.handler.binencode(settings.xkbmap_query),
  File "/usr/lib/pymodules/python2.6/winswitch/net/protocol.py", line 90, in binencode
    return	binencode(data, self.binary_encodings)
  File "/usr/lib/pymodules/python2.6/winswitch/util/format_util.py", line 21, in binencode
    return	BASE64_PREFIX + base64.b64encode(data)
  File "/usr/lib/python2.6/base64.py", line 53, in b64encode
    encoded = binascii.b2a_base64(s)[:-1]
exceptions.TypeError: b2a_base64() argument 1 must be string or read-only buffer, not None

The connection shows up as successful, but no applications or sessions are available. This problem also happens with 0.12.16, but goes away if I downgrade the client to 0.12.15.

Change History (3)

comment:1 Changed 7 years ago by Antoine Martin

Owner: changed from Antoine Martin to Antoine Martin
Status: newaccepted

comment:2 Changed 7 years ago by Antoine Martin

Does r5118 fix the problem for you?
Applying it by hand on top of previous versions may be a little difficult, so I've made a new beta build for you. (v0.12.18)

Note: lucid is very old and is barely maintained nowadays.. your mileage may vary.

comment:3 Changed 7 years ago by ryanofsky

Resolution: fixed
Status: acceptedclosed

Works perfectly, thanks very much!

Note: See TracTickets for help on using tickets.