-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Issues with mod_wsgi? #284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What error do you get trying to do:
This sort of error happens when there was an import error suppressed somewhere so that pandas/init.py didn't fully execute. I am not well-equipped to debug this myself. Not sure what to tell you. |
Ok, that produced a slightly different error. Looks like this line 'module compiled against API version 6 but this version of numpy is 4' is the problem but not sure what it means... Both numpy and pandas installed using pip inside the virtual environment as in "pip install numpy; pip install pandas" [Mon Oct 24 15:05:35 2011] [info] Initial (No.1) HTTPS request received for child 0 (server openportfolio-staging.XX.com:443) |
hm, do you have multiple numpy's or multiple python interpreters installed on this box? try rebuilding pandas against the right one |
Also, FYI you should take some care about installing NumPy from source. You almost certainly won't get optimized linear algebra out of the box-- so if you're using np.dot anywhere or anything in numpy.linalg (or any libraries that do) you should take a closer look there. |
So it turns out this was a Python path order issue. By running sys.path.reverse() in my wsgi config file, the code now runs. I double checked that numpy and pandas had been built against the right version - which they had (makes sense since it all worked outside mod_wsgi). However, due to the order of Python path, the built in OS X numpy library must have been imported first causing the issue. Thanks for your help. |
(and thanks for the info re: efficiency - I only build from source because I am trying to create an easy to install django app and a pip requirements file seems the easiest way to achieve this). |
Cool, glad you got it working =) |
Hi,
I keep getting a 'module' object has no attribute 'core' when using with mod_wsgi. Please see http://stackoverflow.com/questions/7766400/pandas-django-mod-wsgi-virtualenv for the full error description.
Evan
The text was updated successfully, but these errors were encountered: