Re: Path 6303924 does not match a valid Perforce path.

2023-02-13 Thread Christian Hammond
Would you be able to try upgrading RBTools? 0.7.5 is almost 8 years old
now, and virtually all relevant code has been rewritten a couple of times
since. The latest version is 4.0.

I'm hoping the new code will do what you need it to do, and if it doesn't,
we'll be in a better position to diagnose and fix it.

Christian

On Mon, Feb 13, 2023 at 7:22 AM Rajan M  wrote:

> One more note is:
> I use *two development machines where both are configured with P4V* and
> same workspace I use in both machines.
>
> Thanks
> Rajan
> On Monday, February 13, 2023 at 8:47:46 PM UTC+5:30 Rajan M wrote:
>
>> Hi Chris,
>> Here is the log I got through debug command
>>
>> E:\AV_MAIN_BRANCH_SQL\AV\main>rbt post --debug 906043
>> >>> RBTools 0.7.5 alpha 0 (dev)
>> >>> Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit
>> (Intel)]
>> >>> Running on Windows-2012Server-6.2.9200
>> >>> Home = C:\Users\Administrator\AppData\Roaming
>> >>> Current directory = E:\AV_MAIN_BRANCH_SQL\AV\main
>> >>> Checking for a Subversion repository...
>> >>> Unable to execute "svn help": skipping SVN
>> >>> Checking for a Git repository...
>> >>> Unable to execute "git --help" or "git.cmd --help": skipping Git
>> >>> Checking for a Mercurial repository...
>> >>> Unable to execute "hg --help": skipping Mercurial
>> >>> Checking for a CVS repository...
>> >>> Unable to execute "cvs": skipping CVS
>> >>> Checking for a Perforce repository...
>> >>> Running: p4 info
>> >>> Running: diff --version
>> >>> repository info: Path: .com:1666, Base path: Non
>> e, Supports changesets: True
>> >>> Making HTTP GET request to http://reviews.avamar.com/api/
>> >>> Making HTTP GET request to http://reviews.avamar.com/api/info/
>> >>> Running: p4 info
>> Path '906043' does not match a valid Perforce path.
>>
>> On Friday, February 10, 2023 at 4:19:13 AM UTC+5:30 Christian Hammond
>> wrote:
>>
>>> Hi Rajan,
>>>
>>> I can take a look, though I'll need to see some more details. Can you
>>> run as `rbt post --debug ` and show the results of that?
>>>
>>> Also, are you an administrator on the server? It might be important to
>>> get some logs.
>>>
>>> Thanks,
>>>
>>> Christian
>>>
>>> On Thu, Feb 9, 2023 at 7:27 AM Rajan M  wrote:
>>>
 Anyone have better answer for this question. I have python 3.6 in my
 setup as default still I get same error

 On Thursday, May 16, 2019 at 2:02:21 AM UTC+5:30 Harsh Verma wrote:

> For anyone who might find this thread for the issue.
>
> I resolved it by modifying the /usr/bin/rbt script to use python 2.7
> instead of python 3.6 since I have both installed and rbt script was using
> python 3.6.
>
> Patch:
>
> 1c1
> < #!/usr/bin/python3.6
> ---
> > #!/usr/bin/python
>
>
> On Wednesday, May 15, 2019 at 9:28:03 AM UTC-7, Harsh Verma wrote:
>>
>> I already have it in my ~/.reviewboardrc file
>>
>> On Tuesday, May 14, 2019 at 2:50:48 PM UTC-7, Steve McCarthy wrote:
>>>
>>> In  ~/.reviewboardrc add:
>>>
>>> REPOSITORY_TYPE = "perforce"
>>>
>>> Got me past this error.
>>>
>>> -Steve
>>>
>>>
>>>
>>> On Tuesday, May 14, 2019 at 2:46:46 PM UTC-7, Harsh Verma wrote:

 Hi Darshan,

 I am running into the exact same issue and cannot post reviews
 using rbt. Did you find a resolution to this issue?

 Thanks,
 Harsh

 On Wednesday, July 11, 2018 at 8:42:43 AM UTC-7, Darshan MAnge
 wrote:
