rbt and perforce 2005.1.PATCH configuration issues

404 views
Skip to first unread message

Dan Schmitt

unread,
Apr 22, 2014, 10:46:48 PM4/22/14
to revie...@googlegroups.com
I can get the reviewboard web interface to see my p4 repository (and it finds
the change descriptions if I try to create a a new review request.)

I'm seeing:

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.6/site-packages/RBTools-0.6-py2.6.egg/rbtools/commands/main.py", line 134, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "/Library/Python/2.6/site-packages/RBTools-0.6-py2.6.egg/rbtools/commands/__init__.py", line 422, in run_from_argv
    exit_code = self.main(*args) or 0
  File "/Library/Python/2.6/site-packages/RBTools-0.6-py2.6.egg/rbtools/commands/list_repo_types.py", line 12, in main
    print_clients(self.options)
  File "/Library/Python/2.6/site-packages/RBTools-0.6-py2.6.egg/rbtools/clients/__init__.py", line 356, in print_clients
    repository_info = tool.get_repository_info()
  File "/Library/Python/2.6/site-packages/RBTools-0.6-py2.6.egg/rbtools/clients/perforce.py", line 183, in get_repository_info
    p4_info = self.p4.info()
  File "/Library/Python/2.6/site-packages/RBTools-0.6-py2.6.egg/rbtools/clients/perforce.py", line 73, in info
    split_lines=True)
  File "/Library/Python/2.6/site-packages/RBTools-0.6-py2.6.egg/rbtools/clients/perforce.py", line 101, in run_p4
    if self.options.p4_client:
AttributeError: 'Namespace' object has no attribute 'p4_client'

from rbt list-repo-types.

I don't have permission to make counters (which seems to be a suggested work around for getting rbt post to work.)

rbt diff -d <change number that worked in the web interface>
rbt post -d <change number that worked in the web interface>

says:

ERROR: The current directory does not contain a checkout from a supported source code repository.

I know the old p4 server means I don't have the shelve option.  We are currently pushing changes
to a development branch then merging that into a release branch.   Is there some trick I'm missing
for getting the rbt to build a diff for an already submitted p4 change?

      Dan S.


David Trowbridge

unread,
Apr 23, 2014, 5:58:37 PM4/23/14
to reviewboard
Right now, rbtools is not well suited to posting review requests for submitted changes without a working directory. This should work fine if you create a p4 client and run rbt from within that directory.

We should improve that, however. Can you file a bug about this?

-David


--
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.
For more options, visit https://groups.google.com/d/optout.

Dan Schmitt

unread,
Apr 23, 2014, 6:16:51 PM4/23/14
to revie...@googlegroups.com
I must be missing something then. I have a local copy of the
perforce tree that has all the files in the change list I want to
create, and rbt isn't finding it.

$ rbt setup-repo
Enter the Review Board server URL: http://172.16.149.128/reviewboard/r/
CRITICAL: 'Namespace' object has no attribute 'p4_client'

which looks like the same p4_client attribute error I get when
doing rbt list-repo-types

It may be something goofy on OSX with my python (it's a 2.6.1
and seems to have P4 and P4API installed) and installed with
easy_install as per

http://www.reviewboard.org/docs/rbtools/dev/#installation

Any help diagnosing/resolving/bypassing this would be outstanding.
(a sample .reveiwboardrc that works with p4 might help if somebody
has one laying about.)

I'll put the ticket request but can get by posting review requests from
a directory with the p4 client files in it as well.

         Dan S.

David Trowbridge

unread,
Apr 23, 2014, 6:28:19 PM4/23/14
to reviewboard
I think the issues with setup-repo and list-repo-types are just a simple bug with our command-line handling.

-David

Dan Schmitt

unread,
Apr 23, 2014, 9:49:15 PM4/23/14
to revie...@googlegroups.com
In addition to that, the version string:

P4D/LINUX26AMD64/2005.1.PATCH/99707 (2006/05/16)

is failing in the perforce.py match (the .PATCH is throwing it off.)

        m = re.search(r'[^ ]*/([0-9]+)\.([0-9]+)/[0-9]+ .*$',
                      server_version, re.M)
        if m:
            self.p4d_version = int(m.group(1)), int(m.group(2))
        else:
            # Gracefully bail if we don't get a match
            return None

I'm slowly making progress (commented out the attempts to
use self.p4_client self.p4_port self.p4_passwd as options
to the p4 command (and just counting on having a logged
in instance.)

Matt Yanchek

unread,
May 7, 2014, 2:45:11 PM5/7/14
to revie...@googlegroups.com
I am experiencing the same errors described above.  I am on OSX 10.8 with perforce client Rev. P4/DARWIN90X86_64/2013.1/610569 (2013/03/19).

Unfortunately I have no new information on this, just thought I would let you know that I too am experiencing this issue.

shankar KC

unread,
May 21, 2014, 11:12:33 AM5/21/14
to revie...@googlegroups.com
Open p4v.exe select root folder..right click and open command prompt there. This will inherit all perforce env. variables. Try there rbt post chanelistno
It works for ne
Reply all
Reply to author
Forward
0 new messages