Reputation: 2290
I have the following custom script created for blender https://github.com/Korchy/Ozbend_Engraving_Internal
Im trying to use it via SSH like this
blender -b -P __init__.py
But im getting the following error
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM default
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
Traceback (most recent call last):
File "/home/solomio/public_html/engravingcreator/__init__.py", line 19, in <module>
from . import engraving_internal_ops
SystemError: Parent module '' not loaded, cannot perform relative import
How can i solve this ?
Upvotes: 0
Views: 238
Reputation: 7079
The "script" you are trying to run is an addon. You don't run that script, you install and enable the addon to add extra features to blender. Once the addon is enabled you can run a python script that runs the operator it provides, similar to any built-in operators.
This answer shows how to automate that while running blender in the background, for the addon you link to, download a zip of the repo and pass the path to the zip file to addon_install
.
The command to make the addon perform should be bpy.ops.engravinginternal.start()
Upvotes: 1