Executing an external python script from django, leads to segmentation fault -


i wrote script while ago, creates figures , few sql querys psycopg2 on postgresql after processing file "a". script works fine when executed on own. tested multiple times. @ moment working on django project, can upload file "a". idea use script made on file, create output, displayed on webside. had no problem implement file uploading process, copyed file subfolder script using shutil. when try run script process file withhin django script, segmentation fault error.

again:

python script #runs 

in django app/views.py

from script import function  function() #segmentation fault 

i know, django in debug modus keeps track of sql querys , excessive memory use can lead segmentation fault. source: turn off sql logging while keeping settings.debug?

as perfoming sql querys inside script guess reason crashes debug behaviour. wondering if there simple way turn debug sql tracking off function ?

or other ideas, why function works outside django environement crash when called django script.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -