Hello,

I'm using reviewboard (1.0) that I installed on a gentoo box, after
updating gentoo packages (apache & python & all) I get the "Review
Board is taking a nap" page displayed.

Looking at apache error log I see this message: "Could not import
settings 'reviewboard.settings' (Is it on sys.path?): No module named
reviewboard.settings"

[Wed Apr 20 04:01:51 2011] [error] [client 192.168.1.126]   File
"/usr/lib/python2.7/site-packages/mod_python/importer.py", line 1537,
in HandlerDispatch\n    default=default_handler, arg=req,
silent=hlist.silent)
[Wed Apr 20 04:01:51 2011] [error] [client 192.168.1.126]   File
"/usr/lib/python2.7/site-packages/mod_python/importer.py", line 1229,
in _process_target\n    result = _execute_target(config, req, object,
arg)
[Wed Apr 20 04:01:51 2011] [error] [client 192.168.1.126]   File
"/usr/lib/python2.7/site-packages/mod_python/importer.py", line 1128,
in _execute_target\n    result = object(arg)
[Wed Apr 20 04:01:51 2011] [error] [client 192.168.1.126]   File
"/usr/lib/python2.7/site-packages/django/core/handlers/modpython.py",
line 213, in handler\n    return ModPythonHandler()(req)
[Wed Apr 20 04:01:51 2011] [error] [client 192.168.1.126]   File
"/usr/lib/python2.7/site-packages/django/core/handlers/modpython.py",
line 174, in __call__\n    self.load_middleware()
[Wed Apr 20 04:01:51 2011] [error] [client 192.168.1.126]   File
"/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line
39, in load_middleware\n    for middleware_path in
settings.MIDDLEWARE_CLASSES:
[Wed Apr 20 04:01:51 2011] [error] [client 192.168.1.126]   File
"/usr/lib/python2.7/site-packages/django/utils/functional.py", line
276, in __getattr__\n    self._setup()
[Wed Apr 20 04:01:51 2011] [error] [client 192.168.1.126]   File
"/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 42,
in _setup\n    self._wrapped = Settings(settings_module)
[Wed Apr 20 04:01:51 2011] [error] [client 192.168.1.126]   File
"/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 89,
in __init__\n    raise ImportError("Could not import settings '%s' (Is
it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
[Wed Apr 20 04:01:51 2011] [error] [client 192.168.1.126] ImportError:
Could not import settings 'reviewboard.settings' (Is it on sys.path?):
No module named reviewboard.settings

here is the paache configuration for the virtual host

<VirtualHost *:80>
        ServerName reviewboard.lcgentoo.local
        DocumentRoot "/var/www/reviewboard.lcgentoo.local/htdocs"

        # Error handlers
        ErrorDocument 500 /errordocs/500.html

        # Serve django pages
        <Location "/">
                PythonPath
"['/var/www/reviewboard.lcgentoo.local/conf'] + sys.path"
                SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
                SetEnv PYTHON_EGG_CACHE
"/var/www/reviewboard.lcgentoo.local/tmp/egg_cache"
                SetHandler mod_python
                PythonHandler django.core.handlers.modpython
                PythonAutoReload Off
                PythonDebug Off
                # Used to run multiple mod_python sites in the same apache
                PythonInterpreter reviewboard_reviewboard_lcgentoo_local
        </Location>

        # Serve static media without running it through mod_python
        # (overrides the above)
        <Location "/media">
                SetHandler None
        </Location>
        <Location "/errordocs">
                SetHandler None
        </Location>

        <Directory "/var/www/reviewboard.lcgentoo.local/htdocs">
                AllowOverride All
        </Directory>

        # Alias static media requests to filesystem
        Alias /media "/var/www/reviewboard.lcgentoo.local/htdocs/media"
        Alias /errordocs "/var/www/reviewboard.lcgentoo.local/htdocs/errordocs"
</VirtualHost>

anybody can provide me guidance to fix the issue (I found some other
message in the group and tried to tweak the PythonPath accordingly but
wasn't able to solve the issue).

Thanks a lot

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to