No module named importlib during rb-site upgrade

2014-09-23 Thread Austin Hanson
Trying to upgrade RB from 1.7.25 to 2.0.7 and having some problems.

*[root@codereview www]#* uname -morvs
Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 
GNU/Linux

*[root@codereview www]#* python --version
Python 2.6.6

*[root@codereview www]#* rb-site --version
rb-site 2.0.7

*[root@codereview www]#* django-admin --version
1.6.7

*[root@codereview www]#* rb-site upgrade reviewboard
Rebuilding directory structure
Updating database. This may take a while.

The log output below, including warnings and errors,
can be ignored unless upgrade fails.

-- begin log output --

[!] Unable to execute the manager command syncdb: No module named
importlib

[!] Unable to execute the manager command registerscmtools: No module
named importlib

[!] Unable to execute the manager command evolve: No module named
importlib
--- end log output ---

Resetting in-database caches.

[!] Unable to execute the manager command fixreviewcounts: cannot
import name FileAttachment

Upgrade complete!

There are duplicate copies of diffs in your database that can be condensed.
These are the result of posting several iterations of a change for review on
older versions of Review Board.

Removing duplicate diff data will save space in your database and speed up
future upgrades.

To condense duplicate diffs, type the following:

$ rb-site manage /var/www/reviewboard condensediffs

*[root@codereview www]#* tail -f /var/log/httpd/error_log
[Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] from 
reviewboard.admin.widgets import increment_sync_num, referer: 
http://cr.carsforsale.local/r/
[Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13]   File 
/usr/lib/python2.6/site-packages/ReviewBoard-2.0.7-py2.6.egg/reviewboard/admin/widgets.py,
 
line 17, in module, referer: http://cr.carsforsale.local/r/
[Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] from 
reviewboard.attachments.models import FileAttachment, referer: 
http://cr.carsforsale.local/r/
[Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13]   File 
/usr/lib/python2.6/site-packages/ReviewBoard-2.0.7-py2.6.egg/reviewboard/attachments/models.py,
 
line 12, in module, referer: http://cr.carsforsale.local/r/
[Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] from 
reviewboard.attachments.mimetypes import MimetypeHandler, referer: 
http://cr.carsforsale.local/r/
[Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13]   File 
/usr/lib/python2.6/site-packages/ReviewBoard-2.0.7-py2.6.egg/reviewboard/attachments/mimetypes.py,
 
line 17, in module, referer: http://cr.carsforsale.local/r/
[Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] import 
markdown, referer: http://cr.carsforsale.local/r/
[Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13]   File 
/usr/lib/python2.6/site-packages/Markdown-2.5-py2.6.egg/markdown/__init__.py, 
line 40, in module, referer: http://cr.carsforsale.local/r/
[Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] import 
importlib, referer: http://cr.carsforsale.local/r/
[Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] 
ImproperlyConfigured: Error importing module reviewboard.admin.middleware: 
No module named importlib, referer: http://cr.carsforsale.local/r/

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


Re: No module named importlib during rb-site upgrade

2014-09-23 Thread Austin Hanson
Hi Christian,

I can't risk taking RB down. I've cloned the RB directory and the mysql DB 
it's connected to but haven't had much luck getting the clone to point to 
the new database. Am I missing an obvious command in rb-site manage?

On Tuesday, September 23, 2014 1:20:10 PM UTC-5, Christian Hammond wrote:

 Hey Austin, 

 There was another issue reported recently with 'importlib'-related issues, 
 but we haven't had any responses yet, so we'll have to do some 
 investigating with your server. 

 I think the culprit is the Markdown module. Can you try downgrading to 
 Markdown-2.3.1? You can 
 delete /usr/lib/python2.6/site-packages/Markdown-2.5-py2.6.egg and then do: 

 easy_install Markdown==2.3.1 

 This is the version I'm using, so I know it works at least. 

 Christian 

 --   
 Christian Hammond - chri...@beanbaginc.com javascript: 
 Review Board - https://www.reviewboard.org   
 Beanbag, Inc. - https://www.beanbaginc.com 


 On September 23, 2014 at 8:33:28 AM, Austin Hanson (ber...@gmail.com 
 javascript:) wrote: 
  Trying to upgrade RB from 1.7.25 to 2.0.7 and having some problems. 

  *[root@codereview www]#* uname -morvs 
  Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 
  GNU/Linux 

  *[root@codereview www]#* python --version 
  Python 2.6.6 

  *[root@codereview www]#* rb-site --version 
  rb-site 2.0.7 

  *[root@codereview www]#* django-admin --version 
  1.6.7 

  *[root@codereview www]#* rb-site upgrade reviewboard 
  Rebuilding directory structure 
  Updating database. This may take a while. 

  The log output below, including warnings and errors, 
  can be ignored unless upgrade fails. 

  -- -- 

  [!] Unable to execute the manager command syncdb: No module named 
  importlib 

  [!] Unable to execute the manager command registerscmtools: No module 
  named importlib 

  [!] Unable to execute the manager command evolve: No module named 
  importlib 
  --- --- 

  Resetting in-database caches. 

  [!] Unable to execute the manager command fixreviewcounts: cannot 
  import name FileAttachment 

  Upgrade complete! 

  There are duplicate copies of diffs in your database that can be 
 condensed. 
  These are the result of posting several iterations of a change for 
 review on 
  older versions of Review Board. 

  Removing duplicate diff data will save space in your database and speed 
 up 
  future upgrades. 

  To condense duplicate diffs, type the following: 

  $ rb-site manage /var/www/reviewboard condensediffs 

  *[root@codereview www]#* tail -f /var/log/httpd/error_log 
  [Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] from 
  reviewboard.admin.widgets import increment_sync_num, referer: 
  http://cr.carsforsale.local/r/ 
  [Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] File 
  
 /usr/lib/python2.6/site-packages/ReviewBoard-2.0.7-py2.6.egg/reviewboard/admin/widgets.py,
  
   
  line 17, in , referer: http://cr.carsforsale.local/r/ 
  [Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] from 
  reviewboard.attachments.models import FileAttachment, referer: 
  http://cr.carsforsale.local/r/ 
  [Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] File 
  
 /usr/lib/python2.6/site-packages/ReviewBoard-2.0.7-py2.6.egg/reviewboard/attachments/models.py,
  
   
  line 12, in , referer: http://cr.carsforsale.local/r/ 
  [Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] from 
  reviewboard.attachments.mimetypes import MimetypeHandler, referer: 
  http://cr.carsforsale.local/r/ 
  [Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] File 
  
 /usr/lib/python2.6/site-packages/ReviewBoard-2.0.7-py2.6.egg/reviewboard/attachments/mimetypes.py,
  
   
  line 17, in , referer: http://cr.carsforsale.local/r/ 
  [Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] import 
  markdown, referer: http://cr.carsforsale.local/r/ 
  [Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] File 
  
 /usr/lib/python2.6/site-packages/Markdown-2.5-py2.6.egg/markdown/__init__.py,
  
   
  line 40, in , referer: http://cr.carsforsale.local/r/ 
  [Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] import 
  importlib, referer: http://cr.carsforsale.local/r/ 
  [Tue Sep 23 15:12:02 2014] [error] [client 192.168.2.13] 
  ImproperlyConfigured: Error importing module 
 reviewboard.admin.middleware: 
  No module named importlib, referer: http://cr.carsforsale.local/r/ 

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

Re: ReviewBoard: Create a diff file to send for Code review in ReviewBoard where the source depot is TFS and not Git

2014-09-22 Thread Austin Hanson
I've published a CR (two actually) adding official support for TFS.
Please see:
https://reviews.reviewboard.org/r/6355/
https://reviews.reviewboard.org/r/6356/

