Inkscape 未返回乳胶输出

Inkscape 未返回乳胶输出

当我尝试在 inkscape 中使用 latex 时(我使用的是 Ubuntu 18.04 和 inkscape 版本 0.92),我得到以下输出:

Inkscape 已从执行的脚本中收到附加数据。脚本未返回错误,但这可能表示结果不会如预期。

白色方框内显示以下内容:

  ./base/gsicc_manage.c:1244: gsicc_open_search(): Could not find default_gray.icc 

| ./base/gsicc_manage.c:2261: gsicc_init_iccmanager(): cannot find default icc profile

  ./base/gsicc_manage.c:1244: gsicc_open_search(): Could not find default_gray.icc 

| ./base/gsicc_manage.c:2025: gsicc_set_device_profile(): cannot find device profile

**** Unable to open the initial device, quitting.

PostScript/PDF Interpreter finished. Return status 256 executed command : /usr/bin/gs -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS "/tmp/psinf3HoKG"

The interpreter seems to have failed, cannot proceed !

Traceback (most recent call last):
  File "eqtexsvg.py", line 160, in <module>
    e.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 283, in affect
    self.effect()
  File "eqtexsvg.py", line 154, in effect
    svg_open(self, svg_file)
  File "eqtexsvg.py", line 81, in svg_open
    doc = inkex.etree.parse(filename)
  File "src/lxml/etree.pyx", line 3426, in lxml.etree.parse
  File "src/lxml/parser.pxi", line 1839, in lxml.etree._parseDocument
  File "src/lxml/parser.pxi", line 1865, in lxml.etree._parseDocumentFromURL
  File "src/lxml/parser.pxi", line 1769, in lxml.etree._parseDocFromFile
  File "src/lxml/parser.pxi", line 1162, in lxml.etree._BaseParser._parseDocFromFile
  File "src/lxml/parser.pxi", line 600, in lxml.etree._ParserContext._handleParseResultDoc
  File "src/lxml/parser.pxi", line 710, in lxml.etree._handleParseResult
  File "src/lxml/parser.pxi", line 639, in lxml.etree._raiseParseError
  File "/tmp/inkscape-QFgxMh/eq.svg", line 1
lxml.etree.XMLSyntaxError: Document is empty, line 1, column 1

它没有生成任何乳胶输出。有什么解决办法吗?

答案1

显然,这是关于 ghostscript 损坏的问题,这里它对我的作用是

sudo rmdir /usr/share/ghostscript/9.25/iccprofiles sudo apt-get install --reinstall libgs9-common

相关内容