mockbuild of ReviewBoard 3.0.14 gives Import Error in django

2019-04-11 Thread 'Tony' via Review Board Community


Hi, I'm trying to understand this error during the build (my debug statements 
in bold):


The "True" output is printing 
'staticbundles.py' in os.listdir( sys.path[ 1 ] )
, so the file is clearly there. You can also see it in the last line.


DEBUG: running build_media*DEBUG: build-media.py's default sys.path: 
['/builddir/build/BUILD/ReviewBoard-3.0.14/contrib/internal', 
'/usr/lib64/python27.zip', '/usr/lib64/python2.7', 
'/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', 
'/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', 
'/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages']
DEBUG: build-media.py's modified sys.path: 
['/builddir/build/BUILD/ReviewBoard-3.0.14/', 
'/builddir/build/BUILD/ReviewBoard-3.0.14/reviewboard/', 
'/builddir/build/BUILD/ReviewBoard-3.0.14/contrib/internal', 
'/usr/lib64/python27.zip', '/usr/lib64/python2.7', 
'/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', 
'/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', 
'/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages']
DEBUG: True
*DEBUG: Traceback (most recent call last):
DEBUG:   File "contrib/internal/build-media.py", line 35, in 
DEBUG: ret = call_command('collectstatic', interactive=False, verbosity=2)
DEBUG:   File 
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
137, in call_command
DEBUG: app_name = get_commands()[name]
DEBUG:   File 
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
107, in get_commands
DEBUG: apps = settings.INSTALLED_APPS
DEBUG:   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 
54, in __getattr__
DEBUG: self._setup(name)
DEBUG:   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 
49, in _setup
DEBUG: self._wrapped = Settings(settings_module)
DEBUG:   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 
132, in __init__
DEBUG: % (self.SETTINGS_MODULE, e)
DEBUG: ImportError: Could not import settings 'reviewboard.settings' (Is it on 
sys.path? Is there an import error in the settings file?): No module named 
staticbundles
*DEBUG: reviewboard path: /builddir/build/BUILD/ReviewBoard-3.0.14/reviewboard, 
contents: ['extensions', '__init__.py', 'ssh', 'changedescs', 'templates', 
'attachments', 'manage.py', 'dependencies.py', 'dependencies.pyc', 
'rb_platform.py', 'htdocs', 'testing', 'features', 'registries', 'avatars', 
'site', 'staticbundles.py', 'nose.cfg', 'static', 'cmdline', 'search', 
'deprecation.py', 'scmtools', 'notifications', 'settings.py', 'admin', 
'datagrids', 'diffviewer', 'urls.py', 'test.py', 'hostingsvcs', 'reviews', 
'signals.py', 'perforce_mock.py', 'accounts', '__init__.pyc', 'oauth', 
'tests.py', 'locale', 'integrations', 'webapi']*



It's failing at this line: 
ret = call_command('collectstatic', interactive=False, verbosity=2)
, which is a django command. Since sys.path was modified to include these paths 
(see bold lines at top) before call_command was called, I'm curious as to why 
it's still seeing the import error?


I'm currently stuck on this for a while, would be happy to get some tips.


Thanks!

Tony

-- 
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 
"Review Board Community" 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.


Can't change bug status

2017-09-01 Thread Tony F
On the line that reads

Status:NEW (edit)

if I click on "edit", nothing seems to happen.

However, the console in chrome developer tools shows this message whenever 
I click on edit.

Uncaught TypeError: Cannot read property 'focus' of null
at eval (VM557 show_bug.cgi?id=7883:256)

Why would it do this? I ReviewBoard version 2.5.15 installed.

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


Latest stable version

2017-07-31 Thread Tony F
How can I find out what the latest stable version of ReviewBoard is? It 
isn't clear from the website.

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


fatal: git cat-file: could not get object info when post review request

2016-10-31 Thread Tony Wu


Our team just start to use Review Board to do code review. But today we 
have a problem and I don't know why. I posted a review request:

tony$ rbt post genernal_user_classification..develop
ERROR: Error validating diff

fatal: git cat-file: could not get object info
 (HTTP 400, API Error 224)

And Then I try to generate diff file manually.

tony$ git diff --unified --full-index genernal_user_classification..develop > 
~/Desktop/diff

I got the same error when I upload this diff file to Review Board Application

<https://lh3.googleusercontent.com/-21DqAwT-jWQ/WBcQq7s06fI/AI8/9HyDowFW-FsBSVIPz4JW8KqNeh4dGE1ggCLcB/s1600/Screen%2BShot%2B2016-10-31%2Bat%2B17.14.00.png>


Is there anyone know how to fix this?

Thanks a lot.

Tony

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


While doing diff/patch upload getting invalid utf-8 character error.

2015-12-01 Thread Tony Jose
While doing diff/patch upload getting invalid utf-8 character error.
I am using Review Board 2.5.1.1, Apache2, MySQL, python 2.7, SVN server 
1.8.5 in Ubuntu 12.04

please share the compatible latest version of Review Board and SVN server.

-- 
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: can not set up a git repository with reviewboard

2015-09-08 Thread Tony Dubu Yang
I'm receiving this error, too, running on an Azure VM with version 2.0.19 
of ReviewBoard installed. I've set the logging level for ReviewBoard to 
DEBUG, but all I'm getting is cache misses and 'Using 
reviewboard.scmtools.svn.pysvn backend for SVN' in the logs. Tried looking 
in the /opt/bitnami/apache2/... logs, as well, but nothing of interest 
shows up after running into the error.

Any advice on where to dig to track down the error/stack trace?

Just a note, looks like the Azure VMs don't allow ICMP as running a ping 
against github.com doesn't return a result.

On Friday, December 19, 2014 at 1:38:23 AM UTC-8, anoop kc wrote:
>
> Hi,
>
> Whenever I try to add my git repository to  reviewboard, it fails with the 
> following error.
>
> Unknown error when linking the account: 'URLError' object has no attribute 
> 'read'
>
> where am I doing wrong?
>
>
>
>
>

-- 
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: can not set up a git repository with reviewboard

2015-09-08 Thread Tony Yang
Getting the same error as anoop is getting above: Unknown error when
linking the account: 'URLError' object has no attribute 'read'

This happens when I attempt to add a public GitHub repository
(non-enterprise) to my reviewboard and click save.

I'm trying to determine whether this is an error with sending or receiving
and if I (likely) need to adjust the Azure VMs settings to allow...
something in or out. So I'm expecting to see something along the lines of
"error attempting to send data" with a stack trace or "timed out waiting
for response" or something along those lines in the logs.

On Tue, Sep 8, 2015 at 1:07 PM, Christian Hammond <chip...@chipx86.com>
wrote:

> The CSRF verification failure is likely due to trying to re-post a form
> after reloading the web server. It's a protection mechanism that requires
> that you first load/navigate to the page, then post, all with the web
> server running, without restarting. It's used to prevent sites from
> tricking you into submitting a form on Review Board from their site without
> you knowing.
>
> Tony, can you show me exactly what error you're hitting and the steps
> you're going through?
>
> It does look like logging is enabled. What information in the logs are you
> expecting to find?
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Mon, Sep 7, 2015 at 11:36 PM, Tony Dubu Yang <xaes...@gmail.com> wrote:
>
>> I'm receiving this error, too, running on an Azure VM with version 2.0.19
>> of ReviewBoard installed. I've set the logging level for ReviewBoard to
>> DEBUG, but all I'm getting is cache misses and 'Using
>> reviewboard.scmtools.svn.pysvn backend for SVN' in the logs. Tried
>> looking in the /opt/bitnami/apache2/... logs, as well, but nothing of
>> interest shows up after running into the error.
>>
>> Any advice on where to dig to track down the error/stack trace?
>>
>> Just a note, looks like the Azure VMs don't allow ICMP as running a ping
>> against github.com doesn't return a result.
>>
>> On Friday, December 19, 2014 at 1:38:23 AM UTC-8, anoop kc wrote:
>>>
>>> Hi,
>>>
>>> Whenever I try to add my git repository to  reviewboard, it fails with
>>> the following error.
>>>
>>> Unknown error when linking the account: 'URLError' object has no
>>> attribute 'read'
>>>
>>> where am I doing wrong?
>>>
>>>
>>>
>>>
>>> --
>> 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.
>

-- 
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: RBTools Windows installation

2011-07-05 Thread Tony Abou-Assaleh
On Tue, Jul 5, 2011 at 9:57 PM, ptrchen ptrc...@gmail.com wrote:

 Hello?

 On Jun 21, 12:28 pm, ptrchen ptrc...@gmail.com wrote:
  Hi,
 
  So I used easy_install for installing RBTools (ran easy_install -U
  RBTools)
 
  It installed C:\Python25\Scripts\post-review.exe
  \post-
  review.exe.manifest
  \post-review-script.py
 
  and C:\Python25\Lib\site-packages\RBTools-0.3.2-py2.5.egg
  Was the RBTools egg file supposed to install as a directory?


You can force extraction of the .egg file by passing the -Z flag to
easy_install; i.e.,

easy_install -U -Z RBTools

You may have to delete the currently installed version first.

Cheers,
TAA

-- 
Tony Abou-Assaleh, PhD
http://tony.abou-assaleh.net | http://twitter.com/tony_aa |
http://www.linkedin.com/in/tabouasssaleh


  Thanks!
 
  Peter

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


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

Installing in a subdirectory alongside TRAC

2011-06-29 Thread Tony A.A.
Hi,

I'm new to ReviewBoard and my so far not going too good ..

I have TRAC and ReviewBoard installed on the same domain. I've been
using TRAC for a while and added a fresh install of ReviewBoard. I
installed it at mydomain.com/reviews/. When I go there, I see the
ReviewBoard logo, a few links, and a message saying The page you were
looking for does not exist. There is also a login link that takes me
mydomain.com/reviews/account/login/, which 404s with browser's default
page. The error log says:

Target WSGI script not found or unable to stat: /var/reviewboard/
mydomain/htdocs/reviewboard.wsgiaccount, referer: https://mydomain.com/reviews/

Note that both TRAC and ReviewBoard are on SSL-only, and merged their
configs into a single VirtualHost section.

What did I do wrong? How can I fix it?

Cheers,
TAA

-- 
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: post-review and perforce

2010-09-17 Thread Tony
I'm definitely a Python noob, but don't mind digging around in the
code.  I'm not familiar with python distributions and eggs, I assume I
can just unzip the RBTools egg and then rezip it?  I'll give it a shot
when I have a free moment tomorrow and get back to you.  Thanks again!

tony

