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.

Reply via email to