Do you have the module in the path? Anyway, spawning a process form a web app is difficult because when the page returns you loose the process unless you have a single python process to start with and you cache a reference to spawned process in cache.ram.
On Wednesday, 2 April 2014 12:42:40 UTC-5, Ramesh Aj wrote: > > I am trying to spawn a shell to remote machine in web2py and I am getting > following exception > > Cannot import module 'pexpect' > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