>
> Hi All,
>
> I am facing the below issue while running below command
>
> input :
>
> rbt post -d 6389924
>
>
> output:
>
> the issue it pops is : rbtools.clients.errors.SCMError: Path
> 6303924 does not match a valid Perforce path.
>
>
> My Findings:
>
> 1. It is not able to return state of the changelist and thereby
> making whole revisions variable NONE
>
>
> File perforce.py
>
> def _get_changelist_status(self, changelist):
>
> ...
>
>
> if changelist == self.REVISION_DEFAULT_CLN:
>
> return 'pending'
>
> else:
>
> change = self.p4.change(changelist)
>
> if len(change) == 1 and 'Status' in change[0]:
>
> return change[0]['Status']
>
>
> return None
>
>
> 2. return change[0]['Status'] in this line it is not able to find
> Status key inside the change object
>
>
> output of line : change = self.p4.change(changelist) is
>
>
> {b'code': b'stat', b'Change': b'6303924', b'Date': b'2018/07/09
> 17:22:22', b'Client': 

Re: Path 6303924 does not match a valid Perforce path.

2023-02-13 Thread Rajan M
One more note is: 
I use *two development machines where both are configured with P4V* and 
same workspace I use in both machines. 

Thanks
Rajan
On Monday, February 13, 2023 at 8:47:46 PM UTC+5:30 Rajan M wrote:

> Hi Chris,
> Here is the log I got through debug command
>
> E:\AV_MAIN_BRANCH_SQL\AV\main>rbt post --debug 906043
> >>> RBTools 0.7.5 alpha 0 (dev)
> >>> Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit 
> (Intel)]
> >>> Running on Windows-2012Server-6.2.9200
> >>> Home = C:\Users\Administrator\AppData\Roaming
> >>> Current directory = E:\AV_MAIN_BRANCH_SQL\AV\main
> >>> Checking for a Subversion repository...
> >>> Unable to execute "svn help": skipping SVN
> >>> Checking for a Git repository...
> >>> Unable to execute "git --help" or "git.cmd --help": skipping Git
> >>> Checking for a Mercurial repository...
> >>> Unable to execute "hg --help": skipping Mercurial
> >>> Checking for a CVS repository...
> >>> Unable to execute "cvs": skipping CVS
> >>> Checking for a Perforce repository...
> >>> Running: p4 info
> >>> Running: diff --version
> >>> repository info: Path: .com:1666, Base path: Non
> e, Supports changesets: True
> >>> Making HTTP GET request to http://reviews.avamar.com/api/
> >>> Making HTTP GET request to http://reviews.avamar.com/api/info/
> >>> Running: p4 info
> Path '906043' does not match a valid Perforce path.
>
> On Friday, February 10, 2023 at 4:19:13 AM UTC+5:30 Christian Hammond 
> wrote:
>
>> Hi Rajan,
>>
>> I can take a look, though I'll need to see some more details. Can you run 
>> as `rbt post --debug ` and show the results of that?
>>
>> Also, are you an administrator on the server? It might be important to 
>> get some logs.
>>
>> Thanks,
>>
>> Christian
>>
>> On Thu, Feb 9, 2023 at 7:27 AM Rajan M  wrote:
>>
>>> Anyone have better answer for this question. I have python 3.6 in my 
>>> setup as default still I get same error
>>>
>>> On Thursday, May 16, 2019 at 2:02:21 AM UTC+5:30 Harsh Verma wrote:
>>>
 For anyone who might find this thread for the issue.

 I resolved it by modifying the /usr/bin/rbt script to use python 2.7 
 instead of python 3.6 since I have both installed and rbt script was using 
 python 3.6.

 Patch:

 1c1
 < #!/usr/bin/python3.6
 ---
 > #!/usr/bin/python


 On Wednesday, May 15, 2019 at 9:28:03 AM UTC-7, Harsh Verma wrote:
