grepNstepN
grepNstepN

Reputation: 113

Windows Python2.7 path parsing error

I'm attempting to use the python 010 editor template parser

The doc specifically states (to get started):

import pfp
pfp.parse(data_file="C:\path2File\file.SWF",template_file="C:\path2File\SWFTemplate.bt")

However, it throws:

RuntimeError: Unable to invoke 'cpp'. Make sure its path was passed correctly
Original error: [Error 2] The system cannot find the file specified

I've tried everything, from using raw strings:

df = r"C:\path2File\file.swf"
tf = r"C:\path2File\SWFTemplate.bt"

To single and then double '\'s or '/'s in the string. However, it keeps throwing the above error message.

I checked the files are in the path and ensured everything is properly spelled, case sensitively.

To test my paths, I've used the windows "type" (equiv to *nix strings) and passed the strings as args in a subprocess.Popen which worked.

Upvotes: 0

Views: 910

Answers (1)

Wayne Werner
Wayne Werner

Reputation: 51797

The problem is that it's trying to invoke a C++ compiler: cpp and you don't have one.

You'll need to install one, or make sure that your PATH has a cpp.exe on it somewhere.

Upvotes: 1

Related Questions