deepsvg icon indicating copy to clipboard operation
deepsvg copied to clipboard

ALSA lib errors when importing SVG

Open athena913 opened this issue 3 years ago • 0 comments

Hi, I tried out the following small example program that is in the README. as a python script and ran it on the command line. But I am get errors related to ALSA lib when the import SVG line is executed. The code and errors are provided below. I have installed all the dependencies listed in the requirements file, but I am using a more recent version of torch (1.8.1) and torchvision. ALSA lib seems to be related to sound card, I am not sure how it is related to the SVG library. I would appreciate any suggestions for fixing these ALSA lib errors.

thanks

import sys
sys.path.append("../")
from deepsvg.svglib.svg import SVG    #<--- results in the errors below
from deepsvg.svglib.geom import Point, Angle

icon = SVG.load_svg("../docs/imgs/dolphin.svg").normalize()
icon.simplify_heuristic()  #simplify path
icon.zoom(0.75).translate(Point(0, 5)).rotate(Angle(15)) #scale,translate,rotate
icon.draw()

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:2495:(snd_pcm_open_noupdate) Unknown PCM default
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:2495:(snd_pcm_open_noupdate) Unknown PCM default


athena913 avatar Jan 19 '22 03:01 athena913