This is probably an rpython bug. The translation error when using rlib streamio for me is an assertion error that says something to the effect of "expected a call of streamio to be in this list of methods" - when I then check whether it's in there, that returns true.