Import of CGM or CMX files does not work

Bug #704044 reported by Gerhard Jacobs on 2011-01-17
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Undecided
Unassigned

Bug Description

When opening (or importing) files of the CGM (or CMX) format, I get the following error messages:
Inkscape Version 0.48.0.1, Windows XPx64

UniConvertor failed:

Cannot load plugin module cgmloader

Traceback (most recent call last):

  File "C:\Program Files (x86)\Inkscape\python\lib\site-packages\sk1libs\filters\__init__.py", line 84, in load_module

    desc)

  File "C:\Program Files (x86)\Inkscape\python\lib\site-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 "C:\Program Files (x86)\Inkscape\python\lib\site-packages\sk1libs\filters\__init__.py", line 158, in __call__

    module = self.load_module()

  File "C:\Program Files (x86)\Inkscape\python\lib\site-packages\sk1libs\filters\__init__.py", line 84, in load_module

    desc)

  File "C:\Program Files (x86)\Inkscape\python\lib\site-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 "<string>", line 1, in <module>

  File "C:\Program Files (x86)\Inkscape\python\lib\site-packages\uniconvertor\__init__.py", line 95, in uniconv_run

    doc = load.load_drawing(input_file)

  File "C:\Program Files (x86)\Inkscape\python\lib\site-packages\uniconvertor\app\io\load.py", line 377, in load_drawing

    return load_drawing_from_file(file, filename)

  File "C:\Program Files (x86)\Inkscape\python\lib\site-packages\uniconvertor\app\io\load.py", line 334, in load_drawing_from_file

    loader = info(file, filename, match)

  File "C:\Program Files (x86)\Inkscape\python\lib\site-packages\sk1libs\filters\__init__.py", line 165, in __call__

    'message':self.class_name})

app.events.skexceptions.SketchError: Cannot load filter cgmloader.CGMLoader

su_v (suv-lp) wrote :

Could you attach sample files which cause UniConvertor to fail?

tags: added: importing uniconvertor
su_v (suv-lp) wrote :

AFACT also discussed in UniConvertor's support forum:
<http://sk1project.org/forum/viewthread.php?thread_id=81>
although it is unclear to me from the comments if the issue should be solved in UniConvertor 1.1.5 (shipped with Inkscape 0.48.0) or 'not fixable' due to a newer CGM format version not supported by UniConvertor.

Alvin Penner (apenner) wrote :

- attached is an cgm file which generates a similar error message on Windows XP, Inkscape 0.48
- I believe the problem is that the file contains an embedded bitmap, and I am not aware of any uniconvertor file import routines that support bitmaps.

Changed in inkscape:
status: New → Confirmed
Gerhard Jacobs (dongerry) wrote :
pietro42 (ppo) wrote :

hello - this is the error msg I receive in Ubuntu 12 and inkscape 0.48 when I try to import a cgm, which I opened first under Corel 8.0 in wine and then exported from CorelDraw 8.0 as ANSI 3.0 cgm format. If reuired, I could export to some other cgm format like MIL_blabla etc. (running Corel 8.0 under wine)

UniConvertor failed:

Cannot list directory /home/pietro/.uniconvertor:[Errno 2] No such file or directory: '/home/pietro/.uniconvertor'
ignoring it in font_path
Cannot list directory /home/pietro/.uniconvertor:[Errno 2] No such file or directory: '/home/pietro/.uniconvertor'
ignoring it in font_path
Cannot load plugin module cgmloader
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/plugins.py", line 73, in load_module
    desc)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/cgmloader.py", line 336, in <module>
    init.text.fontindex = fntlst.index("Times-Roman")
ValueError: 'Times-Roman' is not in list
When importing plugin cgmloader
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/plugins.py", line 147, in __call__
    module = self.load_module()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/plugins.py", line 73, in load_module
    desc)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/cgmloader.py", line 336, in <module>
    init.text.fontindex = fntlst.index("Times-Roman")
ValueError: 'Times-Roman' is not in list
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/uniconvertor/__init__.py", line 82, in uniconv
    doc = load.load_drawing(input_file)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/io/load.py", line 364, in load_drawing
    return load_drawing_from_file(file, filename)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/io/load.py", line 325, in load_drawing_from_file
    loader = info(file, filename, match)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/plugins.py", line 154, in __call__
    'message':self.class_name})
app.events.skexceptions.SketchError: Cannot load filter cgmloader.CGMLoader

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers