-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GAX support: Python3 JSON load errors #1944
Comments
@geigerj Can you take a look? |
We currently develop/test GAX and GAPIC only on Python 2.7. @bjwatson @tbetbetbe -- we should discuss support for Python 3. I'll update this afterward. |
@bjwatson We have JSON-over-HTTP support as the default for both pubsub and logging (including Python2). We require that the user explicitly enable gax/grpc with an environment variable (which I forgot to show in the "to reproduce" example until just now). The packages all install cleanly on Python3, which is nice; getting them to work cleanly there would be nicer. :) But it isn't an emergency. |
@tseaver Cool, thanks for the context. |
@rok987 this issue. |
@tseaver Can you see if this is still an issue? Thanks! |
The 0.8.0 wrappers for pubsub/logging still don't work on Py3k. See this gist for details. |
I've uploaded 0.8.1 wrappers for logging and pubsub (with other APIs to follow) that should fix the JSON load error. Please try again and update. (I wasn't able to repro; on the last step, I'm getting a |
@geigerj did you set the |
Yup, both |
With the $ GCLOUD_ENABLE_GAX=1 .tox/system-tests3/bin/python system_tests/run_system_test.py --package=pubsub
D0810 15:28:12.477279068 6716 ev_posix.c:106] Using polling engine: poll
test_create_subscription_defaults (pubsub.TestPubsub) ... ok
test_create_subscription_w_ack_deadline (pubsub.TestPubsub) ... ok
test_create_topic (pubsub.TestPubsub) ... ok
test_fetch_delete_subscription_w_deleted_topic (pubsub.TestPubsub) ... ok
test_list_subscriptions (pubsub.TestPubsub) ... ok
test_list_topics (pubsub.TestPubsub) ... ok
test_message_pull_mode_e2e (pubsub.TestPubsub) ... ok
test_subscription_iam_policy (pubsub.TestPubsub) ... ok
test_topic_iam_policy (pubsub.TestPubsub) ... ok
----------------------------------------------------------------------
Ran 9 tests in 21.146s
OK
$ GCLOUD_ENABLE_GAX=1 .tox/system-tests3/bin/python system_tests/run_system_test.py --package=logging
D0810 15:28:55.697065457 6722 ev_posix.c:106] Using polling engine: poll
test_create_metric (logging_.TestLogging) ... ok
test_create_sink_bigquery_dataset (logging_.TestLogging) ... ok
test_create_sink_pubsub_topic (logging_.TestLogging) ... ok
test_create_sink_storage_bucket (logging_.TestLogging) ... ok
test_list_metrics (logging_.TestLogging) ... ok
test_list_sinks (logging_.TestLogging) ... ok
test_log_struct (logging_.TestLogging) ... _has_entries. Trying again in 1 seconds...
ok
test_log_struct_w_metadata (logging_.TestLogging) ... _has_entries. Trying again in 1 seconds...
ok
test_log_text (logging_.TestLogging) ... _has_entries. Trying again in 1 seconds...
ok
test_log_text_w_metadata (logging_.TestLogging) ... _has_entries. Trying again in 1 seconds...
ok
test_reload_metric (logging_.TestLogging) ... ok
test_reload_sink (logging_.TestLogging) ... ok
test_update_metric (logging_.TestLogging) ... ok
test_update_sink (logging_.TestLogging) ... ok
----------------------------------------------------------------------
Ran 14 tests in 32.349s
OK |
@geigerj Can you show the failing output? And the result of |
Excellent, I'm glad the tests are passing now. I've figured my problem out. It was my fault: the path that I stored in |
Testing envvar issue tracked at #2084. |
/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:To reproduce:
The text was updated successfully, but these errors were encountered: