Global name 'paramiko' not defined when using module in web2py
<p>I am running the source version of web2py from an Ubuntu VM and Python 2.7. I'm trying to use the Paramiko library for SSH functionality, but the following code gives this error:</p>

<p><strong>Code</strong></p>

<p><code>from paramiko import client</code></p>

<p><strong>Error</strong></p>

<pre><code>Traceback (most recent call last):
  File "/home/localadmin/scanme/gluon/restricted.py", line 227, in restricted
    exec ccode in environment
  File "/home/localadmin/scanme/applications/nmap/controllers/default.py", line 418, in &lt;module&gt;
  File "/home/localadmin/scanme/gluon/globals.py", line 417, in &lt;lambda&gt;
    self._caller = lambda f: f()
  File "/home/localadmin/scanme/applications/nmap/controllers/default.py", line 50, in login
    except paramiko.ssh_exception.AuthenticationException:
NameError: global name 'paramiko' is not defined
</code></pre>

<p>What is confusing me is that importing and using the paramiko library works perfectly fine on my system when I run Python outside of web2py. </p>

<p>I thought that all modules available in my local Python install were supposed to be available in web2py when using the source version. This is how i launched the web server from the command line:</p>

<p><code>python2.7 web2py.py</code></p>

<p>Does anyone know what may be causing this issue? It's worth noting that I have not found a "paramiko" directory on my system after installing the library like I have with other modules that are working in web2py.</p>