On Sep 16, 10:43 pm, Christian Hammond chip...@chipx86.com wrote:
 Interesting. That's definitely the problem. post-review expects the version
 information to be entirely numeric.

 I don't know what your Python comfort level is, but if you edited
 rbtools/rbtools/postreview.py and found the line that includes Server
 version: , and modified it to look like:

     m = re.search(r'^Server version: [^
 ]*/([0-9]+)\.([0-9]+)(\.PATCH)?/[0-9]+ .*$',

 It may be work.

 That's just off the top of my head. But give it a try and if it works, we
 can include it.

 Christian

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

 On Thu, Sep 16, 2010 at 7:41 PM, Tony tony.cassan...@gmail.com wrote:
  Christian,

  Thanks for the quick response.  I figured as much for the root thing.
  Realized after I sent the email that p4 wasn't on my path as root, so
  that explains it anyway...

  In terms of the p4 info the server version line is present:

  Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)

  The whole thing looks like this (with the personal details removed):

  User name: tony
  Client name: tony_mac
  Client host: mybox.local
  Client root: /folder/source
  Current directory: /folder/source
  Client address: 10.100.101.21:53141
  Server address: perforcesrv1.mydomain.com:1666
  Server root: /perforce_depot/
  Server date: 2010/09/16 19:35:27 -0700 PDT
  Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)
  Server license: MyCompany Inc 17 users (support expired 2007/05/16)

  Thanks again!

  tony

  On Sep 16, 6:40 pm, Christian Hammond chip...@chipx86.com wrote:
   Hi Tony,

   We discourage running as root, so that wouldn't be it.

   It's likely that it's failing to parse the server version info. Can you
  type
   `p4 info` and show me the Server version: line, if it exists? If it
   doesn't, that's useful to know too, and I'd like to know if there's an
   equivalent line on there.

   Christian

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

   On Thu, Sep 16, 2010 at 6:20 PM, Tony tony.cassan...@gmail.com wrote:
Hey everyone,

I'm trying to get ReviewBoard set up.  Installing the server was no
problem, however I've been having issues with post-review and
perforce.  I have two problems, the first is clearly a permission
problem, but I can't seem to find where the python files live to
change them.  I'm not super familiar with Python so excuse my
ignorance.

I'm on OS X and running an older (server 2005.2) version of perforce.

The first error is:
post-review -d
 svn info
 git rev-parse --git-dir
 hg root
 p4 info
Traceback (most recent call last):
 File /usr/local/bin/post-review, line 8, in module
   load_entry_point('RBTools==0.2', 'console_scripts', 'post-review')
()
 File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line
2809, in main
 File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line
2759, in determine_client
 File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line
1409, in get_repository_info
AttributeError: 'NoneType' object has no attribute 'group'

When running as root this changes to the following:
sudo post-review -d
 svn info
 git rev-parse --git-dir
 hg root
 p4 info
The current directory does not contain a checkout from a
supported source code repository.

The p4 command line tool is on my path and runs without issue alone.
Any and all pointers are appreciated.  Or if there's a better place
for me to ask this, please let me know.  I've tried digging through
the docs and didn't see anything that might solve the issues.  Clearly
running the tool as root isn't ideal, but isn't a dealbreaker either.
Thanks in advance!

tony

--
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...@googlegroups.com
  reviewboard%2bunsubscr...@googlegroups.comreviewboard%252bunsubscr...@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 athttp://www.reviewboard.org/users

Re: post-review and perforce

2010-09-17 Thread Tony
Hmmm, so changing the regex allows post-review to detect perforce and
begin uploading.  However, I ran into a second problem with the way
post-review is creating the repository url.  I ended up just removing
the whole try block from get_repository_info in the PerforceClient
since it was picking up the correct URL for me without doing any of
that.  Might that create other problems down the line?

