On Sep 16, 4:45 pm, Nelson Jones <huawen....@gmail.com> wrote: > On Sep 16, 3:02 pm, Stephen Gallagher <step...@gallagherhome.com> > wrote: > > > > > > > > > > > On Fri, 2011-09-16 at 11:36 -0700, Nelson Jones wrote: > > > Switched with --console > > > > rb-site --console install /var/www/mysite1 > > > > * Welcome to the Review Board site installation wizard > > > > This will prepare a Review Board site installation in: > > > > /var/www/mysite1 > > > > We need to know a few things before we can prepare your site for > > > installation. This will only take a few minutes. > > > > * Required modules are missing > > > > You are missing Python modules that are needed before the > > > installation process. You will need to install the necessary > > > modules and restart the install. > > > > Databases (required): > > > * sqlite3 (pysqlite2, sqlite3) > > > * MySQL (MySQLdb) > > > * PostgreSQL (psycopg2) > > > > I have MySQL installed and MySQL-python-1.2.3 installed (Saw your > > > warning before about-- I should warn you that there's one catch: MySQL > > > doesn't work with this > > > version because RHEL's copy of python-MySQL is too old (this is going > > > to be fixed in RHEL 5.8). --) Thought this should took care > > > of it? > > > Hmm, version 1.2.3 SHOULD fix the issue. I wonder, did you install it in > > the right Python path? How did you install 1.2.3? > > > > But why rb-site still complained MySQLdb missing? > > > > Thanks, > > > > $/usr/lib > file -L _mysql.so > > > _mysql.so: ELF 32-bit LSB shared object, Intel 80386, version 1 > > > (SYSV), not stripped > > > > $/usr/lib/python2.4/site-packages > ll MySMySQLdb/ > > > total 116 > > > -rwxr-xr-x 1 root 10930 Jun 17 2010 connections.py > > > -rwxr-xr-x 1 root 11854 Sep 16 09:37 connections.pyc > > > drwxr-xr-x 2 root 4096 Sep 16 09:37 constants > > > -rwxr-xr-x 1 root 4624 Jun 17 2010 converters.py > > > -rwxr-xr-x 1 root 5956 Sep 16 09:37 converters.pyc > > > -rwxr-xr-x 1 root 16644 Jun 17 2010 cursors.py > > > -rwxr-xr-x 1 root 18667 Sep 16 09:37 cursors.pyc > > > -rwxr-xr-x 1 root 3121 Jun 17 2010 __init__.py > > > -rwxr-xr-x 1 root 4218 Sep 16 09:37 __init__.pyc > > > -rw------- 1 root 117 Sep 16 11:37 release.py > > > -rwxr-xr-x 1 root 343 Sep 16 11:37 release.pyc > > > -rwxr-xr-x 1 root 2845 Jun 17 2010 times.py > > > -rwxr-xr-x 1 root 4335 Sep 16 09:37 times.pyc > > > > On Sep 16, 2:09 pm, Nelson Jones <huawen....@gmail.com> wrote: > > > > Installed EPEL package. But now I got a new exception. > > > > > rb-site install /var/www/mysite1 > > > > Traceback (most recent call last): > > > > File "/usr/bin/rb-site", line 7, in ? > > > > sys.exit( > > > > File "/usr/lib/python2.4/site-packages/reviewboard/cmdline/ > > > > rbsite.py", line 1674, in main > > > > command.run() > > > > File "/usr/lib/python2.4/site-packages/reviewboard/cmdline/ > > > > rbsite.py", line 1193, in run > > > > self.print_introduction() > > > > File "/usr/lib/python2.4/site-packages/reviewboard/cmdline/ > > > > rbsite.py", line 1260, in print_introduction > > > > page = ui.page("Welcome to the Review Board site installation > > > > wizard") > > > > File "/usr/lib/python2.4/site-packages/reviewboard/cmdline/ > > > > rbsite.py", line 875, in page > > > > image = gtk.image_new_from_file(logo_file) > > > > AttributeError: 'module' object has no attribute 'image_new_from_file' > > > > > Please advise. > > > Hmm, looks like there may be a GUI requirement that increased (without > > being mentioned in requires.txt.) I'll have to look into that and see if > > I can patch around it. In the meantime, you have the right idea with > > using the console version. > > > Please file a BZ at bugzilla.redhat.com against ReviewBoard on Fedora > > EPEL.- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text - > > Downloaded package but no luck to install. > > rpm -ivh MySQL-python-1.2.3-0.c1.sgallagh.el5.i386.rpm > error: Failed dependencies: > libmysqlclient_r.so.15 is needed by MySQL- > python-1.2.3-0.c1.sgallagh.el5.i386 > libmysqlclient_r.so.15(libmysqlclient_15) is needed by MySQL- > python-1.2.3-0.c1.sgallagh.el5.i386 > > Mine are 18 not 15. > > /var/mydir/mysql-5.5.16-linux2.6-i686/lib > ll > > 10354460 Sep 9 10:09 libmysqlclient.a > 16 Sep 16 11:13 libmysqlclient_r.a -> libmysqlclient.a > 17 Sep 16 11:13 libmysqlclient_r.so -> libmysqlclient.so > 17 Sep 16 11:13 libmysqlclient_r.so.18 -> libmysqlclient.so > 17 Sep 16 11:13 libmysqlclient_r.so.18.0.0 -> libmysqlclient.so > 20 Sep 16 11:13 libmysqlclient.so -> libmysqlclient.so.18 > 24 Sep 16 11:13 libmysqlclient.so.18 -> libmysqlclient.so.18.0.0 > 6054381 Sep 9 10:09 libmysqlclient.so.18.0.0 > 66604110 Sep 9 10:10 libmysqld.a > 67165644 Sep 9 10:03 libmysqld-debug.a > 6916 Sep 9 10:06 libmysqlservices.a > 888700 Sep 9 09:59 libtcmalloc_minimal.so > 4096 Sep 16 11:13 plugin
I was able to move on with the original EPEL package via the following two steps 1. locally install MySQL Python and 2. Explicitly setup the PYTHONPATH to contain that local directory. Now I hit another error. Installing index for reviews.Comment model Installing index for reviews.ScreenshotComment model Installing index for reviews.Review model Installing index for scmtools.Repository model Installing index for django_evolution.Evolution model OK Performing migrations ... Traceback (most recent call last): File "/usr/bin/rb-site", line 7, in ? sys.exit( File "/usr/lib/python2.4/site-packages/reviewboard/cmdline/ rbsite.py", line 1674, in main command.run() File "/usr/lib/python2.4/site-packages/reviewboard/cmdline/ rbsite.py", line 1214, in run self.show_install_status() File "/usr/lib/python2.4/site-packages/reviewboard/cmdline/ rbsite.py", line 1486, in show_instal l_status site.migrate_database) File "/usr/lib/python2.4/site-packages/reviewboard/cmdline/ rbsite.py", line 714, in step func() File "/usr/lib/python2.4/site-packages/reviewboard/cmdline/ rbsite.py", line 346, in migrate_data base self.run_manage_command("evolve", ["--noinput", "--execute"]) File "/usr/lib/python2.4/site-packages/reviewboard/cmdline/ rbsite.py", line 397, in run_manage_c ommand execute_manager(reviewboard.settings, [__file__, cmd] + params) File "/usr/lib/python2.4/site-packages/django/core/management/ __init__.py", line 362, in execute _manager utility.execute() File "/usr/lib/python2.4/site-packages/django/core/management/ __init__.py", line 303, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.4/site-packages/django/core/management/ base.py", line 195, in run_from_ar gv self.execute(*args, **options.__dict__) File "/usr/lib/python2.4/site-packages/django/core/management/ base.py", line 222, in execute output = self.handle(*args, **options) File "/usr/lib/python2.4/site-packages/django_evolution/management/ commands/evolve.py", line 60, in handle self.evolve(*app_labels, **options) File "/usr/lib/python2.4/site-packages/django_evolution/management/ commands/evolve.py", line 123 , in evolve temp_mutations = get_mutations(app, evolutions, database) File "/usr/lib/python2.4/site-packages/django_evolution/evolve.py", line 52, in get_mutations evolution_module = __import__(module_name, {}, {}, ['']) File "/usr/lib/python2.4/site-packages/reviewboard/changedescs/ evolutions/__init__.py", line 6, in ? if settings.DATABASES['default']['ENGINE'].endswith('mysql'): File "/usr/lib/python2.4/site-packages/django/utils/functional.py", line 276, in __getattr__ return getattr(self._wrapped, name) AttributeError: 'Settings' object has no attribute 'DATABASES' Please advise. Thanks, -- 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