Posting a diff with [rbt post -d] causes a strange python error

2015-04-24 Thread Nicolas Comet
Hi, 

When any of my colleague (including me) are trying to post with the rbt 
post -d command, we get this stacktrace :

DEBUG:root:Making HTTP POST request to 
http://reviewboard.*/api/review-requests/
Traceback (most recent call last):
  File C:\Python27\Scripts\rbt-script.py, line 9, in module
load_entry_point('rbtools==0.5.7', 'console_scripts', 'rbt')()
  File 
C:\Python27\lib\site-packages\rbtools-0.5.7-py2.7.egg\rbtools\commands\main.py,
 
line 127, in main
command.run_from_argv([RB_MAIN] + args)
  File 
C:\Python27\lib\site-packages\rbtools-0.5.7-py2.7.egg\rbtools\commands\__init__.py,
 
line 158, in run_from_argv
exit_code = self.main(*args) or 0
  File 
C:\Python27\lib\site-packages\rbtools-0.5.7-py2.7.egg\rbtools\commands\post.py,
 
line 659, in main
submit_as=self.options.submit_as)
  File 
C:\Python27\lib\site-packages\rbtools-0.5.7-py2.7.egg\rbtools\commands\post.py,
 
line 511, in post_request
review_request.get_diffs().upload_diff(diff_content,
AttributeError: 'ListResource' object has no attribute 'get_diffs'

we all use : 

rbtools v0.5.7 on our local machines

ReviewBoard v2.0.12


Maybe an important thing to note is we are using the LDAP auth mode on 
reviewboard, and our password policy at our company requires us to change 
passwords every two month.

Do you have any clue of what might be going on?  
(I'll maybe try to upgrade rbtools client on my machine to see if it fixes 
the problem, but I really don't see why it should)

Thanks already,

Nicolas COMET.

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.


Re: Posting a diff with [rbt post -d] causes a strange python error

2015-04-24 Thread David Trowbridge
Would you be able to test with a more modern rbtools? 0.5.7 is pretty old.

-David
On Fri, Apr 24, 2015 at 12:03 AM Nicolas Comet nicolas.co...@gmail.com
wrote:

 Hi,

 When any of my colleague (including me) are trying to post with the rbt
 post -d command, we get this stacktrace :

 DEBUG:root:Making HTTP POST request to http://reviewboard.
 */api/review-requests/
 Traceback (most recent call last):
   File C:\Python27\Scripts\rbt-script.py, line 9, in module
 load_entry_point('rbtools==0.5.7', 'console_scripts', 'rbt')()
   File
 C:\Python27\lib\site-packages\rbtools-0.5.7-py2.7.egg\rbtools\commands\main.py,
 line 127, in main
 command.run_from_argv([RB_MAIN] + args)
   File
 C:\Python27\lib\site-packages\rbtools-0.5.7-py2.7.egg\rbtools\commands\__init__.py,
 line 158, in run_from_argv
 exit_code = self.main(*args) or 0
   File
 C:\Python27\lib\site-packages\rbtools-0.5.7-py2.7.egg\rbtools\commands\post.py,
 line 659, in main
 submit_as=self.options.submit_as)
   File
 C:\Python27\lib\site-packages\rbtools-0.5.7-py2.7.egg\rbtools\commands\post.py,
 line 511, in post_request
 review_request.get_diffs().upload_diff(diff_content,
 AttributeError: 'ListResource' object has no attribute 'get_diffs'

 we all use :


- rbtools v0.5.7 on our local machines


- ReviewBoard v2.0.12


 Maybe an important thing to note is we are using the LDAP auth mode on
 reviewboard, and our password policy at our company requires us to change
 passwords every two month.

 Do you have any clue of what might be going on?
 (I'll maybe try to upgrade rbtools client on my machine to see if it fixes
 the problem, but I really don't see why it should)

 Thanks already,

 Nicolas COMET.

 --
 Supercharge your Review Board with Power Pack:
 https://www.reviewboard.org/powerpack/
 Want us to host Review Board for you? Check out RBCommons:
 https://rbcommons.com/
 Happy user? Let us know! https://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.


-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.