Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

I'm new to Python and while I'm certain this is a Python 101 question, it has befuddled me for this last week. Im trying to write a plugin for Adobe Painter in Python and need it to interact with ...
Jesse.Art's user avatar
0 votes
0 answers
34 views

I am doing some experiments with P4Python API, and noticed this difference in CLI vs API. If I try to re-create a stream that I had previously deleted using p4 stream -d, the CLI is fine with that: p4 ...
shikhanshu's user avatar
  • 1,548
-1 votes
2 answers
64 views

I'm looking for the commands for these things: Does file exist in depo? And if so is it checked out? Is local file added? Thanks! (extra info) I've figured out the commands for add and edit, but I ...
Tireless123's user avatar
0 votes
0 answers
92 views

For some reason, when I use the run_login() method on a connected P4 instance inside of the Docker container, it correctly updates the ticket file, but the value stored on the instance does not get ...
hz3d's user avatar
  • 1
1 vote
0 answers
348 views

I’m trying to install P4python library into the latest Anaconda 2023.09-0 version (python 3.11.5). I’m getting following issue: pip install p4python Collecting p4python Using cached p4python-2023.1....
Gevorg Mayilyan's user avatar
1 vote
1 answer
190 views

I am writing an application that retrieves the changelist from Perforce, and lists all the files that have been changed. I want to deploy this on AWS Lambda, but whenever it runs, I get the following ...
user104's user avatar
  • 125
0 votes
2 answers
559 views

I have a TON of files (~260,000) sorted into files with lists of files by type. (binary, binary+Dx, text, text+x, etc...) EI - binary: D:/Workspace/folder1/file.dll D:/Workspace/folder2/file.res D:/...
Xolin_'s user avatar
  • 97
1 vote
1 answer
356 views

I am trying to create and populate streams from a parent using P4Python. using the .run command I can send the terminal command, but I cannot surpress vim opening, which prevents the script from ...
macadam's user avatar
  • 13
0 votes
1 answer
93 views

My job: I want to create a python script that changes the content of a file automatically and then commit the change in Perforce. Because the file at first is read-only. So I need to create a python ...
gnase's user avatar
  • 648
0 votes
1 answer
265 views

Trying to install p4python on Cygwin fails with $pip install p4python [... logs ...] File "/tmp/pip-install-6mn3hyn3/p4python_9e95a104710b449a90a68bc227a2ee69/setup.py", line 292, ...
Zois Tasoulas's user avatar
1 vote
1 answer
113 views

I have a requirement to create multiple perforce labels from my test script. Following snippet creates a perforce label. But it happens to open a .tmp file for me to edit the description and the ...
maskedmenace's user avatar
0 votes
1 answer
459 views

I don’t know why this will raise AttributeError, but in document it seems right https://www.perforce.com/manuals/p4python/Content/P4Python/python.p4_progress.html from P4 import P4, P4Exception, ...
Hanerx's user avatar
  • 3
0 votes
0 answers
130 views

so far I have been using p4.run("files", "@=" + ) to find the affected files per CL. However, I'm having the issue that for certain CLs the output shows 'no files found'. When I ...
anussar's user avatar
0 votes
0 answers
24 views

Here I am trying to migrate my perforce data. The code is below: from P4 import P4, P4Exception p4 = P4() p4.port = "localhost:1666" p4.user = "xyz" p4.client = "xyz" p4....
Ambika Sharma's user avatar
0 votes
1 answer
160 views

I have a threaded timer running to disconnect from p4 after a certain amount of time (because perforce will auto timeout in our application and fails to reconnect). I want to make sure that I do not ...
ghost654's user avatar
  • 171
0 votes
1 answer
53 views

I am writing a script in Python 3.8.7 using the P4Python interface for our Perforce server. There are some circumstances where I don´t want to abort the submit of changes, but I need to inform the ...
Kev1990's user avatar
-2 votes
1 answer
520 views

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 ...
Andranik's user avatar
0 votes
1 answer
557 views

