sK1 Project :: OpenSource Solutions for Prepress
View Thread
 Print Thread
Cannot load plugin module cgmloader under Windows XP SP3
Alfabrega
#1 Print Post
Posted on 21-01-2010 12:01
Member

Posts: 2
Joined: 21.01.10

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!!!
Alfabrega attached the following file:
42269.rar
Edited by Alfabrega on 21-01-2010 12:05
 
paul mccormack
#2 Print Post
Posted on 26-01-2010 13:54
Member

Posts: 1
Joined: 26.01.10

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
 
igor
#3 Print Post
Posted on 26-01-2010 20:31
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

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.
Regards,

Igor Novikov
sK1 Project
Edited by igor on 26-01-2010 21:32
 
Alfabrega
#4 Print Post
Posted on 29-01-2010 12:18
Member

Posts: 2
Joined: 21.01.10

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

Regards, Alfabrega
 
sghege
#5 Print Post
Posted on 21-05-2010 19:13
Member

Posts: 1
Joined: 21.05.10

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
 
igor
#6 Print Post
Posted on 22-05-2010 08:54
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

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.
Regards,

Igor Novikov
sK1 Project
 
Jump to Forum: