Hi Christian ,
I changed the RBSITE/conf/settings_local.py to have PythonDebug True
and then I checked the APACHE/logs/error_log. I found that
"settings_local.py" was being imported (with complete Path to RBSITE)
Also all other modules (of RB, Django etc were being picked from the
Virtual-python Install directories (as expected))
Here is the snap of Apache config
LoadModule python_module modules/mod_python.so
<Directory "APACHE_INSTALL/htdocs/modtest">
AllowOverride FileInfo
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:8080>
ServerName HOSTNAME.SITE.COMPANY.com
DocumentRoot "RBOARD_PATH_TO/www/HOSTNAME.SITE.COMPANY.com/htdocs"
# Error handlers
ErrorDocument 500 /errordocs/500.html
# Serve django pages
<Location "/">
PythonPath "[' RBOARD_PATH_TO/www/HOSTNAME.SITE.COMPANY.com/conf']
+ sys.path"
SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
SetEnv PYTHON_EGG_CACHE "RBOARD_PATH_TO/www/HOSTNAME.SITE.COMPANY.com/
tmp/egg_cache"
SetEnv HOME "RBOARD_PATH_TO/www/HOSTNAME.SITE.COMPANY.com/data"
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonAutoReload Off
PythonDebug On
# Used to run multiple mod_python sites in the same apache
PythonInterpreter reviewboard_HOSTNAME_SITE_COMPANY_com
</Location>
# Serve static media without running it through mod_python
# (overrides the above)
<Location "/media">
SetHandler None
</Location>
<Location "/errordocs">
SetHandler None
</Location>
<Directory "RBOARD_PATH_TO/www/HOSTNAME.SITE.COMPANY.com/htdocs">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# Alias static media requests to filesystem
Alias /media "RBOARD_PATH_TO/www/HOSTNAME.SITE.COMPANY.com/htdocs/
media"
Alias /errordocs "RBOARD_PATH_TO/www/HOSTNAME.SITE.COMPANY.com/
htdocs/errordocs"
</VirtualHost>
Also here is the Complete Tools version
1. Apache 2.2.17 : Locally compiled with only mod_python.so module
currently loaded
2. virtual-python installation : Uses Python2.6.1
3. $PATH set to the new Python bin location
4. Mod_python 3.3.1 installed in the virtual-python location (Virtual-
python-Path/lib/python2.6/site-packages)(Tested it by loading the
modules from the Shell which picks correctly the virtual-python
executables)
5. ReviewBoard 1.5.1-py2.6 (Installed using virtual-python/bin/
easy_install . Correctly installed in the Virtual-python-Path/lib/
python2.6/site-packages)
6. Easy_install installed the following dependencies of ReviewBoard
(in Virtual-python-Path/lib/python2.6/site-packages)
a. django_evolution-0.6.2-py2.6.egg/
b. Django-1.2.4-py2.6.egg/
c. Djblets-0.6.6-py2.6.egg/
d. PIL-1.1.7-py2.6-linux-x86_64.egg/
e. python_dateutil-1.5-py2.6.egg/
f. pycrypto-2.3-py2.6-linux-x86_64.egg
g. paramiko-1.7.6-py2.6.egg
h. recaptcha_client-1.0.5-py2.6.egg
i. pytz-2010o-py2.6.egg
Thanks,
Anshul
On Dec 27, 4:59 am, Christian Hammond <[email protected]> wrote:
> Hi Anshul,
>
> Can I see your Apache config for Review Board? I haven't used
> mod_python with virtual-python, so I don't know off-hand how that all
> works.
>
> This error happens when the Python path that the Python interpreter
> ends up using isn't properly including the site's conf/ directory.
>
> Christian
>
> --
> Christian Hammond - [email protected]
> Review Board -http://www.reviewboard.org
> VMware, Inc. -http://www.vmware.com
>
>
>
> On Sun, Dec 26, 2010 at 6:36 AM, Anshul <[email protected]> wrote:
> > Hi Christian ,
>
> > I am facing the similar problem as Dan.
>
> > I am using a virtual-python installation with Python2.6 (the virtual-
> > python bin is set in $PATH so the default 'python' is now my virtual
> > python)
>
> > Everything seemed to be working (from installation of Apache,
> > mod_python , virtual-python to the config) until I get hit by Manual
> > Server Update Required page on loading ReviewBoard
>
> > I am using mod_python.
> > I googled and found that rb-site update should be used but "rb-site
> > upgrade /path/to/site/" says
>
> > Rebuilding directory structure
> > Updating database. This may take a while.
> > No fixtures found.
> > PATH_TO_VIRTUALPYTHON/lib/python2.6/site-packages/pycrypto-2.3-py2.6-
> > linux-x86_64.egg/Crypto/Util/randpool.py:40:
> > RandomPool_DeprecationWarning: This application uses RandomPool, which
> > is BROKEN in older releases. Seehttp://www.pycrypto.org/randpool-broken
> > No evolution required.
> > Upgrade complete.
>
> > ReviewBoard 1.5.2 was installed using easy_install. (appropriately in
> > the virtual-python area)
>
> > I would greatly appreciate your help on this issue.
>
> > Anshul
> > On Dec 16, 2:27 am, Christian Hammond <[email protected]> wrote:
> >> The Manual Server Updates message is really intended to be seen by
> >> those working on development setups. You shouldn't run manage.py on a
> >> production install. Instead, you should be going through rb-site.
> >> Perhaps we should update those instructions to say that.
>
> >> When you created the site, did you use mod_wsgi, or something else? If
> >> mod_wsgi, check the other threads. It seems rather busted on Windows.
>
> >> Christian
>
> >> --
> >> Christian Hammond - [email protected]
> >> Review Board -http://www.reviewboard.org
> >> VMware, Inc. -http://www.vmware.com
>
> >> On Wed, Dec 15, 2010 at 8:11 AM, Dan <[email protected]> wrote:
> >> > Hi All,
>
> >> > Following the guide
> >> > ofhttp://www.reviewboard.org/docs/manual/1.5/admin/installation/windows/,
> >> > I installed the reviewboard and created a site.
>
> >> > But when I access the site, it said "Manual server updates required",
> >> > and ask me
> >> > visithttp://code.google.com/p/reviewboard/wiki/RequiredServerUpdates.
> >> > It ask me run the command "manage.py syncdb", I did it, however, got a
> >> > message "Unable to read settings_local.py."
>
> >> > The manage.py is in the reviewboard directory, and the
> >> > settings_local.py is in the conf directory of site. Then I am lost...
>
> >> > Could anyone tell me how to make it work, any help will be highly
> >> > appreciated!
>
> >> > --
> >> > Want to help the Review Board project? Donate today
> >> > athttp://www.reviewboard.org/donate/
> >> > Happy user? Let us know athttp://www.reviewboard.org/users/
> >> > -~----------~----~----~----~------~----~------~--~---
> >> > To unsubscribe from this group, send email to
> >> > [email protected]
> >> > For more options, visit this group
> >> > athttp://groups.google.com/group/reviewboard?hl=en
>
> > --
> > Want to help the Review Board project? Donate today
> > athttp://www.reviewboard.org/donate/
> > Happy user? Let us know athttp://www.reviewboard.org/users/
> > -~----------~----~----~----~------~----~------~--~---
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group
> > athttp://groups.google.com/group/reviewboard?hl=en
--
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
[email protected]
For more options, visit this group at
http://groups.google.com/group/reviewboard?hl=en