You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: