unsupported operand type(s) for pow(): 'unicode', 'long', 'long': Pycrypto
Ian Kelly
ian.g.kelly at gmail.com
Fri Oct 7 14:23:16 EDT 2011
On Fri, Oct 7, 2011 at 11:16 AM, Kayode Odeyemi <dreyemi at gmail.com> wrote:
> Hello everyone,
>
> I'm writing a fairly large app which uses Oauth (python-oauth2). I am trying
> to generate a
> public/private key pair on user supplied parameters (whitespaced-delimited
> strings basically).
>
> When trying to encrypt the key, I'm getting the "unsupported operand type(s)
> for pow(): 'unicode', 'long', 'long'"
>
> From Interactive shell, the program worked successfully.
>
> My question is do I have to make the user supplied data of a non-unicode
> string to make this work?
Please include the traceback and the snippet of code where you make
the call that is failing. Without that, it is not at all clear
exactly what you are doing, especially since python-oauth2 does not
seem to provide any encryption API.
Cheers,
Ian
More information about the Python-list
mailing list