JW wrote: > pModule=PyImport_ImportModule("func"); //fileread.py Why do you try to load func, when the module is called fileread.py? > PyErr_Print(); > fprintf(stderr,"Failed to load \"%s\"\n","func"); [...] > What am i doing wrong? You are not telling us what the Python exception was that you got. Regards, Martin