Re: django.core.exceptions.ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1
I am sorry I didn't reply back. I didn't place the correct group email settings. I know this is 1 year too late :) But it might help others searching for a solution. Basically, if you have installed MySQL-python from the yum like this: yum install MySQL-python That installs a really old version (nothing out of the ordinary with RHEL), you would need to install the package from easy_install as stated in the docs: easy_install mysql-python You will still have a problem doing that on a recent RHEL server with the following error: Searching for mysql-python Reading http://pypi.python.org/simple/mysql-python/ Reading http://sourceforge.net/projects/mysql-python/ Reading http://sourceforge.net/projects/mysql-python Best match: MySQL-python 1.2.3 Downloading http://download.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.3.tar.gz Processing MySQL-python-1.2.3.tar.gz Running MySQL-python-1.2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JSe0sC/MySQL-python-1.2.3/e gg-dist-tmp-oEFDWM warning: no files found matching 'MANIFEST' warning: no files found matching 'ChangeLog' warning: no files found matching 'GPL' _mysql.c:36:23: error: my_config.h: No such file or directory _mysql.c:38:19: error: mysql.h: No such file or directory _mysql.c:39:26: error: mysqld_error.h: No such file or directory _mysql.c:40:20: error: errmsg.h: No such file or directory ... ... _mysql.c:2422: error: initializer element is not constant _mysql.c:2422: error: (near initialization for â_mysql_ResultObject_memberlist[0].offsetâ) _mysql.c: In function â_mysql_ConnectionObject_getattrâ: _mysql.c:2444: error: â_mysql_ConnectionObjectâ has no member named âopenâ error: Setup script exited with error: command 'gcc' failed with exit status 1 You should quickly realize that it requires the MySQL headers since at the beginning stated missing files, so if you install it: yum install mysql-devel It will work perfectly. I hope this will help other people who are running Review Board on RHEL. Maybe worth adding to the docs that mysql-devel is needed t install mysql-python correctly. Thanks, Mohamed Mansour -- 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
Re: Upgraded from beta to 1.0 I am getting cache issues.
I will just use the pserver then, local didn't work for me so I am just using: :pserver:user:p...@192.168.0.100:/cvs I don't understand why :local:/var/cvs didn't work. Thanks! On Jun 23, 10:22 am, Mohamed Mansour m0.interact...@gmail.com wrote: Hello, restarting apache worked, now after upgrades my cvs root doesn't work anymore (somehow, it removed my db info for repositories, so I readded it) My cvs is is local located in /var/cvs/ But I always get the following with the following :local:/var/cvs cvs checkout: cannot open /var/mmansour/.cvsignore: Permission denied cvs [checkout aborted]: Absolute module reference invalid: `/cvs/ mercury/client/src/Test.java' Why does it look into /var/mmansour ? I am really getting confused. Note: mmansour is my username. On Jun 23, 10:07 am, Sebastien Douche sdou...@gmail.com wrote: On Tue, Jun 23, 2009 at 15:26, Mohamed Mansour m0.interact...@gmail.com wrote: Hello, I have updated codereview using rbsite but I am having refresh issues. For example, when I press refresh button on the site I see 1.0 beta many times and sometimes I see 1.0 with the icon (non beta). It isn't my browsing cookies or client cache cause It is still happening. I really don't know what is wrong. The only thing that comes into mind is memcached, I tried restarting it and it still alternates between 1.0beta and 1.0/ Restart (stop / start) Apache and memcached, erase browser cache data, remove old eggs. What's happen? -- Sebastien Douche sdou...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Can't upgrade or new install.
Yea, I made sure I did that, any how, I logged back in 2 days after and it worked fine. I absolutely did nothing. Mysterious, but it worked. Thanks! On May 20, 4:04 pm, Christian Hammond chip...@chipx86.com wrote: It sounds like that user just doesn't have access to the database. This is a MySQL issue. You probably want something like: GRANT ALL ON reviewboard.* TO reviewbo...@localhost; Assuming you still have the reviewbo...@localhost account defined in the DB. If you fully wiped the entire MySQL DB (not use the reviewboard one), then: GRANT ALL ON reviewboard.* TO reviewbo...@localhost IDENTIFIED BY 'somepassword'; Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.review-board.org VMware, Inc. -http://www.vmware.com On Wed, May 20, 2009 at 7:10 AM, Mohamed Mansour m0.interact...@gmail.comwrote: I was trying to upgrade from beta1 but it didn't work, so I did easy_install and upgraded and it failed as well. So I decided to do a fresh install. I got the following error when i do rb-site install /var/www/ reviewboard: [not...@1242826621.423448] mcm_server_connect():2297: Software caused connection abort [not...@1242826621.423571] mcm_server_connect():2297: Software caused connection abort [not...@1242826621.423604] mcm_server_connect_next_avail():2328: Software caused connection abort [w...@1242826621.423632] mcm_server_connect_next_avail():2333 [not...@1242826621.424320] mcm_server_connect_next_avail():2323 It created all the tables in the database so I know my connection is working, but it gives me: Access denied for user 'reviewboard'@'localhost' (using password: YES) I changed my password from old installation to new one, I made sure I deleted all the reviewboard .egg files in site-packages. What should I do? The callstack is: Traceback (most recent call last): File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/core/handlers/base.py, line 86, in get_response response = callback(request, *callback_args, **callback_kwargs) File /usr/lib/python2.4/site-packages/Djblets-0.5beta1-py2.4.egg/ djblets/auth/util.py, line 44, in _checklogin if request.user.is_authenticated(): File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/contrib/auth/middleware.py, line 5, in __get__ request._cached_user = get_user(request) File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/contrib/auth/__init__.py, line 83, in get_user user_id = request.session[SESSION_KEY] File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/contrib/sessions/backends/base.py, line 46, in __getitem__ return self._session[key] File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/contrib/sessions/backends/base.py, line 172, in _get_session self._session_cache = self.load() File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/contrib/sessions/backends/db.py, line 16, in load expire_date__gt=datetime.datetime.now() File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/models/manager.py, line 93, in get return self.get_query_set().get(*args, **kwargs) File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/models/query.py, line 304, in get num = len(clone) File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/models/query.py, line 160, in __len__ self._result_cache = list(self.iterator()) File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/models/query.py, line 275, in iterator for row in self.query.results_iter(): File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/models/sql/query.py, line 206, in results_iter for rows in self.execute_sql(MULTI): File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/models/sql/query.py, line 1733, in execute_sql cursor = self.connection.cursor() File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/backends/__init__.py, line 56, in cursor cursor = self._cursor(settings) File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/backends/mysql/base.py, line 262, in _cursor self.connection = Database.connect(**kwargs) File /usr/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4- linux-i686.egg/MySQLdb/__init__.py, line 74, in Connect File /usr/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4- linux-i686.egg/MySQLdb/connections.py, line 170, in __init__ OperationalError: (1045, Access denied for user 'reviewboard'@'localhost' (using password: YES)) ModPythonRequest path:/dashboard/, GET:QueryDict: {}, POST:QueryDict: {}, COOKIES:{'rbsessionid': '7bfd569dfe7f13ab133bf06714b492c9'}, META:{'AUTH_TYPE': None
Can't upgrade or new install.
I was trying to upgrade from beta1 but it didn't work, so I did easy_install and upgraded and it failed as well. So I decided to do a fresh install. I got the following error when i do rb-site install /var/www/ reviewboard: [not...@1242826621.423448] mcm_server_connect():2297: Software caused connection abort [not...@1242826621.423571] mcm_server_connect():2297: Software caused connection abort [not...@1242826621.423604] mcm_server_connect_next_avail():2328: Software caused connection abort [w...@1242826621.423632] mcm_server_connect_next_avail():2333 [not...@1242826621.424320] mcm_server_connect_next_avail():2323 It created all the tables in the database so I know my connection is working, but it gives me: Access denied for user 'reviewboard'@'localhost' (using password: YES) I changed my password from old installation to new one, I made sure I deleted all the reviewboard .egg files in site-packages. What should I do? The callstack is: Traceback (most recent call last): File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/core/handlers/base.py, line 86, in get_response response = callback(request, *callback_args, **callback_kwargs) File /usr/lib/python2.4/site-packages/Djblets-0.5beta1-py2.4.egg/ djblets/auth/util.py, line 44, in _checklogin if request.user.is_authenticated(): File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/contrib/auth/middleware.py, line 5, in __get__ request._cached_user = get_user(request) File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/contrib/auth/__init__.py, line 83, in get_user user_id = request.session[SESSION_KEY] File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/contrib/sessions/backends/base.py, line 46, in __getitem__ return self._session[key] File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/contrib/sessions/backends/base.py, line 172, in _get_session self._session_cache = self.load() File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/contrib/sessions/backends/db.py, line 16, in load expire_date__gt=datetime.datetime.now() File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/models/manager.py, line 93, in get return self.get_query_set().get(*args, **kwargs) File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/models/query.py, line 304, in get num = len(clone) File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/models/query.py, line 160, in __len__ self._result_cache = list(self.iterator()) File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/models/query.py, line 275, in iterator for row in self.query.results_iter(): File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/models/sql/query.py, line 206, in results_iter for rows in self.execute_sql(MULTI): File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/models/sql/query.py, line 1733, in execute_sql cursor = self.connection.cursor() File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/backends/__init__.py, line 56, in cursor cursor = self._cursor(settings) File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/backends/mysql/base.py, line 262, in _cursor self.connection = Database.connect(**kwargs) File /usr/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4- linux-i686.egg/MySQLdb/__init__.py, line 74, in Connect File /usr/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4- linux-i686.egg/MySQLdb/connections.py, line 170, in __init__ OperationalError: (1045, Access denied for user 'reviewboard'@'localhost' (using password: YES)) ModPythonRequest path:/dashboard/, GET:QueryDict: {}, POST:QueryDict: {}, COOKIES:{'rbsessionid': '7bfd569dfe7f13ab133bf06714b492c9'}, META:{'AUTH_TYPE': None, 'CONTENT_LENGTH': 0L, 'CONTENT_TYPE': None, 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,bzip2,sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'rbsessionid=7bfd569dfe7f13ab133bf06714b492c9', 'HTTP_HOST': 'reviews', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.9 (KHTML, like Gecko) Chrome/2.0.180.0 Safari/530.9', 'PATH_INFO': u'/dashboard/', 'PATH_TRANSLATED': None, 'QUERY_STRING': None, 'REMOTE_ADDR': '172.31.2.26', 'REMOTE_HOST': None, 'REMOTE_IDENT': None, 'REMOTE_USER': None, 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': '', 'SERVER_NAME': 'reviews', 'SERVER_PORT': 0, 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'mod_python'}
django.core.exceptions.ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1
Hello, I am getting errors while running the tool: rb-site install /var/www/reviews.example.com I have created the database, but have the following issues, any help is appreciated: * Installing the site... Building site directories ... OK Building site configuration files ... OK Creating database ... Traceback (most recent call last): File /usr/bin/rb-site, line 5, in ? pkg_resources.run_script('ReviewBoard==1.0beta2', 'rb-site') File /usr/lib/python2.4/site-packages/pkg_resources.py, line 448, in run_script self.require(requires)[0].run_script(script_name, ns) File /usr/lib/python2.4/site-packages/pkg_resources.py, line 1166, in run_script execfile(script_filename, namespace, namespace) File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 1280, in ? main(sys.argv[1:]) File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 1275, in main command.run() File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 912, in run self.show_install_status() File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 1134, in show_install_status site.sync_database) File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 519, in step func() File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 224, in sync_database self.run_manage_command(syncdb, [--noinput]) File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 261, in run_manage_command fix_django_evolution_issues(reviewboard.settings) File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/reviewboard/admin/migration.py, line 13, in fix_django_evolution_issues import django.db.models.fields as model_fields File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/__init__.py, line 16, in ? backend = __import__('%s%s.base' % (_import_path, settings.DATABASE_ENGINE), {}, {}, ['']) File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/backends/mysql/base.py, line 22, in ? raise ImproperlyConfigured(MySQLdb-1.2.1p2 or newer is required; you have %s % Database.__version__) django.core.exceptions.ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: django.core.exceptions.ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1
Sorry, I forgot to say that I am using Red Hat Enterprise 5, on a new server. + On Apr 7, 1:35 pm, Mohamed Mansour m0.interact...@gmail.com wrote: Hello, I am getting errors while running the tool: rb-site install /var/www/reviews.example.com I have created the database, but have the following issues, any help is appreciated: * Installing the site... Building site directories ... OK Building site configuration files ... OK Creating database ... Traceback (most recent call last): File /usr/bin/rb-site, line 5, in ? pkg_resources.run_script('ReviewBoard==1.0beta2', 'rb-site') File /usr/lib/python2.4/site-packages/pkg_resources.py, line 448, in run_script self.require(requires)[0].run_script(script_name, ns) File /usr/lib/python2.4/site-packages/pkg_resources.py, line 1166, in run_script execfile(script_filename, namespace, namespace) File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 1280, in ? main(sys.argv[1:]) File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 1275, in main command.run() File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 912, in run self.show_install_status() File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 1134, in show_install_status site.sync_database) File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 519, in step func() File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 224, in sync_database self.run_manage_command(syncdb, [--noinput]) File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/EGG-INFO/scripts/rb-site, line 261, in run_manage_command fix_django_evolution_issues(reviewboard.settings) File /usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2- py2.4.egg/reviewboard/admin/migration.py, line 13, in fix_django_evolution_issues import django.db.models.fields as model_fields File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/__init__.py, line 16, in ? backend = __import__('%s%s.base' % (_import_path, settings.DATABASE_ENGINE), {}, {}, ['']) File /usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/ django/db/backends/mysql/base.py, line 22, in ? raise ImproperlyConfigured(MySQLdb-1.2.1p2 or newer is required; you have %s % Database.__version__) django.core.exceptions.ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com 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 -~--~~~~--~~--~--~---