0

I'm trying to execute python notebooks using google cloud functions(Python 3.7), and dependent packages like IPython or pexpect calls pty.fork() somewhere and crashes. The below two points is the conclusion of what I can find that attributes to this not working:

(1) pty.fork() errors (2) seem to be related to devpts not mounted for google cloud function execution environment ( a google Colab vm instance has the expected mounting settings (gid=5) )

Is there any possible way to work around this? The default root user is pretty useful as !pip install statements often gets run as well and there's not virtual environments in the cloud function

Thanks!..

Reference:

http://adam8157.info/blog/2017/08/fix-out-of-pty-devices/

Troubleshooting OSError: out of pty devices

the pillow
  • 412
  • 6
  • 14
  • 1
    I'm not sure forking other processes is something allowed in cloud functions, you may need to use an IaaS product for that. But I can't find that clearly documented anywhere. Conceptually a function execution is contained within one process. Add the full traceback - it *might* give hints about this. – Dan Cornilescu May 19 '19 at 15:41
  • thanks @DanCornilescu , in the end it does look like that's not possible. maybe it's the concurrency limit of 1 – the pillow Jun 17 '19 at 23:43

0 Answers0