You'll need the cross platform command line tool 
from http://www.microsoft.com/en-us/download/details.aspx?id=40785 and GNU 
diff (http://gnuwin32.sourceforge.net/packages/diffutils.htm for windows 
should work, I'll be testing it later today...). Make sure both of these 
tools are on your path.

Add the repo to review board and make sure the repo path you type in fully 
matches the collection path. This is something like 
http://tfs:8080/tfs/some collection here/ - tf automatically assumes 
lowercase so you should type it in lowercase as well.

Then:
rbt post --tfs-login user@domain,pass -o

If you set an environment variable, TF_AUTO_SAVE_CREDENTIALS, to anything 
and post with --tfs-login once, TFS will remember your user/pass and you 
won't have to specify it again. However, one caveat to this is that I have 
yet to figure out how to remove the cached credentials. You can reset them 
(by post'ing with different credentials) but I don't know how to remove 
them.

On Friday, May 23, 2014 4:03:30 PM UTC-5, Priyadarshan Wanjari wrote:

 Can I use ReviewBoard where my code is in TFS and not in GIT or other 
 supported repositories? Basically we are looking for using this tool 
 (ReviewBoard) to enable code review between teams. Our source repository is 
 still TFS and we are not looking for a highly integrated solution but 
 somehow create a diff file for the local changes and post it on the 
 ReviewBoard for code review.

 Thanks



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


Re: BadRequest Error while posting using rbt

2014-07-07 Thread Austin Hanson
Any chance this has been pushed or will be pushed soon? It looks like we're 
facing the same issue.

On Wednesday, June 25, 2014 6:06:26 PM UTC-5, David Trowbridge wrote:

 This particular issue in rbtools is already fixed in Git and will ship 
 with the next release. We'll try to get that release out soon.

 -David


 On Wed, Jun 25, 2014 at 1:17 PM, Neeraj K nee...@minted.com javascript:
  wrote:

 Hi all,

 I am using RBTools 0.6.1. While posting reviews I get this error

 techopss-mbp-10:minted neeraj$ rbt post -g --target-groups=fulfillment -d 
 -r23696

  RBTools 0.6.1

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

  Current directory = /Users/neeraj/Work/Minted/minted

  Checking for a Subversion repository...

  Running: svn info --non-interactive

  Command exited with rc 1: ['svn', 'info', '--non-interactive']

 svn: E155007: '/Users/neeraj/Work/Minted/minted' 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 svn info

  repository info: Path: https://svn.minted.com/svn, Base path: 
 /minted/branches/release-printerapi, Supports changesets: False

  Making HTTP GET request to https://reviewboard.minted.com/api/

  Running: git rev-parse refs/heads/relprinterapi2

  Running: git merge-base 5c06f64988aaeb6716d89e8e009582ca8c0f7b82 trunk

  Running: git rev-parse e349309cd456b0b2a2265d2028d2468bb2325266

  Running: git status --porcelain --untracked-files=no

  Running: git diff --no-color --no-prefix -r -u 
 e349309cd456b0b2a2265d2028d2468bb2325266..5c06f64988aaeb6716d89e8e009582ca8c0f7b82

  Running: git svn find-rev e349309cd456b0b2a2265d2028d2468bb2325266

  Running: git log --reverse --pretty=format:%s%n%n%b 
 ^e349309cd456b0b2a2265d2028d2468bb2325266 
 5c06f64988aaeb6716d89e8e009582ca8c0f7b82

  Making HTTP GET request to 
 https://reviewboard.minted.com/api/review-requests/23696/

  Making HTTP GET request to 
 https://reviewboard.minted.com/api/review-requests/23696/diffs/

  Making HTTP POST request to 
 https://reviewboard.minted.com/api/review-requests/23696/diffs/

  Got API Error 207 (HTTP code 400): The file was not found in the 
 repository.

  Error data: {u'stat': u'fail', u'file': 
 u'/minted/branches/release-printerapi/src/py/minted/logic/order/__init__.py',
  
 u'err': {u'msg': u'The file was not found in the repository.', u'code': 
 207}, u'revision': u'45974'}

 Traceback (most recent call last):

   File /usr/local/bin/rbt, line 8, in module

 load_entry_point('RBTools==0.6.1', 'console_scripts', 'rbt')()

   File 
 /Library/Python/2.7/site-packages/RBTools-0.6.1-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.1-py2.7.egg/rbtools/commands/__init__.py,
  
 line 416, in run_from_argv

 exit_code = self.main(*args) or 0

   File 
 /Library/Python/2.7/site-packages/RBTools-0.6.1-py2.7.egg/rbtools/commands/post.py,
  
 line 784, in main

 submit_as=self.options.submit_as)

   File 
 /Library/Python/2.7/site-packages/RBTools-0.6.1-py2.7.egg/rbtools/commands/post.py,
  
 line 543, in post_request

 error_msg.append(e.decode('utf-8') + u'\n')

 AttributeError: 'BadRequestError' object has no attribute 'decode'

 Also when I create a separate branch and try I get the same error. It 
 created these zombie reviews with nothing in them. I have tried this after 
 discarding all such reviews but still get the same error. Any idea whats 
 wrong ?
  
 -- 
 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...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




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