>
> I already have it in my ~/.reviewboardrc file
>
> On Tuesday, May 14, 2019 at 2:50:48 PM UTC-7, Steve McCarthy wrote:
>>
>> In  ~/.reviewboardrc add:
>>
>> REPOSITORY_TYPE = "perforce"
>>
>> Got me past this error.
>>
>> -Steve
>>
>>
>>
>> On Tuesday, May 14, 2019 at 2:46:46 PM UTC-7, Harsh Verma wrote:
>>>
>>> Hi Darshan,
>>>
>>> I am running into the exact same issue and cannot post reviews using 
>>> rbt. Did you find a resolution to this issue?
>>>
>>> Thanks,
>>> Harsh
>>>
>>> On Wednesday, July 11, 2018 at 8:42:43 AM UTC-7, Darshan MAnge wrote:

 Hi All,

 I am facing the below issue while running below command

 input :

 rbt post -d 6389924


 output:

 the issue it pops is : rbtools.clients.errors.SCMError: Path 
 6303924 does not match a valid Perforce path.


 My Findings:

 1. It is not able to return state of the changelist and thereby 
 making whole revisions variable NONE


 File perforce.py

 def _get_changelist_status(self, changelist):

 ...


 if changelist == self.REVISION_DEFAULT_CLN:

 return 'pending'

 else:

 change = self.p4.change(changelist)

 if len(change) == 1 and 'Status' in change[0]:

 return change[0]['Status']


 return None


 2. return change[0]['Status'] in this line it is not able to find 
 Status key inside the change object


 output of line : change = self.p4.change(changelist) is 


 {b'code': b'stat', b'Change': b'6303924', b'Date': b'2018/07/09 
 17:22:22', b'Client': b'dmange-cmd-vapi', ..., }


 3. I guess while decoding it using marshal in below line, it is 
 somehow not able to convert it to dictionary. 


 line 283 : data = marshal.load(p.stdout)


 Please let me know if anyone can help me resolving this issue, i 
 changed marshal to json and pickle, an another form of decoder, but 
 still i 
 was not able to solve the issue. 


 Thanks and Regards,

Re: Path 6303924 does not match a valid Perforce path.

2023-02-13 Thread Rajan M
Hi Chris,
Here is the log I got through debug command

E:\AV_MAIN_BRANCH_SQL\AV\main>rbt post --debug 906043
>>> RBTools 0.7.5 alpha 0 (dev)
>>> Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit 
(Intel)]
>>> Running on Windows-2012Server-6.2.9200
>>> Home = C:\Users\Administrator\AppData\Roaming
>>> Current directory = E:\AV_MAIN_BRANCH_SQL\AV\main
>>> Checking for a Subversion repository...
>>> Unable to execute "svn help": skipping SVN
>>> Checking for a Git repository...
>>> Unable to execute "git --help" or "git.cmd --help": skipping Git
>>> Checking for a Mercurial repository...
>>> Unable to execute "hg --help": skipping Mercurial
>>> Checking for a CVS repository...
>>> Unable to execute "cvs": skipping CVS
>>> Checking for a Perforce repository...
>>> Running: p4 info
>>> Running: diff --version
>>> repository info: Path: .com:1666, Base path: Non
e, Supports changesets: True
>>> Making HTTP GET request to http://reviews.avamar.com/api/
>>> Making HTTP GET request to http://reviews.avamar.com/api/info/
>>> Running: p4 info
Path '906043' does not match a valid Perforce path.

On Friday, February 10, 2023 at 4:19:13 AM UTC+5:30 Christian Hammond wrote:

> Hi Rajan,
>
> I can take a look, though I'll need to see some more details. Can you run 
> as `rbt post --debug ` and show the results of that?
>
> Also, are you an administrator on the server? It might be important to get 
> some logs.
>
> Thanks,
>
> Christian
>
> On Thu, Feb 9, 2023 at 7:27 AM Rajan M  wrote:
>
>> Anyone have better answer for this question. I have python 3.6 in my 
>> setup as default still I get same error
>>
>> On Thursday, May 16, 2019 at 2:02:21 AM UTC+5:30 Harsh Verma wrote:
>>
>>> For anyone who might find this thread for the issue.
>>>
>>> I resolved it by modifying the /usr/bin/rbt script to use python 2.7 
>>> instead of python 3.6 since I have both installed and rbt script was using 
>>> python 3.6.
>>>
>>> Patch:
>>>
>>> 1c1
>>> < #!/usr/bin/python3.6
>>> ---
>>> > #!/usr/bin/python
>>>
>>>
>>> On Wednesday, May 15, 2019 at 9:28:03 AM UTC-7, Harsh Verma wrote:

 I already have it in my ~/.reviewboardrc file

 On Tuesday, May 14, 2019 at 2:50:48 PM UTC-7, Steve McCarthy wrote:
>
> In  ~/.reviewboardrc add:
>
> REPOSITORY_TYPE = "perforce"
>
> Got me past this error.
>
> -Steve
>
>
>
> On Tuesday, May 14, 2019 at 2:46:46 PM UTC-7, Harsh Verma wrote:
>>
>> Hi Darshan,
>>
>> I am running into the exact same issue and cannot post reviews using 
>> rbt. Did you find a resolution to this issue?
>>
>> Thanks,
>> Harsh
>>
>> On Wednesday, July 11, 2018 at 8:42:43 AM UTC-7, Darshan MAnge wrote:
>>>
>>> Hi All,
>>>
>>> I am facing the below issue while running below command
>>>
>>> input :
>>>
>>> rbt post -d 6389924
>>>
>>>
>>> output:
>>>
>>> the issue it pops is : rbtools.clients.errors.SCMError: Path 
>>> 6303924 does not match a valid Perforce path.
>>>
>>>
>>> My Findings:
>>>
>>> 1. It is not able to return state of the changelist and thereby 
>>> making whole revisions variable NONE
>>>
>>>
>>> File perforce.py
>>>
>>> def _get_changelist_status(self, changelist):
>>>
>>> ...
>>>
>>>
>>> if changelist == self.REVISION_DEFAULT_CLN:
>>>
>>> return 'pending'
>>>
>>> else:
>>>
>>> change = self.p4.change(changelist)
>>>
>>> if len(change) == 1 and 'Status' in change[0]:
>>>
>>> return change[0]['Status']
>>>
>>>
>>> return None
>>>
>>>
>>> 2. return change[0]['Status'] in this line it is not able to find 
>>> Status key inside the change object
>>>
>>>
>>> output of line : change = self.p4.change(changelist) is 
>>>
>>>
>>> {b'code': b'stat', b'Change': b'6303924', b'Date': b'2018/07/09 
>>> 17:22:22', b'Client': b'dmange-cmd-vapi', ..., }
>>>
>>>
>>> 3. I guess while decoding it using marshal in below line, it is 
>>> somehow not able to convert it to dictionary. 
>>>
>>>
>>> line 283 : data = marshal.load(p.stdout)
>>>
>>>
>>> Please let me know if anyone can help me resolving this issue, i 
>>> changed marshal to json and pickle, an another form of decoder, but 
>>> still i 
>>> was not able to solve the issue. 
>>>
>>>
>>> Thanks and Regards,
>>>
>>> Darshan Mange
>>>
>> -- 
>> 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 

Re: Path 6303924 does not match a valid Perforce path.

2023-02-13 Thread Rajan M
Hi Chris,
Here is the log I got from debug

>rbt post --debug 906043
>>> RBTools 0.7.5 alpha 0 (dev)
>>> Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit 
(Intel)]
>>> Running on Windows-2012Server-6.2.9200
>>> Home = C:\Users\Administrator\AppData\Roaming
>>> Current directory = E:\AV_MAIN_BRANCH_SQL\AV\main
>>> Checking for a Subversion repository...
>>> Unable to execute "svn help": skipping SVN
>>> Checking for a Git repository...
>>> Unable to execute "git --help" or "git.cmd --help": skipping Git
>>> Checking for a Mercurial repository...
>>> Unable to execute "hg --help": skipping Mercurial
>>> Checking for a CVS repository...
>>> Unable to execute "cvs": skipping CVS
>>> Checking for a Perforce repository...
>>> Running: p4 info
>>> Running: diff --version
>>> repository info: Path: re-dur-dpsw-p4-1.cec.lab.emc.com:1666, Base 
path: Non
e, Supports changesets: True
>>> Making HTTP GET request to http://reviews.avamar.com/api/
>>> Making HTTP GET request to http://reviews.avamar.com/api/info/
>>> Running: p4 info
Path '906043' does not match a valid Perforce path.

On Friday, February 10, 2023 at 4:19:13 AM UTC+5:30 Christian Hammond wrote:

> Hi Rajan,
>
> I can take a look, though I'll need to see some more details. Can you run 
> as `rbt post --debug ` and show the results of that?
>
> Also, are you an administrator on the server? It might be important to get 
> some logs.
>
> Thanks,
>
> Christian
>
> On Thu, Feb 9, 2023 at 7:27 AM Rajan M  wrote:
>
>> Anyone have better answer for this question. I have python 3.6 in my 
>> setup as default still I get same error
>>
>> On Thursday, May 16, 2019 at 2:02:21 AM UTC+5:30 Harsh Verma wrote:
>>
>>> For anyone who might find this thread for the issue.
>>>
>>> I resolved it by modifying the /usr/bin/rbt script to use python 2.7 
>>> instead of python 3.6 since I have both installed and rbt script was using 
>>> python 3.6.
>>>
>>> Patch:
>>>
>>> 1c1
>>> < #!/usr/bin/python3.6
>>> ---
>>> > #!/usr/bin/python
>>>
>>>
>>> On Wednesday, May 15, 2019 at 9:28:03 AM UTC-7, Harsh Verma wrote:

 I already have it in my ~/.reviewboardrc file

 On Tuesday, May 14, 2019 at 2:50:48 PM UTC-7, Steve McCarthy wrote:
>
> In  ~/.reviewboardrc add:
>
> REPOSITORY_TYPE = "perforce"
>
> Got me past this error.
>
> -Steve
>
>
>
> On Tuesday, May 14, 2019 at 2:46:46 PM UTC-7, Harsh Verma wrote:
>>
>> Hi Darshan,
>>
>> I am running into the exact same issue and cannot post reviews using 
>> rbt. Did you find a resolution to this issue?
>>
>> Thanks,
>> Harsh
>>
>> On Wednesday, July 11, 2018 at 8:42:43 AM UTC-7, Darshan MAnge wrote:
>>>
>>> Hi All,
>>>
>>> I am facing the below issue while running below command
>>>
>>> input :
>>>
>>> rbt post -d 6389924
>>>
>>>
>>> output:
>>>
>>> the issue it pops is : rbtools.clients.errors.SCMError: Path 
>>> 6303924 does not match a valid Perforce path.
>>>
>>>
>>> My Findings:
>>>
>>> 1. It is not able to return state of the changelist and thereby 
>>> making whole revisions variable NONE
>>>
>>>
>>> File perforce.py
>>>
>>> def _get_changelist_status(self, changelist):
>>>
>>> ...
>>>
>>>
>>> if changelist == self.REVISION_DEFAULT_CLN:
>>>
>>> return 'pending'
>>>
>>> else:
>>>
>>> change = self.p4.change(changelist)
>>>
>>> if len(change) == 1 and 'Status' in change[0]:
>>>
>>> return change[0]['Status']
>>>
>>>
>>> return None
>>>
>>>
>>> 2. return change[0]['Status'] in this line it is not able to find 
>>> Status key inside the change object
>>>
>>>
>>> output of line : change = self.p4.change(changelist) is 
>>>
>>>
>>> {b'code': b'stat', b'Change': b'6303924', b'Date': b'2018/07/09 
>>> 17:22:22', b'Client': b'dmange-cmd-vapi', ..., }
>>>
>>>
>>> 3. I guess while decoding it using marshal in below line, it is 
>>> somehow not able to convert it to dictionary. 
>>>
>>>
>>> line 283 : data = marshal.load(p.stdout)
>>>
>>>
>>> Please let me know if anyone can help me resolving this issue, i 
>>> changed marshal to json and pickle, an another form of decoder, but 
>>> still i 
>>> was not able to solve the issue. 
>>>
>>>
>>> Thanks and Regards,
>>>
>>> Darshan Mange
>>>
>> -- 
>> 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.
>> 

Re: Path 6303924 does not match a valid Perforce path.

2023-02-09 Thread Christian Hammond
Hi Rajan,

I can take a look, though I'll need to see some more details. Can you run
as `rbt post --debug ` and show the results of that?

Also, are you an administrator on the server? It might be important to get
some logs.

Thanks,

Christian

On Thu, Feb 9, 2023 at 7:27 AM Rajan M  wrote:

> Anyone have better answer for this question. I have python 3.6 in my setup
> as default still I get same error
>
> On Thursday, May 16, 2019 at 2:02:21 AM UTC+5:30 Harsh Verma wrote:
>
>> For anyone who might find this thread for the issue.
>>
>> I resolved it by modifying the /usr/bin/rbt script to use python 2.7
>> instead of python 3.6 since I have both installed and rbt script was using
>> python 3.6.
>>
>> Patch:
>>
>> 1c1
>> < #!/usr/bin/python3.6
>> ---
>> > #!/usr/bin/python
>>
>>
>> On Wednesday, May 15, 2019 at 9:28:03 AM UTC-7, Harsh Verma wrote:
>>>
>>> I already have it in my ~/.reviewboardrc file
>>>
>>> On Tuesday, May 14, 2019 at 2:50:48 PM UTC-7, Steve McCarthy wrote:

 In  ~/.reviewboardrc add:

 REPOSITORY_TYPE = "perforce"

 Got me past this error.

 -Steve



 On Tuesday, May 14, 2019 at 2:46:46 PM UTC-7, Harsh Verma wrote:
>
> Hi Darshan,
>
> I am running into the exact same issue and cannot post reviews using
> rbt. Did you find a resolution to this issue?
>
> Thanks,
> Harsh
>
> On Wednesday, July 11, 2018 at 8:42:43 AM UTC-7, Darshan MAnge wrote:
>>
>> Hi All,
>>
>> I am facing the below issue while running below command
>>
>> input :
>>
>> rbt post -d 6389924
>>
>>
>> output:
>>
>> the issue it pops is : rbtools.clients.errors.SCMError: Path 6303924
>> does not match a valid Perforce path.
>>
>>
>> My Findings:
>>
>> 1. It is not able to return state of the changelist and thereby
>> making whole revisions variable NONE
>>
>>
>> File perforce.py
>>
>> def _get_changelist_status(self, changelist):
>>
>> ...
>>
>>
>> if changelist == self.REVISION_DEFAULT_CLN:
>>
>> return 'pending'
>>
>> else:
>>
>> change = self.p4.change(changelist)
>>
>> if len(change) == 1 and 'Status' in change[0]:
>>
>> return change[0]['Status']
>>
>>
>> return None
>>
>>
>> 2. return change[0]['Status'] in this line it is not able to find
>> Status key inside the change object
>>
>>
>> output of line : change = self.p4.change(changelist) is
>>
>>
>> {b'code': b'stat', b'Change': b'6303924', b'Date': b'2018/07/09
>> 17:22:22', b'Client': b'dmange-cmd-vapi', ..., }
>>
>>
>> 3. I guess while decoding it using marshal in below line, it is
>> somehow not able to convert it to dictionary.
>>
>>
>> line 283 : data = marshal.load(p.stdout)
>>
>>
>> Please let me know if anyone can help me resolving this issue, i
>> changed marshal to json and pickle, an another form of decoder, but 
>> still i
>> was not able to solve the issue.
>>
>>
>> Thanks and Regards,
>>
>> Darshan Mange
>>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/a494ea09-6302-4f03-9dae-2ab111ba271dn%40googlegroups.com
> 
> .
>


-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAE7Vndm_fG24Q7oP2uOPfvejiNyRquU0kjpwpDEYG9mavLKhnA%40mail.gmail.com.


Re: Path 6303924 does not match a valid Perforce path.

2023-02-09 Thread Rajan M
Anyone have better answer for this question. I have python 3.6 in my setup 
as default still I get same error

On Thursday, May 16, 2019 at 2:02:21 AM UTC+5:30 Harsh Verma wrote:

> For anyone who might find this thread for the issue.
>
> I resolved it by modifying the /usr/bin/rbt script to use python 2.7 
> instead of python 3.6 since I have both installed and rbt script was using 
> python 3.6.
>
> Patch:
>
> 1c1
> < #!/usr/bin/python3.6
> ---
> > #!/usr/bin/python
>
>
> On Wednesday, May 15, 2019 at 9:28:03 AM UTC-7, Harsh Verma wrote:
>>
>> I already have it in my ~/.reviewboardrc file
>>
>> On Tuesday, May 14, 2019 at 2:50:48 PM UTC-7, Steve McCarthy wrote:
>>>
>>> In  ~/.reviewboardrc add:
>>>
>>> REPOSITORY_TYPE = "perforce"
>>>
>>> Got me past this error.
>>>
>>> -Steve
>>>
>>>
>>>
>>> On Tuesday, May 14, 2019 at 2:46:46 PM UTC-7, Harsh Verma wrote:

 Hi Darshan,

 I am running into the exact same issue and cannot post reviews using 
 rbt. Did you find a resolution to this issue?

 Thanks,
 Harsh

 On Wednesday, July 11, 2018 at 8:42:43 AM UTC-7, Darshan MAnge wrote:
>
> Hi All,
>
> I am facing the below issue while running below command
>
> input :
>
> rbt post -d 6389924
>
>
> output:
>
> the issue it pops is : rbtools.clients.errors.SCMError: Path 6303924 
> does not match a valid Perforce path.
>
>
> My Findings:
>
> 1. It is not able to return state of the changelist and thereby making 
> whole revisions variable NONE
>
>
> File perforce.py
>
> def _get_changelist_status(self, changelist):
>
> ...
>
>
> if changelist == self.REVISION_DEFAULT_CLN:
>
> return 'pending'
>
> else:
>
> change = self.p4.change(changelist)
>
> if len(change) == 1 and 'Status' in change[0]:
>
> return change[0]['Status']
>
>
> return None
>
>
> 2. return change[0]['Status'] in this line it is not able to find 
> Status key inside the change object
>
>
> output of line : change = self.p4.change(changelist) is 
>
>
> {b'code': b'stat', b'Change': b'6303924', b'Date': b'2018/07/09 
> 17:22:22', b'Client': b'dmange-cmd-vapi', ..., }
>
>
> 3. I guess while decoding it using marshal in below line, it is 
> somehow not able to convert it to dictionary. 
>
>
> line 283 : data = marshal.load(p.stdout)
>
>
> Please let me know if anyone can help me resolving this issue, i 
> changed marshal to json and pickle, an another form of decoder, but still 
> i 
> was not able to solve the issue. 
>
>
> Thanks and Regards,
>
> Darshan Mange
>


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/a494ea09-6302-4f03-9dae-2ab111ba271dn%40googlegroups.com.


Re: Path 6303924 does not match a valid Perforce path.

2019-05-15 Thread Harsh Verma
For anyone who might find this thread for the issue.

I resolved it by modifying the /usr/bin/rbt script to use python 2.7 
instead of python 3.6 since I have both installed and rbt script was using 
python 3.6.

Patch:

1c1
< #!/usr/bin/python3.6
---
> #!/usr/bin/python


On Wednesday, May 15, 2019 at 9:28:03 AM UTC-7, Harsh Verma wrote:
>
> I already have it in my ~/.reviewboardrc file
>
> On Tuesday, May 14, 2019 at 2:50:48 PM UTC-7, Steve McCarthy wrote:
>>
>> In  ~/.reviewboardrc add:
>>
>> REPOSITORY_TYPE = "perforce"
>>
>> Got me past this error.
>>
>> -Steve
>>
>>
>>
>> On Tuesday, May 14, 2019 at 2:46:46 PM UTC-7, Harsh Verma wrote:
>>>
>>> Hi Darshan,
>>>
>>> I am running into the exact same issue and cannot post reviews using 
>>> rbt. Did you find a resolution to this issue?
>>>
>>> Thanks,
>>> Harsh
>>>
>>> On Wednesday, July 11, 2018 at 8:42:43 AM UTC-7, Darshan MAnge wrote:

 Hi All,

 I am facing the below issue while running below command

 input :

 rbt post -d 6389924


 output:

 the issue it pops is : rbtools.clients.errors.SCMError: Path 6303924 
 does not match a valid Perforce path.


 My Findings:

 1. It is not able to return state of the changelist and thereby making 
 whole revisions variable NONE


 File perforce.py

 def _get_changelist_status(self, changelist):

 ...


 if changelist == self.REVISION_DEFAULT_CLN:

 return 'pending'

 else:

 change = self.p4.change(changelist)

 if len(change) == 1 and 'Status' in change[0]:

 return change[0]['Status']


 return None


 2. return change[0]['Status'] in this line it is not able to find 
 Status key inside the change object


 output of line : change = self.p4.change(changelist) is 


 {b'code': b'stat', b'Change': b'6303924', b'Date': b'2018/07/09 
 17:22:22', b'Client': b'dmange-cmd-vapi', ..., }


 3. I guess while decoding it using marshal in below line, it is somehow 
 not able to convert it to dictionary. 


 line 283 : data = marshal.load(p.stdout)


 Please let me know if anyone can help me resolving this issue, i 
 changed marshal to json and pickle, an another form of decoder, but still 
 i 
 was not able to solve the issue. 


 Thanks and Regards,

 Darshan Mange

>>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/3faaceb4-b8f0-40d3-b255-e086d9a901cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Path 6303924 does not match a valid Perforce path.

2019-05-15 Thread Harsh Verma
I already have it in my ~/.reviewboardrc file

On Tuesday, May 14, 2019 at 2:50:48 PM UTC-7, Steve McCarthy wrote:
>
> In  ~/.reviewboardrc add:
>
> REPOSITORY_TYPE = "perforce"
>
> Got me past this error.
>
> -Steve
>
>
>
> On Tuesday, May 14, 2019 at 2:46:46 PM UTC-7, Harsh Verma wrote:
>>
>> Hi Darshan,
>>
>> I am running into the exact same issue and cannot post reviews using rbt. 
>> Did you find a resolution to this issue?
>>
>> Thanks,
>> Harsh
>>
>> On Wednesday, July 11, 2018 at 8:42:43 AM UTC-7, Darshan MAnge wrote:
>>>
>>> Hi All,
>>>
>>> I am facing the below issue while running below command
>>>
>>> input :
>>>
>>> rbt post -d 6389924
>>>
>>>
>>> output:
>>>
>>> the issue it pops is : rbtools.clients.errors.SCMError: Path 6303924 
>>> does not match a valid Perforce path.
>>>
>>>
>>> My Findings:
>>>
>>> 1. It is not able to return state of the changelist and thereby making 
>>> whole revisions variable NONE
>>>
>>>
>>> File perforce.py
>>>
>>> def _get_changelist_status(self, changelist):
>>>
>>> ...
>>>
>>>
>>> if changelist == self.REVISION_DEFAULT_CLN:
>>>
>>> return 'pending'
>>>
>>> else:
>>>
>>> change = self.p4.change(changelist)
>>>
>>> if len(change) == 1 and 'Status' in change[0]:
>>>
>>> return change[0]['Status']
>>>
>>>
>>> return None
>>>
>>>
>>> 2. return change[0]['Status'] in this line it is not able to find 
>>> Status key inside the change object
>>>
>>>
>>> output of line : change = self.p4.change(changelist) is 
>>>
>>>
>>> {b'code': b'stat', b'Change': b'6303924', b'Date': b'2018/07/09 
>>> 17:22:22', b'Client': b'dmange-cmd-vapi', ..., }
>>>
>>>
>>> 3. I guess while decoding it using marshal in below line, it is somehow 
>>> not able to convert it to dictionary. 
>>>
>>>
>>> line 283 : data = marshal.load(p.stdout)
>>>
>>>
>>> Please let me know if anyone can help me resolving this issue, i changed 
>>> marshal to json and pickle, an another form of decoder, but still i was not 
>>> able to solve the issue. 
>>>
>>>
>>> Thanks and Regards,
>>>
>>> Darshan Mange
>>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/dcf17d68-ceb3-4380-ad69-dcec355672f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Path 6303924 does not match a valid Perforce path.

2019-05-14 Thread Steve McCarthy
In  ~/.reviewboardrc add:

REPOSITORY_TYPE = "perforce"

Got me past this error.

-Steve



On Tuesday, May 14, 2019 at 2:46:46 PM UTC-7, Harsh Verma wrote:
>
> Hi Darshan,
>
> I am running into the exact same issue and cannot post reviews using rbt. 
> Did you find a resolution to this issue?
>
> Thanks,
> Harsh
>
> On Wednesday, July 11, 2018 at 8:42:43 AM UTC-7, Darshan MAnge wrote:
>>
>> Hi All,
>>
>> I am facing the below issue while running below command
>>
>> input :
>>
>> rbt post -d 6389924
>>
>>
>> output:
>>
>> the issue it pops is : rbtools.clients.errors.SCMError: Path 6303924 
>> does not match a valid Perforce path.
>>
>>
>> My Findings:
>>
>> 1. It is not able to return state of the changelist and thereby making 
>> whole revisions variable NONE
>>
>>
>> File perforce.py
>>
>> def _get_changelist_status(self, changelist):
>>
>> ...
>>
>>
>> if changelist == self.REVISION_DEFAULT_CLN:
>>
>> return 'pending'
>>
>> else:
>>
>> change = self.p4.change(changelist)
>>
>> if len(change) == 1 and 'Status' in change[0]:
>>
>> return change[0]['Status']
>>
>>
>> return None
>>
>>
>> 2. return change[0]['Status'] in this line it is not able to find Status 
>> key inside the change object
>>
>>
>> output of line : change = self.p4.change(changelist) is 
>>
>>
>> {b'code': b'stat', b'Change': b'6303924', b'Date': b'2018/07/09 
>> 17:22:22', b'Client': b'dmange-cmd-vapi', ..., }
>>
>>
>> 3. I guess while decoding it using marshal in below line, it is somehow 
>> not able to convert it to dictionary. 
>>
>>
>> line 283 : data = marshal.load(p.stdout)
>>
>>
>> Please let me know if anyone can help me resolving this issue, i changed 
>> marshal to json and pickle, an another form of decoder, but still i was not 
>> able to solve the issue. 
>>
>>
>> Thanks and Regards,
>>
>> Darshan Mange
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/93f4feed-903f-432c-8a17-c914433c4707%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Path 6303924 does not match a valid Perforce path.

2019-05-14 Thread Harsh Verma
Hi Darshan,

I am running into the exact same issue and cannot post reviews using rbt. 
Did you find a resolution to this issue?

Thanks,
Harsh

On Wednesday, July 11, 2018 at 8:42:43 AM UTC-7, Darshan MAnge wrote:
>
> Hi All,
>
> I am facing the below issue while running below command
>
> input :
>
> rbt post -d 6389924
>
>
> output:
>
> the issue it pops is : rbtools.clients.errors.SCMError: Path 6303924 does 
> not match a valid Perforce path.
>
>
> My Findings:
>
> 1. It is not able to return state of the changelist and thereby making 
> whole revisions variable NONE
>
>
> File perforce.py
>
> def _get_changelist_status(self, changelist):
>
> ...
>
>
> if changelist == self.REVISION_DEFAULT_CLN:
>
> return 'pending'
>
> else:
>
> change = self.p4.change(changelist)
>
> if len(change) == 1 and 'Status' in change[0]:
>
> return change[0]['Status']
>
>
> return None
>
>
> 2. return change[0]['Status'] in this line it is not able to find Status 
> key inside the change object
>
>
> output of line : change = self.p4.change(changelist) is 
>
>
> {b'code': b'stat', b'Change': b'6303924', b'Date': b'2018/07/09 17:22:22', 
> b'Client': b'dmange-cmd-vapi', ..., }
>
>
> 3. I guess while decoding it using marshal in below line, it is somehow 
> not able to convert it to dictionary. 
>
>
> line 283 : data = marshal.load(p.stdout)
>
>
> Please let me know if anyone can help me resolving this issue, i changed 
> marshal to json and pickle, an another form of decoder, but still i was not 
> able to solve the issue. 
>
>
> Thanks and Regards,
>
> Darshan Mange
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/a88be7c8-c25e-4916-a64c-a22cf67aa4f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.