Title: In Jupyter, Google.Cloud.Storage has no attribute Client Error (Works in Terminal) · Issue #3846 · googleapis/google-cloud-python · GitHub
Open Graph Title: In Jupyter, Google.Cloud.Storage has no attribute Client Error (Works in Terminal) · Issue #3846 · googleapis/google-cloud-python
X Title: In Jupyter, Google.Cloud.Storage has no attribute Client Error (Works in Terminal) · Issue #3846 · googleapis/google-cloud-python
Description: On my macbook running Jupyter, From the below code, I get the error: AttributeError: module 'google.cloud.storage' has no attribute 'Client' Strangles the code Fails in Jupyter and Works in Interactive Mode (terminal) I'm new to Google C...
Open Graph Description: On my macbook running Jupyter, From the below code, I get the error: AttributeError: module 'google.cloud.storage' has no attribute 'Client' Strangles the code Fails in Jupyter and Works in Interac...
X Description: On my macbook running Jupyter, From the below code, I get the error: AttributeError: module 'google.cloud.storage' has no attribute 'Client' Strangles the code Fails in Jupyter and ...
Mail addresses
googleapis-publisher@google.com
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/3846
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"In Jupyter, Google.Cloud.Storage has no attribute Client Error (Works in Terminal)","articleBody":"On my macbook running Jupyter, From the below code, I get the error:\r\n**AttributeError: module 'google.cloud.storage' has no attribute 'Client'**\r\n\r\nStrangles the code Fails in Jupyter and Works in Interactive Mode (terminal)\r\n\r\n\r\nI'm new to Google Cloud Storage, and help is appreciated...\r\nmuch appreciation in advance\r\n\r\n\r\n```\r\nfrom google.cloud import storage\r\nclient = storage.Client(project=\"My Project\")\r\nbucket = client.get_bucket('my-bucket-name')\r\nblob = bucket.blob('my-test-file.txt')\r\nblob.upload_from_string('this is test content!')\r\n```\r\n\r\n1. Mac 10.12.6\r\n\r\n2. Python 3.5.2 from Conda\r\n\r\n3. Pip Version: pip 9.0.1 from //anaconda/envs/gcs/lib/python3.5/site-packages (python 3.5)\r\n\r\n4. Pip Freeze for Google-Cloud (running under conda with a virtual environment: //anaconda/envs/gcs/bin/conda)\r\ngoogle-auth==1.0.2\r\ngoogle-cloud==0.27.0\r\ngoogle-cloud-bigquery==0.26.0\r\ngoogle-cloud-bigtable==0.26.0\r\ngoogle-cloud-core==0.26.0\r\ngoogle-cloud-datastore==1.2.0\r\ngoogle-cloud-dns==0.26.0\r\ngoogle-cloud-error-reporting==0.26.0\r\ngoogle-cloud-language==0.27.0\r\ngoogle-cloud-logging==1.2.0\r\ngoogle-cloud-monitoring==0.26.0\r\ngoogle-cloud-pubsub==0.27.0\r\ngoogle-cloud-resource-manager==0.26.0\r\ngoogle-cloud-runtimeconfig==0.26.0\r\ngoogle-cloud-spanner==0.26.0\r\ngoogle-cloud-speech==0.28.0\r\ngoogle-cloud-storage==1.3.2\r\ngoogle-cloud-translate==1.1.0\r\ngoogle-cloud-videointelligence==0.25.0\r\ngoogle-cloud-vision==0.26.0\r\ngoogle-gax==0.15.14\r\ngoogle-resumable-media==0.2.3\r\ngoogleapis-common-protos==1.5.2\r\n\r\n5. pip show google cloud\r\nName: google-cloud\r\nVersion: 0.27.0\r\nSummary: API Client library for Google Cloud\r\nHome-page: https://github.com/GoogleCloudPlatform/google-cloud-python\r\nAuthor: Google Cloud Platform\r\nAuthor-email: googleapis-publisher@google.com\r\nLicense: Apache 2.0\r\nLocation: /anaconda/envs/gcs/lib/python3.5/site-packages\r\nRequires: google-cloud-speech, google-cloud-bigtable, google-cloud-dns, google-cloud-core, google-cloud-datastore, google-cloud-error-reporting, google-cloud-bigquery, google-cloud-pubsub, google-cloud-translate, google-cloud-resource-manager, google-cloud-runtimeconfig, google-cloud-logging, google-cloud-language, google-cloud-videointelligence, google-cloud-monitoring, google-cloud-vision, google-cloud-storage, google-cloud-spanner\r\n","author":{"url":"https://github.com/grahamanderson","@type":"Person","name":"grahamanderson"},"datePublished":"2017-08-19T16:43:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3846/google-cloud-python/issues/3846"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:de1f02c4-3c11-afd3-f5ee-ded6b82635bf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 885E:EE0A7:197261:2205AC:6A4D85CF |
| html-safe-nonce | 5e9a38b5752e5d0d91517409b46a1154ff28b781d510e2b4f9ca408807e9d08d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODVFOkVFMEE3OjE5NzI2MToyMjA1QUM6NkE0RDg1Q0YiLCJ2aXNpdG9yX2lkIjoiODY0NzE4NzAyMzIzNTIyMDk0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2cdfff32bc5313c5fbaf0957baf89a9429b5c832c9fbc058a5cf058dffa621c2 |
| hovercard-subject-tag | issue:251436265 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/3846/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7822bdde517d0074033c74351d802cf8d279fb3a2542c6e1ba3d15e5a2c62513/googleapis/google-cloud-python/issues/3846 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7822bdde517d0074033c74351d802cf8d279fb3a2542c6e1ba3d15e5a2c62513/googleapis/google-cloud-python/issues/3846 |
| og:image:alt | On my macbook running Jupyter, From the below code, I get the error: AttributeError: module 'google.cloud.storage' has no attribute 'Client' Strangles the code Fails in Jupyter and Works in Interac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | grahamanderson |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6bf61c909482ec3072ef5d7a5a28f2a9d214788c9a44793eca1960048cb05ae |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6702a58b419a792226bd21ef0fb1bcb318bbcaa3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width