Why am I still getting the error: "CryptoUnavailableError: No crypto library available" in Python? -


i trying make api call through python google's dfa , using suggested code. however, still not saying credentials object defined , throws error:

traceback (most recent call last):   file "<input>", line 2, in <module>   file "c:\python27\lib\site-packages\oauth2client\util.py", line 137, in positional_wrapper     return wrapped(*args, **kwargs)   file "c:\python27\lib\site-packages\oauth2client\client.py", line 1502, in __init__     _requirecryptoordie()   file "c:\python27\lib\site-packages\oauth2client\client.py", line 1456, in _requirecryptoordie     raise cryptounavailableerror('no crypto library available') cryptounavailableerror: no crypto library available 

i have installed pyopenssl library, , pycrypto library vcforpython compiler. have managed edit 3 app.yaml files in liclipse client append:

libraries: - name: pycrypto   version: "latest" 

onto it.

this code looks far arbitrary credentials:

import json     import sys     import apiclient     oauth2client import crypt     import ssl     import urllib2     openssl import crypto       has_openssl = false     has_crypto = false     try:       oauth2client import crypt       has_crypto = true       if crypt.opensslverifier not none:         has_openssl = true     except importerror:       pass   oauth2client.client import signedjwtassertioncredentials      client_email = 'example.apps.googleusercontent.com'      open("c:\my project-1234.p12") f:             private_key = f.read()        credentials = signedjwtassertioncredentials(client_email, private_key,     'https://www.googleapis.com/auth/dfareporting')      httplib2 import http 

i realize there excess in beginning. have not been able past step.

i feel have tried , still getting thrown 'no crypto library' error.

can help? thank you!

ps - using windows 7 , python 2.7 , liclipse.

the above method make api call 'service' google account. retried 'installed application' account new credentials , different way make api call did not require crypto type libraries.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -