Error

Subscribe to Error 5 post(s), 2 voice(s)

 
Avatar Michel 3 post(s)

Error when installing (mysql)
Then, when trying to open my project getting the following:

MOD_PYTHON ERROR

ProcessId: 11733
Interpreter: ’/Applications/djangostack-1.0-1/python/bin/python’

ServerName: ‘localhost’
DocumentRoot: ’/Applications/djangostack-1.0-1/apache2/htdocs’

URI: ’/Project/’
Location: ’/Project’
Directory: None
Filename: ’/Applications/djangostack-1.0-1/apache2/htdocs/Project’
PathInfo: ’/’

Phase: ‘PythonHandler’
Handler: ‘django.core.handlers.modpython’

Traceback (most recent call last):

File "/Applications/djangostack-1.0-1/python/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch
  default=default_handler, arg=req, silent=hlist.silent)
File "/Applications/djangostack-1.0-1/python/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target
  result = _execute_target(config, req, object, arg)
File "/Applications/djangostack-1.0-1/python/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target
  result = object(arg)
File "/Applications/djangostack-1.0-1/django/lib/python2.5/site-packages/django/core/handlers/modpython.py", line 189, in handler
  return ModPythonHandler()(req)
File "/Applications/djangostack-1.0-1/django/lib/python2.5/site-packages/django/core/handlers/modpython.py", line 162, in call
  response = self.get_response(request)
File "/Applications/djangostack-1.0-1/django/lib/python2.5/site-packages/django/core/handlers/base.py", line 64, in get_response
  response = middleware_method(request)
File "/Applications/djangostack-1.0-1/django/lib/python2.5/site-packages/django/contrib/sessions/middleware.py", line 13, in process_request
  engine = import(settings.SESSION_ENGINE, {}, {}, [''])
File "/Applications/djangostack-1.0-1/django/lib/python2.5/site-packages/django/contrib/sessions/backends/db.py", line 2, in <module>
  from django.contrib.sessions.models import Session
File "/Applications/djangostack-1.0-1/django/lib/python2.5/site-packages/django/contrib/sessions/models.py", line 5, in <module>
  from django.db import models
File "/Applications/djangostack-1.0-1/django/lib/python2.5/site-packages/django/db/init.py", line 17, in <module>
  backend = import('%s%s.base' % (_import_path, settings.DATABASE_ENGINE), {}, {}, [''])
File "/Applications/djangostack-1.0-1/django/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: dynamic module does not define init function (init_mysql)

 
Avatar antonio Administrator 485 post(s)

Hi,

The installation time error is the same shown at http://www.methodsanddata.com/stuff/django_stack_error.png ? Are you using OSX on a x86 architecture machine? If so, there was a bug with MySQL fixed two days ago. We will release a new version of Django today, probably.

Cheers

 
Avatar antonio Administrator 485 post(s)

The new version was released 5 minutes ago.

 
Avatar Michel 3 post(s)

yes osx on intel
I’ll try new version right away and let you know
thanks

 
Avatar Michel 3 post(s)

it worked!
thanks
p.s. I have a bunch of stacks installed; I love it. You’re doing a great job. Can play without messing up with other things.
Thumbs up