Title: not compatible with Google Cloud Containers · Issue #348 · googleapis/google-cloud-python · GitHub
Open Graph Title: not compatible with Google Cloud Containers · Issue #348 · googleapis/google-cloud-python
X Title: not compatible with Google Cloud Containers · Issue #348 · googleapis/google-cloud-python
Description: I'm using the google/python-runtime Docker image to run an app on Google Managed VMs, and need to access the datastore. The obvious solution seems to be gcloud-python as it's so much easier to use than the datastore python library. So he...
Open Graph Description: I'm using the google/python-runtime Docker image to run an app on Google Managed VMs, and need to access the datastore. The obvious solution seems to be gcloud-python as it's so much easier to use ...
X Description: I'm using the google/python-runtime Docker image to run an app on Google Managed VMs, and need to access the datastore. The obvious solution seems to be gcloud-python as it's so much easier...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/348
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"not compatible with Google Cloud Containers","articleBody":"I'm using the [google/python-runtime](https://registry.hub.docker.com/u/google/python-runtime/) Docker image to run an app on Google Managed VMs, and need to access the datastore. The obvious solution seems to be gcloud-python as it's so much easier to use than the datastore python library.\n\nSo here's what happens. In my requirements.txt file I have:\nhttplib2\ntornado\ngcloud\n\nPIP installs everything OK except it fails when installing cffi. Here is a log:\n\n```\nProcessing cffi-0.8.6.tar.gz\n\nWriting /tmp/easy_install-MCEL5F/cryptography-0.6.1/temp/easy_install-ZPcCkB/cffi-0.8.6/setup.cfg\n\nRunning cffi-0.8.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-MCEL5F/cryptography-0.6.1/temp/easy_install-ZPcCkB/cffi-0.8.6/egg-dist-tmp-fmCpCO\n\ncompiling '_configtest.c':\n\n__thread int some_threadlocal_variable_42;\n\n\n\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o\n\nsuccess!\n\nremoving: _configtest.c _configtest.o\n\nc/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory\n\ncompilation terminated.\n\nTraceback (most recent call last):\n\n File \"\u003cstring\u003e\", line 17, in \u003cmodule\u003e\n\n File \"/env/build/gcloud/setup.py\", line 49, in \u003cmodule\u003e\n\n 'Topic :: Internet',\n\n File \"/usr/lib/python2.7/distutils/core.py\", line 112, in setup\n\n _setup_distribution = dist = klass(attrs)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/dist.py\", line 260, in __init__\n\n self.fetch_build_eggs(attrs.pop('setup_requires'))\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/dist.py\", line 285, in fetch_build_eggs\n\n replace_conflicting=True\n\n File \"/env/local/lib/python2.7/site-packages/pkg_resources.py\", line 631, in resolve\n\n dist = best[req.key] = env.best_match(req, ws, installer)\n\n File \"/env/local/lib/python2.7/site-packages/pkg_resources.py\", line 871, in best_match\n\n return self.obtain(req, installer)\n\n File \"/env/local/lib/python2.7/site-packages/pkg_resources.py\", line 883, in obtain\n\n return installer(requirement)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/dist.py\", line 335, in fetch_build_egg\n\n return cmd.easy_install(req)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 595, in easy_install\n\n return self.install_item(spec, dist.location, tmpdir, deps)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 625, in install_item\n\n dists = self.install_eggs(spec, download, tmpdir)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 822, in install_eggs\n\n return self.build_and_install(setup_script, setup_base)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 1028, in build_and_install\n\n self.run_setup(setup_script, setup_base, args)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 1013, in run_setup\n\n run_setup(setup_script, args)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 50, in run_setup\n\n lambda: execfile(\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 100, in run\n\n return func()\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 52, in \u003clambda\u003e\n\n {'__file__':setup_script, '__name__':'__main__'}\n\n File \"setup.py\", line 338, in \u003cmodule\u003e\n\n\n\n File \"/usr/lib/python2.7/distutils/core.py\", line 112, in setup\n\n _setup_distribution = dist = klass(attrs)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/dist.py\", line 260, in __init__\n\n self.fetch_build_eggs(attrs.pop('setup_requires'))\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/dist.py\", line 285, in fetch_build_eggs\n\n replace_conflicting=True\n\n File \"/env/local/lib/python2.7/site-packages/pkg_resources.py\", line 631, in resolve\n\n dist = best[req.key] = env.best_match(req, ws, installer)\n\n File \"/env/local/lib/python2.7/site-packages/pkg_resources.py\", line 871, in best_match\n\n return self.obtain(req, installer)\n\n File \"/env/local/lib/python2.7/site-packages/pkg_resources.py\", line 883, in obtain\n\n return installer(requirement)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/dist.py\", line 335, in fetch_build_egg\n\n return cmd.easy_install(req)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 595, in easy_install\n\n return self.install_item(spec, dist.location, tmpdir, deps)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 625, in install_item\n\n dists = self.install_eggs(spec, download, tmpdir)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 822, in install_eggs\n\n return self.build_and_install(setup_script, setup_base)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 1028, in build_and_install\n\n self.run_setup(setup_script, setup_base, args)\n\n File \"/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 1016, in run_setup\n\n raise DistutilsError(\"Setup script exited with %s\" % (v.args[0],))\n\ndistutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1\n\n----------------------------------------\nCleaning up...\nCommand python setup.py egg_info failed with error code 1 in /env/build/gcloud\nStoring debug log for failure in /root/.pip/pip.log\n\n```\n\nThis is kind of a road block for me, is there anything that can be done to make it installable on google containers?\n","author":{"url":"https://github.com/artooro","@type":"Person","name":"artooro"},"datePublished":"2014-11-06T14:49:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/348/google-cloud-python/issues/348"}
| 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:3c0ae0e2-2934-e828-db86-95eb6c07a801 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97B6:2BD77F:E8E131:13D07D2:6A4D5D0F |
| html-safe-nonce | 81dcbc9a03a5caabfc2a687cfee151b214764e6ec39edb3b88cd207e51222f88 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0I2OjJCRDc3RjpFOEUxMzE6MTNEMDdEMjo2QTRENUQwRiIsInZpc2l0b3JfaWQiOiIxMTA3NzQ2MjkzMDQ2NjY0NDYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 845129cf61a62d1ce49c8e7cf86b4276df874d383652cc29552f31f8a150abf9 |
| hovercard-subject-tag | issue:47969699 |
| 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/348/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c00896e1f67594b46a52c425f3c8f4eda85ccc77a94d2b717929b006373cdf8/googleapis/google-cloud-python/issues/348 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c00896e1f67594b46a52c425f3c8f4eda85ccc77a94d2b717929b006373cdf8/googleapis/google-cloud-python/issues/348 |
| og:image:alt | I'm using the google/python-runtime Docker image to run an app on Google Managed VMs, and need to access the datastore. The obvious solution seems to be gcloud-python as it's so much easier to use ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | artooro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| 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 | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width