Hi Robert, Thank you. My mistake. It is actually not working. testing it with suborcess.check_call now and will let you know Best, Eila
On Mon, May 4, 2020 at 12:49 PM Robert Bradshaw <rober...@google.com> wrote: > Printing the result out shouldn't matter, but as mentioned in the doce > Popen.communicate is not intended to be used when the amount of output is > large. If you need to just run the process, I would recommend a simple > subprocess.check_output(). > > On Mon, May 4, 2020 at 9:00 AM OrielResearch Eila Arich-Landkof < > e...@orielresearch.org> wrote: > >> I have updated the setup.py to print the error from the installation and >> it is working now. I have no idea why that would change anything. Happy to >> learn if someone knows the reason >> >> *The code before:* >> stdout_data, _ = p.communicate() >> print('Command output: %s' % stdout_data) >> *The code now:* >> stdout_data, *stderr_data* = p.communicate() >> print('Command output: %s' % stdout_data) >> *print('Command error data : %s' % stderr_data)* >> >> So that issue is resolved for me. >> Thanks, >> Eila >> >> On Sat, May 2, 2020 at 11:27 PM OrielResearch Eila Arich-Landkof < >> e...@orielresearch.org> wrote: >> >>> Hi all, >>> >>> I have experience and very odd behaviour. >>> when executing the setup.py with the following CUSTOM COMMAND >>> CUSTOM_COMMANDS = [['echo', 'Custom command worked!'], >>> ['apt-get', 'update'], >>> ['apt-get', 'install', '-y', 'unzip']] >>> everything works great. >>> when executing: >>> CUSTOM_COMMANDS = [['echo', 'Custom command worked!'], >>> ['apt-get', 'update'], >>> ['apt-get', 'install', '-y', 'unzip'], >>> ['apt-get', 'install', '-y', 'perl'], >>> ['apt-get', 'install', '-y', 'default-jre']] >>> unzip install return error: >>> RuntimeError: Command ['apt-get', 'install', '-y', 'unzip'] failed: exit >>> code: 100 >>> >>> Any idea what is the issue? it is either something super simple or >>> workaround for some issue that I am not aware of . >>> I am using the format of >>> https://github.com/apache/beam/tree/master/sdks/python/apache_beam/examples/complete/juliaset >>> Thanks, >>> -- >>> Eila >>> <http://www.orielresearch.com> >>> Meetup <https://www.meetup.com/Deep-Learning-In-Production/> >>> >> >> >> -- >> Eila >> <http://www.orielresearch.com> >> Meetup <https://www.meetup.com/Deep-Learning-In-Production/> >> > -- Eila <http://www.orielresearch.com> Meetup <https://www.meetup.com/Deep-Learning-In-Production/>