8000 Published package is missing discovery files in discovery_cache · Issue #1214 · googleapis/google-api-python-client · GitHub
[go: up one dir, main page]

Skip to content
Published package is missing discovery files in discovery_cache #1214
@busunkim96

Description

@busunkim96

Many thanks to the @wyk9787 for noticing this and reaching out.

All calls to discovery.build() using 2.0.0 fail with "unknown api name or version".

from googleapiclient import discovery

client = discovery.build("cloudprofiler", "v2")

This is because the published package has no discovery_cache/documents directory.

  1. python3 -m venv env
  2. source env/bin/activate
  3. python3 -m pip install google-api-python-client
  4. ls env/lib/python*/site-packages/googleapiclient/discovery_cache
busunkim@busunkim:~/github$ ls env/lib/python*/site-packages/googleapiclient/discovery_cache
appengine_memcache.py  base.py  file_cache.py  __init__.py  __pycache__

Metadata

Metadata

Assignees

Labels

priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0