Type error in byte vector source

In gnuradio I have created a vector source outputing bytes and put the
following as the vector parameter:

tuple(numpy.randint(0,256,1000))

In addition I have an import block with

import numpy

When I run the graph I get the following python error:

TypeError: in method ‘vector_source_b_make’, argument 1 of type

‘std::vector< unsigned char, std::allocator < unsigned char> > const &’

is there some kind of type casting needed? how do i do that?

thanks
Achilleas

tuple(numpy.randint(0,256,1000))

Try map(int, numpy.randint(0,256,1000))

-Sreeraj