your /tmp is mounted as noexec,nosuid and so you get that error.
remount your /tmp as rw to fix the issue.
On Aug 3, 5:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I use mod_python
> apache conf:
> <VirtualHost 72.47.11.11:80>
> ServerNamewww.test.cn
> DocumentRoot /home/omanga/webroot
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> PythonPath "['/home/project'] + sys.path"
> SetEnv DJANGO_SETTINGS_MODULE test.settings
> SetEnv PYTHON_EGG_CACHE /tmp
> PythonDebug On
> </VirtualHost>
> ~
>
> File "/usr/local/lib/python2.5/site-packages/mod_python/
> importer.py", line 1128, in _execute_target
> result = object(arg)
>
> File "/usr/local/lib/python2.5/site-packages/django/core/handlers/
> modpython.py", line 177, in handler
> return ModPythonHandler()(req)
>
> File "/usr/local/lib/python2.5/site-packages/django/core/handlers/
> modpython.py", line 145, in __call__
> self.load_middleware()
>
> File "/usr/local/lib/python2.5/site-packages/django/core/handlers/
> base.py", line 29, in load_middleware
> mod = __import__(mw_module, {}, {}, [''])
>
> File "/usr/local/lib/python2.5/site-packages/django/contrib/sessions/
> middleware.py", line 2, in <module>
> from django.contrib.sessions.models import Session
>
> File "/usr/local/lib/python2.5/site-packages/django/contrib/sessions/
> models.py", line 3, in <module>
> from django.db import models
>
> File "/usr/local/lib/python2.5/site-packages/django/db/__init__.py",
> line 11, in <module>
> backend = __import__('django.db.backends.%s.base' %
> settings.DATABASE_ENGINE, {}, {}, [''])
>
> File "/usr/local/lib/python2.5/site-packages/django/db/backends/
> mysql/base.py", line 12, in <module>
> raise ImproperlyConfigured, "Error loading MySQLdb module: %s" % e
>
> ImproperlyConfigured: Error loading MySQLdb module: /tmp/
> MySQL_python-1.2.2-py2.5-linux-i686.egg-tmp/_mysql.so: failed to map
> segment from shared object: Operation not permitted
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---