After this, I'm able to upload, however, reviewboard reports that the
diff is empty.  I run with --output-diffs and it definitely isn't
empty.  I've copied the last portion of the debug output below. The
server log reports that it begins parsing the diff and its size is 838
as shown in the post-review debug log below.  Any thoughts on why this
might be?  Thanks again for all the help!


 Uploading diff, size: 838
 HTTP POSTing to 
 http://buildsrv1.domain.com/reviews/api/json/reviewrequests/9/diff/new/: {}
 Got API Error 105 (HTTP code 200): One or more fields had errors
 Error data: {u'fields': {u'path': [u'[Errno 2] No such file or 
 directory']}, u'stat': u'fail', u'err': {u'msg': u'One or more fields had 
 errors', u'code': 105}}

tony

On Sep 17, 12:49 am, Jan Koprowski jan.koprow...@gmail.com wrote:
 Better option is use tool which allow You edit files inside zip. Under
 Linux Midnight Command should do it.



 On Fri, Sep 17, 2010 at 9:20 AM, Tony tony.cassan...@gmail.com wrote:
  I'm definitely a Python noob, but don't mind digging around in the
  code.  I'm not familiar with python distributions and eggs, I assume I
  can just unzip the RBTools egg and then rezip it?  I'll give it a shot
  when I have a free moment tomorrow and get back to you.  Thanks again!

  tony

  On Sep 16, 10:43 pm, Christian Hammond chip...@chipx86.com wrote:
  Interesting. That's definitely the problem. post-review expects the version
  information to be entirely numeric.

  I don't know what your Python comfort level is, but if you edited
  rbtools/rbtools/postreview.py and found the line that includes Server
  version: , and modified it to look like:

      m = re.search(r'^Server version: [^
  ]*/([0-9]+)\.([0-9]+)(\.PATCH)?/[0-9]+ .*$',

  It may be work.

  That's just off the top of my head. But give it a try and if it works, we
  can include it.

  Christian

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

  On Thu, Sep 16, 2010 at 7:41 PM, Tony tony.cassan...@gmail.com wrote:
   Christian,

   Thanks for the quick response.  I figured as much for the root thing.
   Realized after I sent the email that p4 wasn't on my path as root, so
   that explains it anyway...

   In terms of the p4 info the server version line is present:

   Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)

   The whole thing looks like this (with the personal details removed):

   User name: tony
   Client name: tony_mac
   Client host: mybox.local
   Client root: /folder/source
   Current directory: /folder/source
   Client address: 10.100.101.21:53141
   Server address: perforcesrv1.mydomain.com:1666
   Server root: /perforce_depot/
   Server date: 2010/09/16 19:35:27 -0700 PDT
   Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)
   Server license: MyCompany Inc 17 users (support expired 2007/05/16)

   Thanks again!

   tony

   On Sep 16, 6:40 pm, Christian Hammond chip...@chipx86.com wrote:
Hi Tony,

We discourage running as root, so that wouldn't be it.

It's likely that it's failing to parse the server version info. Can you
   type
`p4 info` and show me the Server version: line, if it exists? If it
doesn't, that's useful to know too, and I'd like to know if there's an
equivalent line on there.

Christian

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

On Thu, Sep 16, 2010 at 6:20 PM, Tony tony.cassan...@gmail.com wrote:
 Hey everyone,

 I'm trying to get ReviewBoard set up.  Installing the server was no
 problem, however I've been having issues with post-review and
 perforce.  I have two problems, the first is clearly a permission
 problem, but I can't seem to find where the python files live to
 change them.  I'm not super familiar with Python so excuse my
 ignorance.

 I'm on OS X and running an older (server 2005.2) version of perforce.

 The first error is:
 post-review -d
  svn info
  git rev-parse --git-dir
  hg root
  p4 info
 Traceback (most recent call last):
  File /usr/local/bin/post-review, line 8, in module
    load_entry_point('RBTools==0.2', 'console_scripts', 'post-review')
 ()
  File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line
 2809, in main
  File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line
 2759, in determine_client
  File build/bdist.linux-x86_64/egg/rbtools/postreview.py

Re: post-review and perforce

2010-09-17 Thread Tony
Ahhh, crap, I'm an idiot.  Forgot to put p4 on the path of my apache
user.  Everything seems to be chill now.  One final question:  What is
the recommended way for distributing my local copy of the post-review
tool to the others on my team?  I checked out the code from git
(release-0.2) as well.  Is there any need to fork and upload back?
Seems like you already added the regex change to master.  Thanks again
for all the help guys!

tony

On Sep 17, 12:19 pm, Tony tony.cassan...@gmail.com wrote:
 Hmmm, so changing the regex allows post-review to detect perforce and
 begin uploading.  However, I ran into a second problem with the way
 post-review is creating the repository url.  I ended up just removing
 the whole try block from get_repository_info in the PerforceClient
 since it was picking up the correct URL for me without doing any of
 that.  Might that create other problems down the line?

 After this, I'm able to upload, however, reviewboard reports that the
 diff is empty.  I run with --output-diffs and it definitely isn't
 empty.  I've copied the last portion of the debug output below. The
 server log reports that it begins parsing the diff and its size is 838
 as shown in the post-review debug log below.  Any thoughts on why this
 might be?  Thanks again for all the help!

  Uploading diff, size: 838
  HTTP POSTing 
  tohttp://buildsrv1.domain.com/reviews/api/json/reviewrequests/9/diff/new/:{}
  Got API Error 105 (HTTP code 200): One or more fields had errors
  Error data: {u'fields': {u'path': [u'[Errno 2] No such file or 
  directory']}, u'stat': u'fail', u'err': {u'msg': u'One or more fields had 
  errors', u'code': 105}}

 tony

 On Sep 17, 12:49 am, Jan Koprowski jan.koprow...@gmail.com wrote:

  Better option is use tool which allow You edit files inside zip. Under
  Linux Midnight Command should do it.

  On Fri, Sep 17, 2010 at 9:20 AM, Tony tony.cassan...@gmail.com wrote:
   I'm definitely a Python noob, but don't mind digging around in the
   code.  I'm not familiar with python distributions and eggs, I assume I
   can just unzip the RBTools egg and then rezip it?  I'll give it a shot
   when I have a free moment tomorrow and get back to you.  Thanks again!

   tony

   On Sep 16, 10:43 pm, Christian Hammond chip...@chipx86.com wrote:
   Interesting. That's definitely the problem. post-review expects the 
   version
   information to be entirely numeric.

   I don't know what your Python comfort level is, but if you edited
   rbtools/rbtools/postreview.py and found the line that includes Server
   version: , and modified it to look like:

       m = re.search(r'^Server version: [^
   ]*/([0-9]+)\.([0-9]+)(\.PATCH)?/[0-9]+ .*$',

   It may be work.

   That's just off the top of my head. But give it a try and if it works, we
   can include it.

   Christian

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

   On Thu, Sep 16, 2010 at 7:41 PM, Tony tony.cassan...@gmail.com wrote:
Christian,

Thanks for the quick response.  I figured as much for the root thing.
Realized after I sent the email that p4 wasn't on my path as root, so
that explains it anyway...

In terms of the p4 info the server version line is present:

Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)

The whole thing looks like this (with the personal details removed):

User name: tony
Client name: tony_mac
Client host: mybox.local
Client root: /folder/source
Current directory: /folder/source
Client address: 10.100.101.21:53141
Server address: perforcesrv1.mydomain.com:1666
Server root: /perforce_depot/
Server date: 2010/09/16 19:35:27 -0700 PDT
Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)
Server license: MyCompany Inc 17 users (support expired 2007/05/16)

Thanks again!

tony

On Sep 16, 6:40 pm, Christian Hammond chip...@chipx86.com wrote:
 Hi Tony,

 We discourage running as root, so that wouldn't be it.

 It's likely that it's failing to parse the server version info. Can 
 you
type
 `p4 info` and show me the Server version: line, if it exists? If it
 doesn't, that's useful to know too, and I'd like to know if there's 
 an
 equivalent line on there.

 Christian

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

 On Thu, Sep 16, 2010 at 6:20 PM, Tony tony.cassan...@gmail.com 
 wrote:
  Hey everyone,

  I'm trying to get ReviewBoard set up.  Installing the server was no
  problem, however I've been having issues with post-review and
  perforce.  I have two problems, the first is clearly a permission
  problem, but I can't seem to find where the python files live to
  change them.  I'm not super familiar with Python so excuse my
  ignorance.

  I'm on OS X

post-review and perforce

2010-09-16 Thread Tony
Hey everyone,

I'm trying to get ReviewBoard set up.  Installing the server was no
problem, however I've been having issues with post-review and
perforce.  I have two problems, the first is clearly a permission
problem, but I can't seem to find where the python files live to
change them.  I'm not super familiar with Python so excuse my
ignorance.

I'm on OS X and running an older (server 2005.2) version of perforce.

The first error is:
post-review -d
 svn info
 git rev-parse --git-dir
 hg root
 p4 info
Traceback (most recent call last):
  File /usr/local/bin/post-review, line 8, in module
load_entry_point('RBTools==0.2', 'console_scripts', 'post-review')
()
  File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line
2809, in main
  File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line
2759, in determine_client
  File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line
1409, in get_repository_info
AttributeError: 'NoneType' object has no attribute 'group'

When running as root this changes to the following:
sudo post-review -d
 svn info
 git rev-parse --git-dir
 hg root
 p4 info
The current directory does not contain a checkout from a
supported source code repository.

The p4 command line tool is on my path and runs without issue alone.
Any and all pointers are appreciated.  Or if there's a better place
for me to ask this, please let me know.  I've tried digging through
the docs and didn't see anything that might solve the issues.  Clearly
running the tool as root isn't ideal, but isn't a dealbreaker either.
Thanks in advance!

tony

-- 
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: post-review and perforce

2010-09-16 Thread Tony
Christian,

Thanks for the quick response.  I figured as much for the root thing.
Realized after I sent the email that p4 wasn't on my path as root, so
that explains it anyway...

In terms of the p4 info the server version line is present:

Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)

The whole thing looks like this (with the personal details removed):

User name: tony
Client name: tony_mac
Client host: mybox.local
Client root: /folder/source
Current directory: /folder/source
Client address: 10.100.101.21:53141
Server address: perforcesrv1.mydomain.com:1666
Server root: /perforce_depot/
Server date: 2010/09/16 19:35:27 -0700 PDT
Server version: P4D/LINUX26AMD64/2005.2.PATCH/100601 (2006/05/26)
Server license: MyCompany Inc 17 users (support expired 2007/05/16)

Thanks again!

tony

On Sep 16, 6:40 pm, Christian Hammond chip...@chipx86.com wrote:
 Hi Tony,

 We discourage running as root, so that wouldn't be it.

 It's likely that it's failing to parse the server version info. Can you type
 `p4 info` and show me the Server version: line, if it exists? If it
 doesn't, that's useful to know too, and I'd like to know if there's an
 equivalent line on there.

 Christian

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

 On Thu, Sep 16, 2010 at 6:20 PM, Tony tony.cassan...@gmail.com wrote:
  Hey everyone,

  I'm trying to get ReviewBoard set up.  Installing the server was no
  problem, however I've been having issues with post-review and
  perforce.  I have two problems, the first is clearly a permission
  problem, but I can't seem to find where the python files live to
  change them.  I'm not super familiar with Python so excuse my
  ignorance.

  I'm on OS X and running an older (server 2005.2) version of perforce.

  The first error is:
  post-review -d
   svn info
   git rev-parse --git-dir
   hg root
   p4 info
  Traceback (most recent call last):
   File /usr/local/bin/post-review, line 8, in module
     load_entry_point('RBTools==0.2', 'console_scripts', 'post-review')
  ()
   File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line
  2809, in main
   File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line
  2759, in determine_client
   File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line
  1409, in get_repository_info
  AttributeError: 'NoneType' object has no attribute 'group'

  When running as root this changes to the following:
  sudo post-review -d
   svn info
   git rev-parse --git-dir
   hg root
   p4 info
  The current directory does not contain a checkout from a
  supported source code repository.

  The p4 command line tool is on my path and runs without issue alone.
  Any and all pointers are appreciated.  Or if there's a better place
  for me to ask this, please let me know.  I've tried digging through
  the docs and didn't see anything that might solve the issues.  Clearly
  running the tool as root isn't ideal, but isn't a dealbreaker either.
  Thanks in advance!

  tony

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


Re: Setting up developer environment

2010-03-05 Thread Tony Bibbs
Easy enough, it did get Django Evolution installed even though it did error
out with the following:

No local packages or download links found for paramiko==1.7.4
error: Could not find suitable distribution for
Requirement.parse('paramiko==1.7.4')

Seems as if Ubuntu already had this installed for me so I ran

python ./contrib/internal/prepare-dev.py

...again and this time it seemed to work ok. Do I need to worry about having
a mix of Ubuntu packages and explicitly installed Python packing moving
forward?  Just trying to avoid any possible future headaches.

Also, should the docs here be updated to include the python
./contrib/internal/prepare-dev.py step?

On Thu, Mar 4, 2010 at 5:07 PM, Christian Hammond chip...@chipx86.comwrote:

 Easy_install will be your best option.

 Actually, what you probably should do is (assuming this is a developer
 machine) run:

   sudo python setup.py develop

 This will automatically grab all the dependencies from the right locations
 and install them.

 You'll also want to then run this for your Djblets tree if you have one
 installed, otherwise changes to that tree won't show up (as we'll use the
 fetched package instead).


 Christian


