What version of Mercurial is on that system? The problem is that we're getting the version of Mercurial and trying to test its version, but it's coming back None.
Christian On Dec 28, 2012, at 4:19 PM, Randy Faux <randy.f...@gmail.com> wrote: > Hello, > > After upgrading from, I think 1.6.5, to 1.7.1 we are seeing some issues with > our rb. I added the /static alias to the apache2 virtualhost, which got us > mostly going. We're seeing errors of the type: > > ERROR:root:Exception thrown for user xxxxxx at > http://reviewboard.our.site/r/5/ > > 'NoneType' object is not callable > Traceback (most recent call last): > File > "/usr/local/lib/python2.7/dist-packages/Django-1.4.3-py2.7.egg/django/core/handlers/base.py", > line 111, in get_response > response = callback(request, *callback_args, **callback_kwargs) > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/accounts/decorators.py", > line 20, in _check > return login_required(view_func)(*args, **kwargs) > File > "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.8-py2.7.egg/djblets/auth/util.py", > line 47, in _checklogin > return view_func(request, *args, **kwargs) > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/reviews/views.py", > line 728, in review_detail > 'screenshots': screenshots, > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/reviews/views.py", > line 124, in _make_review_request_context > upload_diff_form = UploadDiffForm(review_request) > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/reviews/forms.py", > line 276, in __init__ > data, *args, **kwargs) > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/diffviewer/forms.py", > line 51, in __init__ > if self.repository.get_scmtool().get_diffs_use_absolute_paths(): > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/scmtools/models.py", > line 134, in get_scmtool > return cls(self) > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/scmtools/hg.py", > line 31, in __init__ > self.client = HgClient(repository.path, repository.local_site) > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/scmtools/hg.py", > line 215, in __init__ > if parse_version(version) <= parse_version("1.2"): > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1956, in > parse_version > for part in _parse_version_parts(s.lower()): > TypeError: 'NoneType' object is not callable > ERROR:django.request:Internal Server Error: /r/5/ > Traceback (most recent call last): > File > "/usr/local/lib/python2.7/dist-packages/Django-1.4.3-py2.7.egg/django/core/handlers/base.py", > line 111, in get_response > response = callback(request, *callback_args, **callback_kwargs) > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/accounts/decorators.py", > line 20, in _check > return login_required(view_func)(*args, **kwargs) > File > "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.8-py2.7.egg/djblets/auth/util.py", > line 47, in _checklogin > return view_func(request, *args, **kwargs) > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/reviews/views.py", > line 728, in review_detail > 'screenshots': screenshots, > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/reviews/views.py", > line 124, in _make_review_request_context > upload_diff_form = UploadDiffForm(review_request) > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/reviews/forms.py", > line 276, in __init__ > data, *args, **kwargs) > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/diffviewer/forms.py", > line 51, in __init__ > if self.repository.get_scmtool().get_diffs_use_absolute_paths(): > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/scmtools/models.py", > line 134, in get_scmtool > return cls(self) > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/scmtools/hg.py", > line 31, in __init__ > self.client = HgClient(repository.path, repository.local_site) > File > "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.1-py2.7.egg/reviewboard/scmtools/hg.py", > line 215, in __init__ > if parse_version(version) <= parse_version("1.2"): > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1956, in > parse_version > for part in _parse_version_parts(s.lower()): > TypeError: 'NoneType' object is not callable > > We are running on Ubuntu 12.04.1 x86_64 with python 2.7 installed. Here is > our simple virtualhost: > <VirtualHost *:80> > ServerName reviewboard.our.site > DocumentRoot "/var/www/rbsite/htdocs" > > # Error handlers > ErrorDocument 500 /errordocs/500.html > > WSGIPassAuthorization On > WSGIScriptAlias "/" "/var/www/rbsite/htdocs/reviewboard.wsgi/" > > <Directory "/var/www/rbsite/htdocs"> > AllowOverride All > Options -Indexes FollowSymLinks > Allow from all > </Directory> > > # Alias static media requests to filesystem > Alias /static "/var/www/rbsite/htdocs/static" > Alias /media "/var/www/rbsite/htdocs/media" > Alias /errordocs "/var/www/rbsite/htdocs/errordocs" > Alias /favicon.ico > "/var/www/rbsite/htdocs/media/rbcommons/images/favicon.png" > </VirtualHost> > > Thanks for any help. > Randy > > > > > -- > 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 > > -- 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