Skip to content

Import Google API Python is failing #136

@mbettan

Description

@mbettan

Hello,

When executing following code through Python 2.7 / Jython on Windows

#!/usr/bin/env python
from apiclient import discovery

I have following errors which prevent to execute it

Command failed java.lang.RuntimeException: Slang Error : Error executing python
script: Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "C:\cslang\bin\..\python-lib\apiclient\__init__.py", line 19, in <module>

    from googleapiclient import discovery
  File "C:\cslang\bin\..\python-lib\googleapiclient\discovery.py", line 68, in <
module>
    from oauth2client.client import GoogleCredentials
  File "C:\cslang\bin\..\python-lib\oauth2client\client.py", line 1674, in <modu
le>
    _cached_http = httplib2.Http(MemoryCache())
AttributeError: 'module' object has no attribute 'Http'

Below are the full logs and cloudslang file
http://we.tl/5GjKRYxKn5

Does google-api-python-client (or dependencies) need Cython ? Any ideas why it's failing when importing

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions