Questions tagged [p4python]

p4python is a Python interface to Perforce, a source-code control system.

P4Python: Perforce's API for Python allows you to write Python scripts that directly execute Perforce commands. Documentation can be found here: Helix Core P4Python Developer Guide.

98 questions
0
votes
1 answer

P4python Help Perforce password (P4PASSWD) invalid or unset

I'm using P4Python to connect to a P4 server to retrieve results about some changes. The ideal command on CLI is: p4 -p tcp:SERVER:1666 -u USER -P PASSWORD | p4 -p tcp:HOST:1666 -u USER changes /path/...@$PROD_SHA_BUILD,@$SHA_BUILD So I tried to…
Etraud
  • 19
  • 1
  • 5
-1
votes
1 answer

p4python run describe is not returning list

p4.connect() # Connect to the Perforce Server info = p4.run("info") # Run "p4 info" (returns a dict) changes_results = p4.run('changes','-s','submitted', '//components/rel/...@2017/11/01,@2017/12/31') changes_lists =…
-1
votes
3 answers

How to check whether user exists in perforce or not through python script

I want to make script to remove the terminated user from perforce but to do that first have to check whether user exists in perforce or not. I tried below command in python script but did not work. p4.run("users"|grep user) Is there any command in…
Darshan Jain
  • 5
  • 1
  • 5
-1
votes
1 answer

I want to delete user from perforce group through my python script

This command i got from perforce manual: p4 group -o group_name | grep -v user_name | p4 group -i How can i use this command in my script using method p4.run()
Darshan Jain
  • 5
  • 1
  • 5
-1
votes
1 answer

p4python: perforce: file is not under permissible file system path

enter image description hereDon't know where I have messed up. I have ran command from command prompt to change config.txt and now i can't create any new workspace because of this error. please help.enter image description here
manish
  • 43
  • 2
  • 7
-1
votes
1 answer

P4python: get changelist number of latest revision of file checked in in perforce by python code

i have a file abc.txt checked in perforce. through python (using p4 python API) i want to have changelist number of latest revision of that file. please provide runnable code.
manish
  • 43
  • 2
  • 7
-1
votes
2 answers

openpyxl close archive after breaking read operation because max rows are 1048498 rows

I have two problems using openpyxl The number of rows in the spreadsheet are 1048498. The iteration hogs memory so I put a logic to check for first five empty columns and break from it Logic 1 works for me and code does not indefinitely iterate…
Nick
  • 31
  • 11
-2
votes
1 answer

how to check file is opened from python scrip

I need to check file is opened in perforce or not like this: if((p4.run("opened", self.file) != True): but it's not the right way I think it's always true can you please help to solve this Thanks
Andranik
  • 1
  • 2
1 2 3 4 5 6
7