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

566 views Asked by At

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

1

There are 1 answers

2
Bryan Pendleton On BEST ANSWER

In your linked image, the error message is:

File C:\give\null_file.txt is not inside permitted filesystem path c:/Users/agrahari

This indicates that your workspace definition isn't properly describing the layout of your files on your laptop.

Use P4V to edit your workspace, which is named agrahari_agrahari-WX-1_3545. When you do that, you will see (I believe) that the workspace Root: is defined as:

Root: c:\

That is telling Perforce that your Perforce-managed files can be located anywhere on your laptop in subdirectories of c:\.

Howwever, somehow you have set some other Perforce configuration setting, probably P4CLIENTPATH, to the value c:/Users/agrahari, indicating that Perforce-managed files can only be located in subdirectories of c:/Users/agrahari.

That's a relatively-uncommon thing to do, so I'm not certain how you did that. Perhaps you can provide more information about what configuration settings you have? For example, right-click on the //depot/give subfolder in your Depot browser tab and do "Open command prompt here" and then do:

p4 set

and update your question with the data that it shows.

If you can figure out where/why you set P4CLIENTPATH, you could either:

  1. Remove that setting, or
  2. Change P4CLIENTPATH to c:\give