KeyError at /admin/db/scmtools/repository/add/

2010-10-09 Thread Alex
Greetings,

I just upgraded from RB 1.0RC3 to 1.5 and ran rb-site upgrade and
followed the instructions. I use it with apache/mod_python and while
the old repositories we had are still working fine I cannot add a
github repository. I get the following error when I try to do so, any
input is greatly appreciated:

Environment:

Request Method: POST
Request URL: http://inspect.ingres.com/admin/db/scmtools/repository/add/
Django Version: 1.2.3
Python Version: 2.4.3
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.markup',
 'django.contrib.sites',
 'django.contrib.sessions',
 'djblets.datagrid',
 'djblets.feedview',
 'djblets.log',
 'djblets.siteconfig',
 'djblets.util',
 'djblets.webapi',
 'reviewboard.accounts',
 'reviewboard.admin',
 'reviewboard.changedescs',
 'reviewboard.diffviewer',
 'reviewboard.iphone',
 'reviewboard.notifications',
 'reviewboard.reports',
 'reviewboard.reviews',
 'reviewboard.scmtools',
 'reviewboard.webapi',
 'django_evolution']
Installed Middleware:
('django.middleware.gzip.GZipMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.http.ConditionalGetMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'djblets.siteconfig.middleware.SettingsMiddleware',
 'reviewboard.admin.middleware.LoadSettingsMiddleware',
 'djblets.log.middleware.LoggingMiddleware',
 'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware',
 'reviewboard.admin.middleware.X509AuthMiddleware')


Traceback:
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
core/handlers/base.py in get_response
  100. response = callback(request,
*callback_args, **callback_kwargs)
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
contrib/admin/sites.py in root
  512. return self.model_page(request, *url.split('/',
2))
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
views/decorators/cache.py in _wrapped_view_func
  69. response = view_func(request, *args, **kwargs)
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
contrib/admin/sites.py in model_page
  531. return admin_obj(request, rest_of_url)
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
contrib/admin/options.py in __call__
  1190. return self.add_view(request)
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
utils/decorators.py in _wrapper
  21. return decorator(bound_func)(*args, **kwargs)
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
utils/decorators.py in _wrapped_view
  76. response = view_func(request, *args,
**kwargs)
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
utils/decorators.py in bound_func
  17. return func(self, *args2, **kwargs2)
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
db/transaction.py in _commit_on_success
  299. res = func(*args, **kw)
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
contrib/admin/options.py in add_view
  777. if form.is_valid():
