CryptoUnavailableError:没有可用的加密库

时间:2015-08-04 19:45:30

标签: python google-app-engine google-analytics pycrypto

我正在尝试使用python运行AppEngine的应用程序,我将导入示例模块以从Google Analytics https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/service-py获取数据但是当我使用dev_appserver.py运行服务器并转到localhost时:8080 /我在控制台中发现了505错误:

Traceback (most recent call last):
  File "/home/ingdavid/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.3/webapp2.py", line 1511, in __call__
    rv = self.handle_exception(request, response, e)
  File "/home/ingdavid/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.3/webapp2.py", line 1505, in __call__
    rv = self.router.dispatch(request, response)
  File "/home/ingdavid/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.3/webapp2.py", line 1253, in default_dispatcher
    return route.handler_adapter(request, response)
  File "/home/ingdavid/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.3/webapp2.py", line 1077, in __call__
    return handler.dispatch()
  File "/home/ingdavid/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.3/webapp2.py", line 547, in dispatch
    return self.handle_exception(e, self.app.debug)
  File "/home/ingdavid/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.3/webapp2.py", line 545, in dispatch
    return method(*args, **kwargs)
  File "/var/www/repositorios/PYTHON/dashboard/app.py", line 248, in get
    print analyticsH.main()
  File "/var/www/repositorios/PYTHON/dashboard/analyticsH.py", line 111, in main
    service_account_email)
  File "/var/www/repositorios/PYTHON/dashboard/analyticsH.py", line 35, in get_service
    scope=scope)
  File "/var/www/repositorios/PYTHON/dashboard/oauth2client/util.py", line 137, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/var/www/repositorios/PYTHON/dashboard/oauth2client/client.py", line 1503, in __init__   _RequireCryptoOrDie()
  File "/var/www/repositorios/PYTHON/dashboard/oauth2client/client.py", line 1457, in _RequireCryptoOrDie
    raise CryptoUnavailableError('No crypto library available')
CryptoUnavailableError: No crypto library available

我搜索过,我发现的所有内容都是安装openssl或安装python-crypto或更新python-dev,我做的一切都是行不通的。

谢谢。

0 个答案:

没有答案