Thread subject: sK1 Project :: Cannot load plugin module cgmloader under Windows XP SP3

Posted by Alfabrega on 21-01-2010 12:01
#1

C:\Python26\Scripts>uniconv 42269.cgm 42269.wmf

C:\Python26\Scripts>c:\Python26\python.exe -c "from uniconvertor import uniconv;
uniconv();" "42269.cgm" "42269.wmf"
c:\Python26\lib\site-packages\uniconvertor\app\utils\locale_utils.py:9: Deprecat
ionWarning: The popen2 module is deprecated. Use the subprocess module.
from popen2 import popen2
Cannot load plugin module cgmloader
Traceback (most recent call last):
File "c:\Python26\lib\site-packages\uniconvertor\app\plugins\plugins.py", line
73, in load_module
desc)
File "c:\Python26\lib\site-packages\uniconvertor\app/plugins/Filters/cgmloader
.py", line 336, in <module>
init.text.fontindex = fntlst.index("Times-Roman")
ValueError: list.index(x): x not in list
When importing plugin cgmloader
Traceback (most recent call last):
File "c:\Python26\lib\site-packages\uniconvertor\app\plugins\plugins.py", line
147, in __call__
module = self.load_module()
File "c:\Python26\lib\site-packages\uniconvertor\app\plugins\plugins.py", line
73, in load_module
desc)
File "c:\Python26\lib\site-packages\uniconvertor\app/plugins/Filters/cgmloader
.py", line 336, in <module>
init.text.fontindex = fntlst.index("Times-Roman")
ValueError: list.index(x): x not in list
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\Python26\lib\site-packages\uniconvertor\__init__.py", line 82, in uni
conv
doc = load.load_drawing(input_file)
File "c:\Python26\lib\site-packages\uniconvertor\app\io\load.py", line 364, in
load_drawing
return load_drawing_from_file(file, filename)
File "c:\Python26\lib\site-packages\uniconvertor\app\io\load.py", line 325, in
load_drawing_from_file
loader = info(file, filename, match)
File "c:\Python26\lib\site-packages\uniconvertor\app\plugins\plugins.py", line
154, in __call__
'message':self.class_name})
app.events.skexceptions.SketchError: Cannot load filter cgmloader.CGMLoader

Please help!!!

Edited by Alfabrega on 21-01-2010 12:05

Posted by paul mccormack on 26-01-2010 13:54
#2

I'm having the same issue with importing CGM with version 1.1.4 released with protable apps version of inkscape.

Traceback report reads:
UniConvertor failed:



Cannot load plugin module cgmloader


Traceback (most recent call last):


File "J:\PortableApps\InkscapePortable\App\Inkscape\python\lib\site-packages\uniconvertor\app\plugins\plugins.py", line 73, in load_module


desc)


File "J:\PortableApps\InkscapePortable\App\Inkscape\python\lib\site-packages\uniconvertor\app/plugins/Filters/cgmloader.py", line 336, in <module>


init.text.fontindex = fntlst.index("Times-Roman")


ValueError: list.index(x): x not in list


When importing plugin cgmloader


Traceback (most recent call last):


File "J:\PortableApps\InkscapePortable\App\Inkscape\python\lib\site-packages\uniconvertor\app\plugins\plugins.py", line 147, in __call__


module = self.load_module()


File "J:\PortableApps\InkscapePortable\App\Inkscape\python\lib\site-packages\uniconvertor\app\plugins\plugins.py", line 73, in load_module


desc)


File "J:\PortableApps\InkscapePortable\App\Inkscape\python\lib\site-packages\uniconvertor\app/plugins/Filters/cgmloader.py", line 336, in <module>


init.text.fontindex = fntlst.index("Times-Roman")


ValueError: list.index(x): x not in list


Traceback (most recent call last):


File "<string>", line 1, in <module>


File "J:\PortableApps\InkscapePortable\App\Inkscape\python\lib\site-packages\uniconvertor\__init__.py", line 72, in <module>


doc = load.load_drawing(sys.argv[1])


File "J:\PortableApps\InkscapePortable\App\Inkscape\python\lib\site-packages\uniconvertor\app\io\load.py", line 364, in load_drawing


return load_drawing_from_file(file, filename)


File "J:\PortableApps\InkscapePortable\App\Inkscape\python\lib\site-packages\uniconvertor\app\io\load.py", line 325, in load_drawing_from_file


loader = info(file, filename, match)


File "J:\PortableApps\InkscapePortable\App\Inkscape\python\lib\site-packages\uniconvertor\app\plugins\plugins.py", line 154, in __call__


'message':self.class_name})


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

Any support on this would be appreciated. Problem exists even when no text present in source CGM.

Paul

Posted by igor on 26-01-2010 20:31
#3

Hi,

I have checked attached file. The file contains newer CGM format version which is not supported by our parser. So unfortunately this is not a bug and we cannot fixing it. It's just request to improve CGM format support.

Edited by igor on 26-01-2010 21:32

Posted by Alfabrega on 29-01-2010 12:18
#4

Igor! Thank you for your response! How do I know which cgm formats supported UniConverter.

Regards, Alfabrega

Posted by sghege on 21-05-2010 19:13
#5

Hi,

I've looking to use this to convert CGM files and trace this issue to the program not being able to find the fonts. How should the fonts and font directories be set-up? The font directory under share is empty with only a place-holder file.

Thanks,
Steve

Posted by igor on 22-05-2010 08:54
#6

Hi Steve!

I would recommend you waiting for UniConvertor 1.1.5 for Windows. We have resolved this issue for win32/64 versions. Now UniConvertor detects win system fonts using registry.

Unfortunately windows build is not a simple task so I wouldn't recommend building yourself from trunk source code. UniConvertor release will be soon. We are going to announce the release on next week on LGM2010 conference.