If I use, shell=False in the subprocess call, I get the error below File "/usr/lib/python2.7/subprocess.py", line 522, in call Read new prefs: /home/lovepreet/.config/blender/2.69/config/userpref.blendįile "/usr/lib/python2.7/encodings/_init_.py", line 123 But when I try to run it from inside a python script using the subprocess module, I get this error\ subprocess.call(blender -background -python /home/scripts/blender_convertToObj.py -i tempForObjGeneration.iv.wrl -o ObjForAR.obj, shell = True)įatal Python error: Py_Initialize: Unable to get the locale encodingĬolor management: using fallback mode for management If I copy paste this line as it is in terminal, the script runs and I get the desired output. blender -background -python /home/WebRendering/scripts/blender_convertToObj.py -i tempForObjGeneration.iv.wrl -o ObjForAR.obj I have a script which does some format conversion in blender. I am trying to run blender as a background process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |