[p4python] Authentication problems

Daryl Spitzer daryl.spitzer at gmail.com
Mon Jul 28 17:41:07 PDT 2008


That didn't work for me; perhaps the problem is in our authentication code.

--
Daryl


On Sat, Jul 26, 2008 at 4:04 AM, Robert Cowham <robert at vaccaperna.co.uk> wrote:
> The following works with official P4Python 2007.3:
>
>>>> p4.identify()
> 'Perforce - The Fast Software Configuration Management System.\nCopyright
> 1995-2008 Perforce Software.  All rights reser
> ved.\nRev. P4Python/NTX86/2007.3/147242 (2007.3 API) (2008/02/20).\n'
>
>>>> p4.run_logout()
> ['User bruno logged out.']
>>>> p4.password = "brunopass"
>>>> p4.run_login()
> ['User bruno logged in.']
>
>> -----Original Message-----
>> From: p4python-bounces at perforce.com
>> [mailto:p4python-bounces at perforce.com] On Behalf Of Daryl Spitzer
>> Sent: 25 July 2008 22:39
>> To: p4python at perforce.com
>> Subject: Re: [p4python] Authentication problems
>>
>> I'll answer my own question...
>>
>> Replacing the p4.run_login() call with:
>>
>> os.popen('echo %s | p4 -p %s -u %s login -a'
>>            % (P4PASSWD, P4PORT, P4USER))
>>
>> ...does the trick.  (And I removed the p4.password assignment.)
>>
>> --
>> Daryl
>
>



More information about the p4python mailing list