"import compiler" breaks

Tim Gahnström /Bladerman tim at bladerman.com
Sun Feb 9 10:38:47 EST 2003


Hi
I am working on my masterthesis and need to do some changes in the python
parser and / or compiler modules but there seemes to be something wrong with
my build.

I canot import the compiler module in my own build of python.

I have downloaded the python source and compiled it in MSVC++ 6.0 and
everything seems to work fine, it compiles and I can run pythonscripts and
all but when I try to import the compiler module I get an errormessage that
says

"Import error: No module named parser"

This comes from line 26 in the file \compiler\transformer.py that says
"import parser"

I canot import the parser module myself from the interpreter either, if I
try it says that no such module exists.

Is it the subproject parser that I need to use? I have tried to compile it
but it is not possible to "build" it only compile it. I have also tried to
at the file parsermodule.c to the PCBuild project but it didnt help.

Any help would be apreciated.

Thanks Tim






More information about the Python-list mailing list