[p4python] P4Python Issues !!!

C Saha csaha at ymail.com
Fri Dec 12 04:26:01 PST 2008


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


      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/81076a5d/attachment-0001.html>


More information about the p4python mailing list