Title: Unable to install required packages in NAO Robot (based on Gentoo OS) · Issue #728 · GoogleCloudPlatform/python-docs-samples · GitHub
Open Graph Title: Unable to install required packages in NAO Robot (based on Gentoo OS) · Issue #728 · GoogleCloudPlatform/python-docs-samples
X Title: Unable to install required packages in NAO Robot (based on Gentoo OS) · Issue #728 · GoogleCloudPlatform/python-docs-samples
Description: In which file did you encounter the issue? https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/grpc/requirements.txt Did you change the file? If so, how? No Describe the issue This is a sequel of the issues #723...
Open Graph Description: In which file did you encounter the issue? https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/grpc/requirements.txt Did you change the file? If so, how? No Describe the i...
X Description: In which file did you encounter the issue? https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/grpc/requirements.txt Did you change the file? If so, how? No Describe the i...
Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/728
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to install required packages in NAO Robot (based on Gentoo OS)","articleBody":"## In which file did you encounter the issue?\r\nhttps://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/grpc/requirements.txt\r\n\r\n### Did you change the file? If so, how?\r\nNo\r\n\r\n## Describe the issue\r\n\r\nThis is a sequel of the issues #723 that was closed 2 days back. I could have added this under same issue had it not been closed as both issues are related. #723 is about compiler errors occurred during running `pip install -r requirements.txt`.\r\n\r\nThis issue is about what we have observed when the requirements were installed in NAO Robot. We got into few issues as `emerge` package manager is not available in the NAO OS (supposed to be similar to opennao VM). \r\n\r\nThese are the steps followed in the installation.\r\n1. Check `pip `version =9.0.1 - OK\r\n2. Install `virtualenv `- OK\r\n3. Install `portaudio `using `emerge `– **Fail as emerge is not available in usr/bin**\r\n4. Install `pyaudio `using `emerge `– Not Started yet\r\n5. Install package as per requirements.txt\r\n `grpcio==1.0.4` – Not Started yet\r\n `PyAudio==0.2.9` – Not Started yet\r\n `grpc-google-cloud-speech-v1beta1==0.14.0` – Not Started yet\r\n `six==1.10.0` – Not Started yet\r\n `requests==2.12.4` – Not Started yet\r\n `google-auth==0.5.0` – Not Started yet\r\n6. `python transcribe_streaming.py` – Not Started yet.\r\n\r\nThen we copied the `portaudio `library (portaudio-19_pre20071207.tbz2) from opennao vm to Robot and ran `pip install`.\r\n\r\n```\r\n(env) nao [0] ~/googlespeech $ pip install -r requirements.txt\r\nCollecting PyAudio==0.2.9 (from -r requirements.txt (line 2))\r\n/var/persistent/home/nao/googlespeech/env/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.\r\n SNIMissingWarning\r\n/var/persistent/home/nao/googlespeech/env/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.\r\n InsecurePlatformWarning\r\n Using cached PyAudio-0.2.9.tar.gz\r\nBuilding wheels for collected packages: PyAudio\r\n Running setup.py bdist_wheel for PyAudio ... error\r\n Complete output from command /var/persistent/home/nao/googlespeech/env/bin/python2.7 -u -c \"import setuptools, tokenize;__file__='/var/volatile/tmp/pip-build-SqC1D8/PyAudio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" bdist_wheel -d /tmp/tmp4BLE1Upip-wheel- --python-tag cp27:\r\n running bdist_wheel\r\n running build\r\n running build_py\r\n creating build\r\n creating build/lib.linux-i686-2.7\r\n copying src/pyaudio.py -\u003e build/lib.linux-i686-2.7\r\n running build_ext\r\n building '_portaudio' extension\r\n creating build/temp.linux-i686-2.7\r\n creating build/temp.linux-i686-2.7/src\r\n i686-pc-linux-gnu-gcc -pthread -fPIC -I/usr/include/python2.7 -c src/_portaudiomodule.c -o build/temp.linux-i686-2.7/src/_portaudiomodule.o\r\n unable to execute i686-pc-linux-gnu-gcc: No such file or directory\r\n error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1\r\n\r\n ----------------------------------------\r\n Failed building wheel for PyAudio\r\n Running setup.py clean for PyAudio\r\nFailed to build PyAudio\r\nInstalling collected packages: PyAudio\r\n Running setup.py install for PyAudio ... error\r\n Complete output from command /var/persistent/home/nao/googlespeech/env/bin/python2.7 -u -c \"import setuptools, tokenize;__file__='/var/volatile/tmp/pip-build-SqC1D8/PyAudio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /tmp/pip-dluM0A-record/install-record.txt --single-version-externally-managed --compile --install-headers /var/persistent/home/nao/googlespeech/env/include/site/python2.7/PyAudio:\r\n running install\r\n running build\r\n running build_py\r\n creating build\r\n creating build/lib.linux-i686-2.7\r\n copying src/pyaudio.py -\u003e build/lib.linux-i686-2.7\r\n running build_ext\r\n building '_portaudio' extension\r\n creating build/temp.linux-i686-2.7\r\n creating build/temp.linux-i686-2.7/src\r\n i686-pc-linux-gnu-gcc -pthread -fPIC -I/usr/include/python2.7 -c src/_portaudiomodule.c -o build/temp.linux-i686-2.7/src/_portaudiomodule.o\r\n unable to execute i686-pc-linux-gnu-gcc: No such file or directory\r\n error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1\r\n\r\n ----------------------------------------\r\nCommand \"/var/persistent/home/nao/googlespeech/env/bin/python2.7 -u -c \"import setuptools, tokenize;__file__='/var/volatile/tmp/pip-build-SqC1D8/PyAudio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /tmp/pip-dluM0A-record/install-record.txt --single-version-externally-managed --compile --install-headers /var/persistent/home/nao/googlespeech/env/include/site/python2.7/PyAudio\" failed with error code 1 in /var/volatile/tmp/pip-build-SqC1D8/PyAudio/\r\n\r\n```\r\n\r\nIgnoring this error (should not have been done) we ran the `python transcribe_streaming.py` and ended up getting below error.\r\n\r\n\r\nWe checked if `PyAudio `version is correct using `pip freeze` and found the following packages present in Robot.\r\n\r\n```\r\n(env) nao [err 1] ~/googlespeech $ pip freeze\r\nenum34==1.1.6\r\nfutures==3.0.5\r\ngoogle-auth==0.5.0\r\ngoogleapis-common-protos==1.5.0\r\ngrpc-google-cloud-speech-v1beta1==0.14.0\r\ngrpcio==1.0.4\r\nhttplib2==0.9.2\r\noauth2client==3.0.0\r\nprotobuf==3.1.0.post1\r\npyasn1==0.1.9\r\npyasn1-modules==0.0.8\r\nrequests==2.12.4\r\nrsa==3.4.2\r\nsix==1.10.0\r\n```\r\n\r\nMy question is how to run `pip install -r requirements.txt` without an error so that PyAudio is installed properly. And I hope it will solve this issue. Appreciate any support. \r\n\r\n","author":{"url":"https://github.com/chan71","@type":"Person","name":"chan71"},"datePublished":"2016-12-18T05:23:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/728/python-docs-samples/issues/728"}
| 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:bd5abc67-52ca-64ff-1047-5e2e20153d27 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9852:1F08:895C2F:BD658A:6A4D73DE |
| html-safe-nonce | e8426858871295ca4bad8f47a10fa7c60ec38e1072117588f4bbbd8a6015bb80 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODUyOjFGMDg6ODk1QzJGOkJENjU4QTo2QTRENzNERSIsInZpc2l0b3JfaWQiOiI2NjI4MzI5OTU3NzU4OTU2NTEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b08305407b80a6bddc6aa1789057ce2005b6d4f15f183137b262bc3ddcd02094 |
| hovercard-subject-tag | issue:196258881 |
| 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/GoogleCloudPlatform/python-docs-samples/728/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a5cffb63c086a2348c9fab974fb9d2056a4fd972db96f74b9bcb7f16ba60c6a/GoogleCloudPlatform/python-docs-samples/issues/728 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a5cffb63c086a2348c9fab974fb9d2056a4fd972db96f74b9bcb7f16ba60c6a/GoogleCloudPlatform/python-docs-samples/issues/728 |
| og:image:alt | In which file did you encounter the issue? https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/grpc/requirements.txt Did you change the file? If so, how? No Describe the i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chan71 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c78260c7b3f4ac4b0356c8208537f05406a3a2d46a9ec3f735b372dcc519c39e |
| turbo-cache-control | no-preview |
| go-import | github.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git |
| octolytics-dimension-user_id | 2810941 |
| octolytics-dimension-user_login | GoogleCloudPlatform |
| octolytics-dimension-repository_id | 35065876 |
| octolytics-dimension-repository_nwo | GoogleCloudPlatform/python-docs-samples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35065876 |
| octolytics-dimension-repository_network_root_nwo | GoogleCloudPlatform/python-docs-samples |
| 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 | 399fff412f48461d435721c009efc17ea44be72f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width