Thread subject: sK1 Project :: Parsing error with CGM file

Posted by ottadini on 13-12-2011 03:42
#1

I get an error returned when trying to convert a CGM file:
Code
An error occurred: Parsing error: Lost position in File



From cmd line:
Code

Cannot load plugin module cgmloader
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/sk1libs/filters/__init__.py", line 84, in load_module
    desc)
  File "/usr/lib/python2.6/dist-packages/sk1libs/filters/import/cgmloader.py", line 337, in <module>
    init.text.fontindex = fntlst.index((sk1libs.ft2engine.fontlist[0])[0])
IndexError: list index out of range
When importing plugin cgmloader
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/sk1libs/filters/__init__.py", line 158, in __call__
    module = self.load_module()
  File "/usr/lib/python2.6/dist-packages/sk1libs/filters/__init__.py", line 84, in load_module
    desc)
  File "/usr/lib/python2.6/dist-packages/sk1libs/filters/import/cgmloader.py", line 337, in <module>
    init.text.fontindex = fntlst.index((sk1libs.ft2engine.fontlist[0])[0])
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/bin/uniconvertor", line 13, in <module>
    uniconv_run()
  File "/usr/lib/python2.6/dist-packages/uniconvertor/__init__.py", line 95, in uniconv_run
    doc = load.load_drawing(input_file)
  File "/usr/lib/python2.6/dist-packages/uniconvertor/app/io/load.py", line 377, in load_drawing
    return load_drawing_from_file(file, filename)
  File "/usr/lib/python2.6/dist-packages/uniconvertor/app/io/load.py", line 334, in load_drawing_from_file
    loader = info(file, filename, match)
  File "/usr/lib/python2.6/dist-packages/sk1libs/filters/__init__.py", line 165, in __call__
    'message':self.class_name})
app.events.skexceptions.SketchError: Cannot load filter cgmloader.CGMLoader





Posted by igor on 13-12-2011 21:25
#2

I would appreciate if you provide sample file to reproduce this issue. You can send it via email: sk1.project.org(at)gmail.com