I just installed and tried this with all versin of RBTools from 2.0 to
4.1 and 3.3 seems to get it the most right but even that doesn't work

$ rm ~/.post-review-cookies.txt ; post-review
==> HTTP Authentication Required
Enter authorization information for "Development" at hostname
Username: josh
Password:
==> Review Board Login Required
Enter username and password for Review Board at http://hostname/reviews/
Error creating review request: HTTP 404

4.0 & 4.1 immediately fail and aside from 3.3 no other version 3.X
seems to get past

Oddly enough if I clear out the credentials from my .reviewboardrc
file and pass in --username and --password with 3.3 I get almost the
same error as with 4.1

On Feb 29, 4:24 pm, Joshua Shanks <jjsha...@gmail.com> wrote:
> looks like I clipped the last line, reran and full output below.
>
> $ post-review
> Traceback (most recent call last):
>   File "/usr/local/bin/post-review", line 9, in <module>
>     load_entry_point('RBTools==0.4.1', 'console_scripts', 'post-
> review')()
>   File "/usr/local/lib/python2.7/dist-packages/RBTools-0.4.1-py2.7.egg/
> rbtools/postreview.py", line 1222, in main
>     if not server.check_api_version():
>   File "/usr/local/lib/python2.7/dist-packages/RBTools-0.4.1-py2.7.egg/
> rbtools/postreview.py", line 226, in check_api_version
>     root_resource = self.api_get('api/')
>   File "/usr/local/lib/python2.7/dist-packages/RBTools-0.4.1-py2.7.egg/
> rbtools/postreview.py", line 669, in api_get
>     return self.process_json(self.http_get(path))
>   File "/usr/local/lib/python2.7/dist-packages/RBTools-0.4.1-py2.7.egg/
> rbtools/postreview.py", line 639, in http_get
>     rsp = urllib2.urlopen(url).read()
>   File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
>     return _opener.open(url, data, timeout)
>   File "/usr/lib/python2.7/urllib2.py", line 400, in open
>     response = meth(req, response)
>   File "/usr/local/lib/python2.7/dist-packages/RBTools-0.4.1-py2.7.egg/
> rbtools/postreview.py", line 97, in http_response
>     response.info())
>   File "/usr/lib/python2.7/urllib2.py", line 432, in error
>     result = self._call_chain(*args)
>   File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain
>     result = func(*args)
>   File "/usr/lib/python2.7/urllib2.py", line 884, in http_error_401
>     url, req, headers)
>   File "/usr/lib/python2.7/urllib2.py", line 859, in
> http_error_auth_reqed
>     response = self.retry_http_basic_auth(host, req, realm)
>   File "/usr/local/lib/python2.7/dist-packages/RBTools-0.4.1-py2.7.egg/
> rbtools/postreview.py", line 129, in retry_http_basic_auth
>     if response.code != 401:
> AttributeError: 'NoneType' object has no attribute 'code'
>
> On Feb 29, 4:20 pm, David Trowbridge <trowb...@gmail.com> wrote:
>
>
>
>
>
>
>
> > The traceback seems to have been cut off. Do you have the last few lines?
>
> > -David
>
> > On Wed, Feb 29, 2012 at 4:17 PM, Joshua Shanks <jjsha...@gmail.com> wrote:
> > > If I turn off http auth around my install of review board post-review
> > > works just fine. If I turn it on no passing in of the --http-*
> > > parameters or setting of HTTP_* in the .reviewboardrc file works and
> > > always results in the exception listed below. I can do basic auth from
> > > multiple browsers and login to reviewboard normally after that as
> > > well.
>
> > > Python 2.7.1+
> > > RBTools 0.4.1
> > > rb-site 1.6.4.1
> > > Apache/2.2.17
>
> > > .reviewboardrc contains
>
> > > REVIEWBOARD_URL = "http://host.com/reviews";
> > > HTTP_USERNAME = "user"
> > > HTTP_PASSWORD = "password"
>
> > > Exception
>
> > > Traceback (most recent call last):
> > >  File "/usr/local/bin/post-review", line 9, in <module>
> > >    load_entry_point('RBTools==0.4.1', 'console_scripts', 'post-
> > > review')()
> > >  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.4.1-py2.7.egg/
> > > rbtools/postreview.py", line 1223, in main
> > >    if not server.check_api_version():
> > >  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.4.1-py2.7.egg/
> > > rbtools/postreview.py", line 227, in check_api_version
> > >    root_resource = self.api_get('api/')
> > >  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.4.1-py2.7.egg/
> > > rbtools/postreview.py", line 670, in api_get
> > >    return self.process_json(self.http_get(path))
> > >  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.4.1-py2.7.egg/
> > > rbtools/postreview.py", line 640, in http_get
> > >    rsp = urllib2.urlopen(url).read()
> > >  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
> > >    return _opener.open(url, data, timeout)
> > >  File "/usr/lib/python2.7/urllib2.py", line 400, in open
> > >    response = meth(req, response)
> > >  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.4.1-py2.7.egg/
> > > rbtools/postreview.py", line 98, in http_response
> > >    response.info())
> > >  File "/usr/lib/python2.7/urllib2.py", line 432, in error
> > >    result = self._call_chain(*args)
> > >  File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain
> > >    result = func(*args)
> > >  File "/usr/lib/python2.7/urllib2.py", line 884, in http_error_401
> > >    url, req, headers)
> > >  File "/usr/lib/python2.7/urllib2.py", line 859, in
> > > http_error_auth_reqed
> > >    response = self.retry_http_basic_auth(host, req, realm)
> > >  File "/usr/local/lib/python2.7/dist-packages/RBTools-0.4.1-py2.7.egg/
> > > rbtools/postreview.py", line 130, in retry_http_basic_auth
> > >    if response.code != 401:
>
> > > --
> > > 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.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

Reply via email to