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. Hence while integrating some code from perforce location to my sandbox location it's erroring out:
[Warning]: '/local_source_code_filename' - file(s) not in client view.'
or if I am using perforce path, then it's giving below error:
error: '//perforce_code_path'
must refer to client
It throws the below exception:
P4.P4Exception: [P4#run] Warnings during command execution( "p4 integrate '//source_code' '//sandbox')
When I run the command (p4 integrate '//source_code' '//sandbox')
through CLI from the same location, then it's integrating the expected file.
Through Code: p4.run_integrate(perforce_file, sandbox_file) << Not Working
Through CLI: p4 integrate '//source_code' '//sandbox' << Working
p4python shall not error out and shall integrate the expected files from perforce location.