I need to get all the mainline streams of a project. I tried this in the terminal p4 streams -F "Type=mainline" //someproject and got the following error, //ConMod - must refer to client '...
ahmedzahidawais's user avatar
0 votes
1 answer
636 views

I am trying to delete a client but I get the following error : "Identifiers too long. Must not be longer than 1024 bytes of UTF-8." My code goes smth like this: try: client=p4....
user14635293's user avatar
1 vote
0 answers
934 views

I am trying to set timeout to the perforce commands using the net.maxwait configurable as per this document: https://community.perforce.com/s/article/3751 user@test:~/perforce/sandbox$ date; p4 -v net....
Safwan's user avatar
  • 29
0 votes
1 answer
1k views

I am trying to download/sync locally into my Perforce workspace a file from another stream of my P4V, I've tried p4.run_sync("-f", "//depot-of-file") in my python script but it ...
user14635293's user avatar
0 votes
1 answer
160 views

I've been trying to build p4python on 64 bit for windows, but I am getting the following link errors: Creating library build\temp.win-amd64-2.7\Release\P4API.lib and object build\temp.win-amd64-2.7\...
Kotsuki's user avatar
  • 61
0 votes
1 answer
215 views

I am trying to create a patch between two changelist using p4python. I am not getting any success. Below is my attempt: $ vi patchp4.py from P4 import P4,P4Exception p4 = p4() #Performed P4 Connection ...
day dreamer's user avatar
1 vote
2 answers
2k views

I am currently writing a script in Python with the P4Python API which automates the process of checking out a file in Perforce and making some changes to it. I'm currently trying to figure out how to ...
RayH99's user avatar
  • 39
0 votes
1 answer
46 views

I am trying to send json collections from a Flask server to remote Perforce depot using P4Python. Is there a way to do that through Python?
Zargham Khan's user avatar
0 votes
1 answer
2k views

I want to find out there is a p4 command that can find cl submitted in a depot branch from a cl submitted in another depot branch. like - if CL 123 was submitted to branch //code/v1.0/files/... and ...
Nisheeth Iyer's user avatar
1 vote
1 answer
301 views

I am trying to create a P4.MergeData object to use with a resolver. I get this error (in title) when I do: import P4 md = P4.MergeData() How do I create this object? Or if I don't need to, how do I ...
jlw8299's user avatar
  • 11
0 votes
1 answer
935 views

