I am also hitting this error w/r/t absolute_url trying to upgrade from 
RBTools 0.57 to 0.6. Our ReviewBoard installation is version 1.6.14.  Seems 
like it should be possible to make the use of absolute_url fallback onto 
some suitable substitute; it certainly appears that there's enough info in 
local variables to construct the right URL.

I have similar output from --debug:

hagar:gtrunk ipm$ rbt post --debug --summary "Summary" --description 
"Description"
>>> RBTools 0.6
>>> Python 2.7.5 (default, Aug 25 2013, 00:04:04) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]
>>> Running on Darwin-13.1.0-x86_64-i386-64bit
>>> Home = /Users/ipm
>>> Current directory = /Users/ipm/code/project/gtrunk
>>> Checking for a Subversion repository...
>>> Running: svn info --non-interactive
>>> Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/Users/ipm/code/project/gtrunk' is not a working copy
---
>>> Checking for a Git repository...
>>> Running: git rev-parse --git-dir
>>> Running: git config core.bare
>>> Running: git rev-parse --show-toplevel
>>> Running: git symbolic-ref -q HEAD
>>> Running: git config --get branch.movingLegend.merge
>>> Running: git config --get branch.movingLegend.remote
>>> Running: git config --get remote.origin.url
>>> repository info: Path: g...@git.ipmcc.com:project.git, Base path: , 
Supports changesets: False
>>> Running: git config --get reviewboard.url
>>> Making HTTP GET request to https://rb.ipmcc.com/Project/api/
>>> Making HTTP GET request to https://rb.ipmcc.com/Project/api/info/
>>> Running: git rev-parse refs/heads/movingLegend
>>> Running: git merge-base c0342d4987792ccdb22d861d38379ed6a7fb3bbb 
origin/twigs/rbtest
>>> Running: git rev-parse 254a5b909aa168f74b7c23ffd57c76f735aef2a3
>>> Running: git status --porcelain --untracked-files=no
>>> Running: git diff --no-color --full-index --ignore-submodules 
--no-renames 
254a5b909aa168f74b7c23ffd57c76f735aef2a3..c0342d4987792ccdb22d861d38379ed6a7fb3bbb
>>> Making HTTP GET request to 
https://rb.ipmcc.com/Project/api/review-requests/
>>> Making HTTP POST request to 
https://rb.ipmcc.com/Project/api/review-requests/
>>> Making HTTP GET request to 
https://rb.ipmcc.com/Project/api/review-requests/58649/diffs/
>>> Making HTTP POST request to 
https://rb.ipmcc.com/Project/api/review-requests/58649/diffs/
>>> Making HTTP GET request to 
https://rb.ipmcc.com/Project/api/review-requests/58649/draft/
>>> Making HTTP PUT request to 
https://rb.ipmcc.com/Project/api/review-requests/58649/draft/
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 8, in <module>
    load_entry_point('RBTools==0.6', 'console_scripts', 'rbt')()
  File 
"/Library/Python/2.7/site-packages/RBTools-0.6-py2.7.egg/rbtools/commands/main.py",
 
line 134, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File 
"/Library/Python/2.7/site-packages/RBTools-0.6-py2.7.egg/rbtools/commands/__init__.py",
 
line 422, in run_from_argv
    exit_code = self.main(*args) or 0
  File 
"/Library/Python/2.7/site-packages/RBTools-0.6-py2.7.egg/rbtools/commands/post.py",
 
line 769, in main
    submit_as=self.options.submit_as)
  File 
"/Library/Python/2.7/site-packages/RBTools-0.6-py2.7.egg/rbtools/commands/post.py",
 
line 606, in post_request
    return review_request.id, review_request.absolute_url
  File 
"/Library/Python/2.7/site-packages/RBTools-0.6-py2.7.egg/rbtools/api/resource.py",
 
line 284, in __getattr__
    raise AttributeError
AttributeError
hagar:gtrunk ipm$ 


I guess back to 0.57 for now.

Regards,
Ian




On Thursday, April 10, 2014 5:28:25 AM UTC-4, Lee Griffiths wrote:
>
> Thanks for getting back to me :)
>
>
> Is just running rbt with -d enough or do I need something more? The log of 
> `rbt post -d ...` is below.
>
> Note: Everything uploads fine, but then the tools crashes.
>
>
>
> note: I've edited:
>
> C:\work\env\python\Python27\Lib\site-packages\rbtools\api\resource.py
>  line 284
> -            raise AttributeError
> +            raise AttributeError(str(name))
>
> as I wanted to see which item in the tuple was the problem.
>
> I can make the problem "go away" if I change
>
> C:\work\env\python\Python27\Lib\site-packages\rbtools\commands\post.py
>  line 606
> -        return review_request.id, review_request.absolute_url
>  +        return review_request.id, "lol/"
>
>
> Obviously the browser then tries to open http://lol/diff, which is no 
> real problem, and at least it doesn't crash :)
>
> Thanks,
> Lee
>
>
> rbt post --username=lee.griffiths --server http://<rb server>/rbsite/ -d 
>  -o --repository-type=perforce 2876535
>
>  >>> RBTools 0.6
> >>> Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit 
> (Intel)]
> >>> Running on Windows-7-6.1.7601-SP1
> >>> Home = C:\Users\lee.griffiths\AppData\Roaming
> >>> Current directory = <valid local path>
> >>> Checking for a Perforce repository...
> >>> Running: p4 info
> >>> Running: diff --version
> >>> repository info: Path: ['<p4 repo>:1666', '<p4 
> repo.fully.qualified>:1666'], Base path: None, Supports changesets: True
> >>> Making HTTP GET request to http://<rb server>/rbsite/api/
>
> ==> HTTP Authentication Required
> Enter authorization information for "Web API" at <rb server>
> Password:
> >>> Making HTTP GET request to http://<rb server>/rbsite/api/info/
> Generating diff for pending changeset 2876535
> >>> Processing edit of <p4 path to file>.c
> >>> Writing "<p4 path to file>.c#17" to 
> "c:\users\lee~1.gri\appdata\local\temp\tmp6dendt"
> >>> Running: p4 print -o c:\users\lee~1.gri\appdata\local\temp\tmp6dendt 
> -q <p4 path to file>.c#17
> >>> Running: diff -urNp c:\users\lee~1.gri\appdata\local\temp\tmp6dendt 
> <valid local path to file>.c
> >>> Command exited with rc 1: ['diff', '-urNp', 
> 'c:\\users\\lee~1.gri\\appdata\\local\\temp\\tmp6dendt', '<valid local path 
> to file>.c']
>
> <valid diff goes here>
>
> ---
> >>> Making HTTP GET request to http://<rb server>/rbsite/api/repositories/
> >>> Making HTTP GET request to http://<rb 
> server>/rbsite/api/review-requests/
> >>> Making HTTP POST request to http://<rb 
> server>/rbsite/api/review-requests/
> >>> Making HTTP GET request to http://<rb 
> server>/rbsite/api/review-requests/1486/diffs/
> >>> Making HTTP POST request to http://<rb 
> server>/rbsite/api/review-requests/1486/diffs/
> >>> Making HTTP GET request to http://<rb 
> server>/rbsite/api/review-requests/1486/draft/
> Traceback (most recent call last):
>   File "C:\work\env\python\Python27\Scripts\rbt-script.py", line 9, in 
> <module>
>     load_entry_point('RBTools==0.6', 'console_scripts', 'rbt')()
>   File 
> "C:\work\env\python\Python27\lib\site-packages\rbtools\commands\main.py", 
> line 134, in main
>     command.run_from_argv([RB_MAIN, command_name] + args)
>   File 
> "C:\work\env\python\Python27\lib\site-packages\rbtools\commands\__init__.py", 
> line 422, in run_from_argv
>     exit_code = self.main(*args) or 0
>   File 
> "C:\work\env\python\Python27\lib\site-packages\rbtools\commands\post.py", 
> line 769, in main
>     submit_as=self.options.submit_as)
>   File 
> "C:\work\env\python\Python27\lib\site-packages\rbtools\commands\post.py", 
> line 606, in post_request
>     return review_request.id, review_request.absolute_url
>   File 
> "C:\work\env\python\Python27\lib\site-packages\rbtools\api\resource.py", 
> line 284, in __getattr__
>     raise AttributeError(str(name))
> AttributeError: absolute_url
>
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to