Export to GitHub

google-api-python-client - issue #345

no crypto library available


Posted on Jul 8, 2015 by Massive Elephant

[Use this form for both apiclient and oauth2client issues]

What steps will reproduce the problem? 1.The .py file works just fine on my pc until i try to compile it into an .exe file

2.i have narrowed the problem down to this line of code "credentials = SignedJwtAssertionCredentials(json_key['client_email'], bytes(json_key['private_key'], 'utf-8'), scope)"

3.also if i run the same program that worked on my pc on a friends pc it throws the same "no cryto library availibe" exception

What is the expected output? What do you see instead? the expected output is

What version of the product are you using? On what operating system? i am using oauth2client on windows 7

Please provide any additional information below. this is the error message File "online_staus_for_trae.py", line 10, in <module> credentials = SignedJwtAssertionCredentials(json_key['client_email'], bytes( json_key['private_key'], 'utf-8'), scope) File "C:\Python34\lib\site-packages\oauth2client-1.4.11-py3.4.egg\oauth2client \util.py", line 137, in positional_wrapper File "C:\Python34\lib\site-packages\oauth2client-1.4.11-py3.4.egg\oauth2client \client.py", line 1503, in init File "C:\Python34\lib\site-packages\oauth2client-1.4.11-py3.4.egg\oauth2client \client.py", line 1457, in _RequireCryptoOrDie oauth2client.client.CryptoUnavailableError: No crypto library available

Status: New

Labels:
Type-Defect Priority-Medium