[p4python] P4Python Issues !!!

Robert Cowham robert at vizim.com
Fri Dec 12 05:32:38 PST 2008


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
<http://in.rd.yahoo.com/tagline_webmessenger_2/*http://in.webmessenger.yahoo
.com/> here

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


More information about the p4python mailing list