-- 
Tony Bibbs
Phone: (515) 554-8046
Twitter, Skype, Facebook: tonybibbs
Web: http://www.tonybibbs.com

-- 
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: Setting up developer environment

2010-03-04 Thread Tony Bibbs
Seems like I have a few options:

1) Install via easy_install
2) Install via SVN
3) Install via Ubuntu's package manager

Any suggestion on the best solution? I have it pulled down via SVN but I'm
assuming I need to somehow tell ReviewBoard where it is because I get the
same error

On Mon, Feb 22, 2010 at 7:26 AM, Raja rajas...@gmail.com wrote:

 It looks like you need to get django_evolution from

 easy_install django_evolution

 or code.google.com/p/django-evolution/

 I just created a post with missing packages in the dependency list,
 but missed this one (as I had installed reviewboard earlier using
 easy_install).

 -- Raja

 On Feb 18, 12:10 am, Tony Bibbs t...@tonybibbs.com wrote:
  When I run this:
 
  python ./contrib/internal/prepare-dev.py
 
  I get that:
 
  Synchronizing database...
  Error: No module named django_evolution
 
  Did I miss a step or something?


-- 
Tony Bibbs
Phone: (515) 554-8046
Twitter, Skype, Facebook: tonybibbs
Web: http://www.tonybibbs.com

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

