-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: loggingIssues related to the Cloud Logging API.Issues related to the Cloud Logging API.api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.grpc
Description
/cc @bjwatson, @tbetbetbe
Recent grcpcio releases actually install and work on Python 3.4+, so I'm trying to get our system tests running with GAX enabled. Both pubsub and logging show errors like:
======================================================================
ERROR: test_create_metric (logging_.TestLogging)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/system_tests/logging_.py", line 156, in test_create_metric
self.assertFalse(metric.exists())
File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/system-tests3/lib/python3.4/site-packages/gcloud/logging/metric.py", line 128, in exists
client.metrics_api.metric_get(self.project, self.name)
File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/system-tests3/lib/python3.4/site-packages/gcloud/logging/client.py", line 117, in metrics_api
generated = GeneratedMetricsAPI()
File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/system-tests3/lib/python3.4/site-packages/google/logging/v2/metrics_service_v2_api.py", line 168, in __init__
__name__, 'metrics_service_v2_client_config.json'))
File "/opt/Python-3.4.3/lib/python3.4/json/__init__.py", line 312, in loads
s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'To reproduce:
$ git clone git@github:GoogleCloudPlatform/gcloud-python
$ cd gcloud-python
$ tox -e system-tests3 --notest
$ GCLOUD_ENABLE_GAX=1 .tox/system-tests3/bin/python system_tests/run_system_test.py --package=pubsub # or loggingMetadata
Metadata
Assignees
Labels
api: loggingIssues related to the Cloud Logging API.Issues related to the Cloud Logging API.api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.grpc