[p4python] P4Python Issues !!!

Robert Cowham robert at vizim.com
Fri Dec 12 06:11:07 PST 2008


Trust me - you are not logged in on your production server (as the specifed
user) but you are on the test server.
 
Try 
 
p4 -p  perforce:1666 -u csaha login -s
 
and look at the output of "p4 tickets"


  _____  

From: C Saha [mailto:csaha at ymail.com] 
Sent: 12 December 2008 14:01
To: Robert Cowham; p4python at perforce.com
Subject: Re: [p4python] P4Python Issues !!!


Hi Robert 
 
Thanks for the reply ... 
 
I also thought so ... but the same code is actually working perfectly on
another P4 duplicate server (my test server - where my credentials are same)
but I am getting this errors when I am pointing to my Production Perforce
Server (perforce:1666). 
 
Thanks
Chirantan


  _____  

From: Robert Cowham <robert at vizim.com>
To: C Saha <csaha at ymail.com>; p4python at perforce.com
Sent: Friday, 12 December, 2008 9:32:38 PM
Subject: RE: [p4python] P4Python Issues !!!


You either need to login in manually or run the .login() command


  _____  

From: p4python-bounces at perforce.com [mailto:p4python-bounces at perforce.com]
On Behalf Of C Saha
Sent: 12 December 2008 12:26
To: p4python at perforce.com
Subject: [p4python] P4Python Issues !!!


Hi All 

 

I am using P4Python for developing a python program but I am getting this
error when I am exeecuting this command in my python program [
p4c.run("dirs","//depot/FinanceIT/RegIT/*") ]. 

 

Error is 

========================

Traceback (most recent call last):
 File "C:\DevIIS\Inetpub\WWWroot\report\not in use\aa.py", line 21, in
<module>
   top_level_dir_list = p4c.run("dirs","//depot/FinanceIT/RegIT/*")
 File "C:\Python25\lib\site-packages\P4.py", line 284, in run
   return P4API.P4Adapter.run(self, *self.__flatten(args))
P4Exception: [P4#run] Errors during command execution( "p4 dirs
//depot/FinanceIT/RegIT/*" )

       [Error]: Perforce password (P4PASSWD) invalid or unset.

 

 

My code is this 

 

=========================================================

 

#! "c:\python25\python.exe"

 

 

import os, sys, cgi, P4

 

p4c = P4.P4()
run = p4c.run
p4c.port = "perforce:1666"
p4c.user = "csaha"
p4c.password = "MyPasswd"
p4c.client = "csaha-test"
p4c.connect()

top_level_dir_list = p4c.run("dirs","//depot/FinanceIT/RegIT/*")

print top_level_dir_list


=========================================================

 

 

 

Any idea, where am I making mistake? 

 

 

 

Thanks in advance to all 

 

 

Thanks & Regards

Chirantan Saha


  _____  

Did you know? You can CHAT without downloading messenger. Click here
<http://in.rd.yahoo.com/tagline_webmessenger_2/*http://in.webmessenger.yahoo
.com/> 


  _____  

Be the first one to try the new Messenger 9 Beta! Click
<http://in.rd.yahoo.com/tagline_messenger_7/*http://in.messenger.yahoo.com/w
in/> here.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.perforce.com/pipermail/p4python/attachments/20081212/f883df19/attachment-0001.html>


More information about the p4python mailing list