krpc.types.Resources to int
CSutter5 opened this issue ยท 4 comments
How can I turn a krpc.types.Resources
variable into an int using python. doing
speed = conn.add_stream(getattr, self.vessel.flight(), 'velocity')
intSpeed = int(speed)
does not work
intSpeed = int(speed)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'Resources'
now im getting
TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'
See the documentation here.