alexandre01 / deepsvg

[NeurIPS 2020] Official code for the paper "DeepSVG: A Hierarchical Generative Network for Vector Graphics Animation". Includes a PyTorch library for deep learning with SVG data.

Home Page:https://www.lingosub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ALSA lib errors when importing SVG

athena913 opened this issue · 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