Setting up developer environment

2010-02-17 Thread Tony Bibbs
When I run this:

python ./contrib/internal/prepare-dev.py

I get that:

Synchronizing database...
Error: No module named django_evolution

Did I miss a step or something?

-- 
Tony Bibbs
Phone: (515) 554-8046
Twitter, Skype, Facebook: tonybibbs
Web: http://www.tonybibbs.com

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

Turn up logging

2009-12-24 Thread Tony Bibbs
I'm trying to get AD support working and the log level, per the logging line
says:

Logging to /path/to/reviewboard.log with a minimum level of DEBUG

How do I turn that up?  All the log file is giving me now is a bunch of
errors like:

WARNING - Active Directory: Failed login for user jane@example.com

-- 
Tony Bibbs
Phone: (515) 554-8046
Twitter, Skype, Facebook: tonybibbs
Web: http://www.tonybibbs.com
http://www.apteno.net

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

Active Directory

2009-08-05 Thread Tony Bibbs

When I select this in the settings tab it won't let me edit any of the
AD settings.  Am I missing something?

--Tony

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
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
-~--~~~~--~~--~--~---



CVS cvs [checkout aborted]: Absolute module reference invalid

2009-08-05 Thread Tony Bibbs

Back some time ago I submitted a patch that I was sure that fixed this
problem.  Today I finally got around to upgrading to the latest
version and apparently that patch wasn't accepted or somehow got
reintroduced.  Can anybody take a look?  It's the only patch I would
have submitted.

--Tony

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
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
-~--~~~~--~~--~--~---