Originally I am trying to implement a customized python based linter to help me out with the lexical code analysis. This linter requires me to point to the directory where the scripts or code files (...
Tayyab Tahir's user avatar
0 votes
1 answer
4k views

I get a changelist number and I am able to add the files to the changelist >>> createdCLNumber '1157545' >>> p4.run_add("-c", createdCLNumber, "/Users/ciasto/ciasto_piekarz/sandbox/...
Ciasto piekarz's user avatar
0 votes
1 answer
786 views

When I am trying to add files from the command line I get the error saying files not in client view what does it mean ? createdCLNumber = p4.save_change(changeList)[0].split()[1] >>> ...
Ciasto piekarz's user avatar
1 vote
2 answers
2k views

I managed to create an empty changelist in my perforce client workspace following the steps below : >>> from P4 import P4,P4Exception >>> p4 = P4() >>> p4.connect() P4 [...
Ciasto piekarz's user avatar
1 vote
1 answer
332 views

For branching I from a certain CL and have it as a changelist I realized that Perforce uses the copy keyword. I'm tryin to use the same keyword but getting an error saying that the options are invalid....
Payam30's user avatar
  • 729
0 votes
1 answer
281 views

I have an issue with undoing changes in Perforce using p4python given that I have sumitted the changelist that I now want to undo. My idea is first to create a changelist and then run the undo. ...
Payam30's user avatar
  • 729
1 vote
1 answer
548 views

While testing my application using p4python I came across an intressting issue. I branch a while ago from a main stream directory to a testing directory, I did a revert on that branching since ...
Payam30's user avatar
  • 729
1 vote
1 answer
91 views

I already figured out how to branch and submit my changes however since I use a project management platform like Jira I also need to write a description on each check ins. This is my code for ...
Payam30's user avatar
  • 729
1 vote
1 answer
849 views

Is there any perforce command or p4 util available to extract the branch name out of depot path. For ex I have depot location as "//depot/folder/suffix" and the branch name as "b-folder-suffix". How ...
sha's user avatar
  • 55
1 vote
0 answers
480 views

Using python and p4python I'm trying to shows the files that are changed in a changelist. I result = p4.run_describe("2631893", tagged = 0) This shows the files in a change list and not what is ...
Payam30's user avatar
  • 729
0 votes
2 answers
2k views

I have following piece of code. I'm trying to check out two files from Perforce and put them in a changelist. But run_add does not check the files out. The only thing I see in Perforce is a empty ...
Payam30's user avatar
  • 729
0 votes
0 answers
1k views

I'm working with Perforce and have a script to check out various files depending on my current task. The issue is that I'd like to store environment variables for the port, user and client so that I ...
sonorityscape's user avatar
0 votes
3 answers
3k views

I get an error when trying to install p4python on macOS 10.15 Catalina. Command pip install p4python. Cannot build P4Python without SSL support Exception: Parameter –ssl is needed When I try to ...
Synck's user avatar
  • 3,748
1 vote
1 answer
3k views

How to create and submit a new file using p4python? create_and_submit_file(full_path_in_depot, new_file_text_content): logging.basicConfig(level=logging.INFO, format=LOG_FORMAT) p4 = get_p4() ...
user2809176's user avatar
  • 1,345
0 votes
0 answers
178 views

I have tried doing below: p4.run('configure', 'set', 'auth.ldap.timeout=30') However, when I try below, I dont see this configuration set. p4.run('configure', 'show') Please let me know if i am ...
Kaushik Lingerkar's user avatar
1 vote
1 answer
300 views

I'm trying to read depot structure without syncing and got stuck on files listing. Why this returns single-item dict: p4.run("dirs", '//folder1/Trunk/projects') but this: p4.run("files", '//...
w.wa's user avatar
  • 35
2 votes
1 answer
441 views

Here is the code I use: from P4 import P4, P4Exception mp = P4.Map() And here's the error I get: mp = P4.Map() AttributeError: type object 'P4' has no attribute 'Map' WHY? According to P4Python ...
w.wa's user avatar
  • 35
2 votes
1 answer
422 views

The pipenv's file has the module p4python specified for installation and below is the relevant line in the docker file which runs the pipenv's module installation. RUN pipenv install --system --...
aman's user avatar
  • 375
0 votes
1 answer
2k views

I have aligned my client perforce and view perforce with all the files and links. Though, while connected through my p4python code base, then it's not able to get/ fetch the updated paths in the view. ...
Indra's user avatar
  • 1
3 votes
3 answers
4k views

** *File "/usr/local/lib/python3.7/site-packages/P4.py", line 410, in <module> import P4API ImportError: /usr/local/lib/python3.7/site-packages/P4API.cpython-37m-x86_64-linux-gnu.so: ...
Srikar Varanasi's user avatar
5 votes
2 answers
7k views

trying to install p4python on Windows 10 with cmd: pip install p4python and getting Using cached https://files.pythonhosted.org/packages/36/5a/...
user2809176's user avatar
  • 1,345
1 vote
3 answers
1k views

I need to check-in the file which is in client workspace. Before check-in i need to verify if the file has been changed. Please tell me how to check this.
Rachan R K's user avatar
0 votes
0 answers
3k views

I am trying to add new to perforce. I getting error as below [Error]: "Null directory (//) not allowed in '//workspaceXXXX//xxxx.txt'." What i am doing: 1) I create a workspace self.p4.client = "...
Rachan R K's user avatar