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: