[p4python] P4Python Issues !!!

C Saha csaha at ymail.com
Fri Dec 12 06:00:55 PST 2008

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). 


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
   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"
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

      Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.perforce.com/pipermail/p4python/attachments/20081212/460d5b46/attachment-0001.html>

More information about the p4python mailing list