Import Pandas on apache server causes timeout error
<p>I've got a Django project working on an Apache server.</p>

<p>I installed pandas and want to use it to start manipulating data - however something odd is happening.</p>

<p>Anytime I use the <code>import pandas</code> on the production environment, the server will hang up and (after a while) throw a 408 timeout error.</p>

<p>I can comment out the <code>pandas</code> portion and the server responds normally without issue. I can't recreate it in the development environment or command line interface with django.</p>

<p>Here are the <code>httpd-app.conf</code> file:</p>

<pre><code>Alias /tooltrack/static "C:/Users/myfolder/Bitnami Django Stack Projects/tooltrack/static/"
&lt;Directory "C:/Users/myfolder/Bitnami Django Stack Projects/tooltrack/static/"&gt;
Options +MultiViews
AllowOverride All
&lt;IfVersion &lt; 2.3 &gt;
    Order allow,deny
    Allow from all
&lt;/IfVersion&gt;
&lt;IfVersion &gt;= 2.3&gt;
    Require all granted
&lt;/IfVersion&gt;

&lt;IfVersion &lt; 2.3 &gt;
    Order allow,deny
    Allow from all
&lt;/IfVersion&gt;
&lt;IfVersion &gt;= 2.3&gt;
    Require all granted
&lt;/IfVersion&gt; 
&lt;/Directory&gt;


WSGIScriptAlias / 'C:/Users/myfolder/Bitnami Django Stack projects/tooltrack/tooltrack/wsgi.py'

&lt;Directory "C:/Users/myfolder/Bitnami Django Stack projects/tooltrack/tooltrack"&gt;
Options +MultiViews
AllowOverride All
&lt;IfVersion &lt; 2.3 &gt;
    Order allow,deny
    Allow from all
&lt;/IfVersion&gt;
&lt;IfVersion &gt;= 2.3&gt;
    Require all granted
&lt;/IfVersion&gt;

&lt;IfVersion &lt; 2.3 &gt;
    Order allow,deny
    Allow from all
&lt;/IfVersion&gt;
&lt;IfVersion &gt;= 2.3&gt;
    Require all granted
&lt;/IfVersion&gt; 
&lt;/Directory&gt;

&lt;Directory "C:/Users/myfolder/Bitnami Django Stack projects/tooltrack"&gt;
Options +MultiViews
AllowOverride All
&lt;IfVersion &lt; 2.3 &gt;
    Order allow,deny
    Allow from all
&lt;/IfVersion&gt;
&lt;IfVersion &gt;= 2.3&gt;
    Require all granted
&lt;/IfVersion&gt;
&lt;/Directory&gt;
</code></pre>

<p>I know its hanging up on the import of pandas due to this:</p>

<pre><code>def panda_dataframe_r():
print 'importing pandas ' + str(timezone.now())
import pandas
print 'import done ' + str(timezone.now())
</code></pre>

<p>I can see the <code>importing pandas</code> in the log, however no following <code>import done</code></p>

<p>Any help is greatly appreciated!!</p>

<p>Try adding:</p>

<pre><code>WSGIApplicationGroup %{GLOBAL}
</code></pre>

<p>Various of the scientific packages that it is going to need will not work in Python sub interpreters. That directive will force the use of the main interpreter context.</p>

python django apache pandas mod-wsgi