File /usr/lib/python2.4/site-packages/ReviewBoard-1.5-py2.4.egg/
reviewboard/scmtools/forms.py in is_valid
  578. return (super(RepositoryForm, self).is_valid() and
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
forms/forms.py in is_valid
  121. return self.is_bound and not bool(self.errors)
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
forms/forms.py in _get_errors
  112. self.full_clean()
File /usr/lib/python2.4/site-packages/ReviewBoard-1.5-py2.4.egg/
reviewboard/scmtools/forms.py in full_clean
  500. return super(RepositoryForm, self).full_clean()
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
forms/forms.py in full_clean
  268. self._clean_form()
File /usr/lib/python2.4/site-packages/Django-1.2.3-py2.4.egg/django/
forms/forms.py in _clean_form
  296. self.cleaned_data = self.clean()
File /usr/lib/python2.4/site-packages/ReviewBoard-1.5-py2.4.egg/
reviewboard/scmtools/forms.py in clean
  516. self._clean_hosting_info()
File /usr/lib/python2.4/site-packages/ReviewBoard-1.5-py2.4.egg/
reviewboard/scmtools/forms.py in _clean_hosting_info
  448. tool_name = self.cleaned_data['tool'].name

Exception Type: KeyError at /admin/db/scmtools/repository/add/
Exception Value: 'tool'

-- 
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

Re: KeyError at /admin/db/scmtools/repository/add/

2010-10-09 Thread Thilo-Alexander Ginkel
Hi Alex,

On Sat, Oct 9, 2010 at 16:47, Alex atrof...@gmail.com wrote:
 Exception Type: KeyError at /admin/db/scmtools/repository/add/
 Exception Value: 'tool'

I guess your scmtools on the database is empty. I have seen this once
on a test upgrade - I guess something went wrong during the evolution.

There is a manage.py command available to populate the table again
(don't remember it right now).

Regards,
Thilo

-- 
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: KeyError at /admin/db/scmtools/repository/add/

2010-10-09 Thread Alex
Hmm scmtools_tool is not empty:

sqlite select * from scmtools_tool;
1|Subversion|reviewboard.scmtools.svn.SVNTool
2|Git|reviewboard.scmtools.git.GitTool
3|Bazaar|reviewboard.scmtools.bzr.BZRTool
4|CVS|reviewboard.scmtools.cvs.CVSTool
5|Perforce|reviewboard.scmtools.perforce.PerforceTool
6|Clear Case|reviewboard.scmtools.clearcase.ClearCaseTool
7|Mercurial|reviewboard.scmtools.hg.HgTool


On Oct 9, 10:50 am, Thilo-Alexander Ginkel th...@ginkel.com wrote:
 Hi Alex,

 On Sat, Oct 9, 2010 at 16:47, Alex atrof...@gmail.com wrote:
  Exception Type: KeyError at /admin/db/scmtools/repository/add/
  Exception Value: 'tool'

 I guess your scmtools on the database is empty. I have seen this once
 on a test upgrade - I guess something went wrong during the evolution.

 There is a manage.py command available to populate the table again
 (don't remember it right now).

 Regards,
 Thilo

-- 
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: KeyError at /admin/db/scmtools/repository/add/

2010-10-09 Thread Alex
Oh and I forgot to add, I can create SVN repositories just fine when
selecting Custom, then Subversion.

Thanks!

On Oct 9, 10:50 am, Thilo-Alexander Ginkel th...@ginkel.com wrote:
 Hi Alex,

 On Sat, Oct 9, 2010 at 16:47, Alex atrof...@gmail.com wrote:
  Exception Type: KeyError at /admin/db/scmtools/repository/add/
  Exception Value: 'tool'

 I guess your scmtools on the database is empty. I have seen this once
 on a test upgrade - I guess something went wrong during the evolution.

 There is a manage.py command available to populate the table again
 (don't remember it right now).

 Regards,
 Thilo

-- 
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: KeyError at /admin/db/scmtools/repository/add/

2010-10-09 Thread Alex
If I select GitHub, then I put the owner and project name in and when
I switch to custom  Path, Mirror Path and Raw file URL mask are empty.
If I enter a user/pass they stay the same. Also the Use hosting
service's bug tracker does not stay checked.

I'm using Google Chrome, on Windows 7 64 bit ATM.

Thanks for looking into this!

On Oct 9, 4:10 pm, Christian Hammond chip...@chipx86.com wrote:
 Hi Alex,

 Strange problem. Try something for me. Select your GitHub settings, and then
 switch the Hosting type to Custom and show me what values you see. I'm
 particularly interested in what it says for the Tool.

 If it failed to find the tool, it should be providing an error message, so
 long as the form is being validated in the right order. I wonder if it's
 not.

 Can you tell me also what browser you're using?

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.reviewboard.org
 VMware, Inc. -http://www.vmware.com



 On Sat, Oct 9, 2010 at 9:04 AM, Alex atrof...@gmail.com wrote:
  Oh and I forgot to add, I can create SVN repositories just fine when
  selecting Custom, then Subversion.

  Thanks!

  On Oct 9, 10:50 am, Thilo-Alexander Ginkel th...@ginkel.com wrote:
   Hi Alex,

   On Sat, Oct 9, 2010 at 16:47, Alex atrof...@gmail.com wrote:
Exception Type: KeyError at /admin/db/scmtools/repository/add/
Exception Value: 'tool'

   I guess your scmtools on the database is empty. I have seen this once
   on a test upgrade - I guess something went wrong during the evolution.

   There is a manage.py command available to populate the table again
   (don't remember it right now).

   Regards,
   Thilo

  --
  Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
  Happy user? Let us know athttp://www.reviewboard.org/users/
  -~--~~~~--~~--~--~---
  To unsubscribe from this group, send email to
  reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegr 
  oups.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