Jump to content
  • Advertisement
Sign in to follow this  

PyRun_SimpleFile(fp, "Test.py") problem

This topic is 2912 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[font="Lucida Console"]Hello i'm trying to implement python so i can use it with my application but having issues with segmentation faults when i call PyRun_SimpleFile(fp, "Test.py");[/font]

[font="Lucida Console"]here's my code[/font]

[font="Lucida Console"]Py_Initialize();

FILE *fp = fopen ("Test.py", "r+");

PyRun_SimpleFile(fp, "Test.py");


[font="Lucida Console"]i had alook around google but i really dont know how to fix the problem what am i supposed to do? here's there errors i'm getting[/font]

[font="Lucida Console"]#0 76F32239 ntdll!EtwNotificationUnregister() (C:\Windows\system32\ntdll.dll:??)
#1 76F32148 ntdll!EtwNotificationUnregister() (C:\Windows\system32\ntdll.dll:??)
#2 6F18F2CF lock_file() (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcr90.dll:??)
#3 6F18E463 getc() (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcr90.dll:??)
#4 76BB2960 msvcrt!_iob() (C:\Windows\system32\msvcrt.dll:??)
#5 00000000 0x85652e52 in ??() (??:??)
#6 1E0ADD9D python27!PyParser_ParseFileFlagsEx() (C:\Windows\system32\python27.dll:??)
#7 1E0ADD9B python27!PyParser_ParseFileFlagsEx() (C:\Windows\system32\python27.dll:??)
#8 1E0AE579 python27!PyParser_ParseFileFlagsEx() (C:\Windows\system32\python27.dll:??)

[font="Lucida Console"]i know its to do with c runtime libarys but what exactly is the solution?[/font]

Share this post

Link to post
Share on other sites
Apparently someones Google skills are lacking, considering that took about 10s to find and looks like a good match...


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!