I am using blender from last 2 months and i built a python script to generate animation and it was running pretty nice from command line by \path\to\blender -b -P script.py but i dont know it just stopped working for me yesterday after i installed some 3rd party modules, there is not error in script because i have not changed anything in script when it was working fine. what went wrong with blender, i added a line for printing on command line to get to know that does blender call my script, it just did not print anything, it just loads all the modules and stopped after that.

  • $\begingroup$ this might sound boring but you might just be able to make it work by reinstalling blender $\endgroup$ – Yvain Jul 10 '19 at 18:09
  • $\begingroup$ Might be that the 3rd party module isn't working/compatible and blender stops loading addons? Try running with --debug to see what goes wrong. $\endgroup$ – Robert Gützkow Jul 10 '19 at 18:26
  • $\begingroup$ @gtzkw yeah you are right , i found out the problem, i was importing matplotlib.pyplot which stops blender to execute, i also verified from blender python console, importing matplotlib is fine but can not import pyplot, whats issue? actually i want to see rendered image from command line, is there any other option to do this $\endgroup$ – Bunny Jul 10 '19 at 18:43
  • $\begingroup$ It might depend on a specific version of another module that Blender only offers in a different version (or hasn't even installed). $\endgroup$ – Robert Gützkow Jul 10 '19 at 18:56
  • $\begingroup$ but why would it does not give any error like module not found or something, it just exits python console itself as well as my python script if i try to run it in command line $\endgroup$ – Bunny Jul 10 '19 at 18:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.