inkscape 0.46 + windows + uniconverter + cdr

Post questions on how to use or achieve an effect in Inkscape.
nooby

inkscape 0.46 + windows + uniconverter + cdr

Postby nooby » Wed Apr 30, 2008 4:52 am

Hello.
Under ubuntu 8.04 import cdr work perfect.
But under windows i can`t find instruction how to force it work. Please help me.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby sas » Wed Apr 30, 2008 7:49 am

It doesn't work under Windows in Inkscape 0.46. But it should be possible to make it work.

First you need to install UniConvertor (and the Python Image Library) in Inkscape's own copy of Python. That's a bit awkward, as UniConvertor's own installer won't do it (at least, not without some registry hacking). But someone has posted a 7-zip archive of all the necessary files here: https://bugs.launchpad.net/inkscape/+bug/197617/comments/8 - this should be unzipped into Inkscape's Python directory. Add the Python scripts directory to the system path.

Then you'll need uniconv-ext.py and an updated version of cdr_input.inx. Put them in your Inkscape extensions directory (probably C:\Program Files\Inkscape\share\extensions). You also need to change the line

<dependency type="executable" location="path">uniconv</dependency>

in cdr_input.inx to

<dependency type="executable" location="path">uniconv.cmd</dependency>

Then I think it should work.

nooby

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby nooby » Wed Apr 30, 2008 6:21 pm

sas wrote:It doesn't work under Windows in Inkscape 0.46. But it should be possible to make it work.

First you need to install UniConvertor (and the Python Image Library) in Inkscape's own copy of Python. That's a bit awkward, as UniConvertor's own installer won't do it (at least, not without some registry hacking). But someone has posted a 7-zip archive of all the necessary files here: https://bugs.launchpad.net/inkscape/+bug/197617/comments/8 - this should be unzipped into Inkscape's Python directory. Add the Python scripts directory to the system path.

Then you'll need uniconv-ext.py and an updated version of cdr_input.inx. Put them in your Inkscape extensions directory (probably C:\Program Files\Inkscape\share\extensions). You also need to change the line

<dependency type="executable" location="path">uniconv</dependency>

in cdr_input.inx to

<dependency type="executable" location="path">uniconv.cmd</dependency>

Then I think it should work.


mmm... not work. "Failed to load the requested file C:\1.cdr".
in begin of uniconv-ext.py - i add test lines, which create test txt file.

"python uniconv-ext.py c:\1.txt" - create test file, and return svg file in COUT.

but when i open .cdr in inkscape - test txt file not create. uniconv-ext.py - not start.

Maybe problem in cdr_input.inx or somewhere. Any ideas?

nooby

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby nooby » Wed Apr 30, 2008 6:25 pm

"python uniconv-ext.py c:\1.cdr"

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby sas » Wed Apr 30, 2008 7:39 pm

The namespace binding in the .inx file may be a problem - this was added a few days ago, and I don't think it's compatible with 0.46. So remove the namespace declaration

xmlns="http://www.inkscape.org/namespace/inkscape/extension"

from cdr_input.inx and restart Inkscape. Does that work?

nooby

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby nooby » Thu May 01, 2008 5:06 am

Big thanks. It works!!!! :D . If file in root disk, example "c:\1.cdr" - it open without problem.
If file in directory with spaces in path - example - C:\Documents and Settings\Admin\Desktop\1.cdr - ERROR: C:\Documents file is not found!
solve: open C:\Program Files\Inkscape\python\Scripts\uniconv.cmd and
replace

Code: Select all

@python -c "import uniconvertor" "%1" "%2"

on

Code: Select all

@python -c "import uniconvertor" %1 %2


SAS, big respect ))

p72

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby p72 » Sat Jun 28, 2008 6:38 am

nooby wrote:Big thanks. It works!!!! :D . If file in root disk, example "c:\1.cdr" - it open without problem.
If file in directory with spaces in path - example - C:\Documents and Settings\Admin\Desktop\1.cdr - ERROR: C:\Documents file is not found!
solve: open C:\Program Files\Inkscape\python\Scripts\uniconv.cmd and
replace

Code: Select all

@python -c "import uniconvertor" "%1" "%2"

on

Code: Select all

@python -c "import uniconvertor" %1 %2


SAS, big respect ))


Sorry, but I have some problem with UniConvertor. I made all that You told about and UniConverter is not functionally. I have Win XP.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby sas » Sat Jun 28, 2008 7:19 am

You will need to provide more information if you want us to have a chance of working out what's wrong. How exactly does it fail? Does UniConvertor work on the command line?

p72

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby p72 » Sun Jun 29, 2008 12:15 am

sas wrote:You will need to provide more information if you want us to have a chance of working out what's wrong. How exactly does it fail? Does UniConvertor work on the command line?

The UiCinvertor does not start. Inkscape can not load the cdr.files. I can not run "uniconv --help". If you have some tips, ideas, help me, please. The UniConvertor is a most comlicated application.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby sas » Sun Jun 29, 2008 12:30 am

p72 wrote:I can not run "uniconv --help".

If you mean that you get the message "'uniconv' is not recognized as an internal or external command, operable program or batch file" (or something similar), then you need to add the directory where uniconv.cmd is installed (probably C:\Program Files\Inkscape\python\Scripts) to the system path.

p72

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby p72 » Sun Jun 29, 2008 1:57 am

sas wrote:
p72 wrote:I can not run "uniconv --help".

If you mean that you get the message "'uniconv' is not recognized as an internal or external command, operable program or batch file" (or something similar), then you need to add the directory where uniconv.cmd is installed (probably C:\Program Files\Inkscape\python\Scripts) to the system path.


System path is ok, I have that done. I don´t get any message about "uniconv". In inkscape I get message that program" can´t load c: .cdr file ".

Guest

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby Guest » Fri Nov 28, 2008 12:33 am

Hi, I'm trying import CDR files, i do exactely what it writen above, he recognized the CDR files, but give me an error that " RUN TIME ERROR - This apllication has requested the runtime to terminate it in an unusual way.
please contact the apllications support team for more information...."

And after the Inkscape automaticaly close...

Cau U Help me Please

Regards

abrvbr
Posts: 1
Joined: Fri Jan 16, 2009 5:10 pm

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby abrvbr » Fri Jan 16, 2009 5:20 pm

sas wrote:
p72 wrote:I can not run "uniconv --help".

If you mean that you get the message "'uniconv' is not recognized as an internal or external command, operable program or batch file" (or something similar), then you need to add the directory where uniconv.cmd is installed (probably C:\Program Files\Inkscape\python\Scripts) to the system path.


How add direcroty to the system path?

I creat test.cmd file to c:\Program Files\Inscape\test.cmd with text:

python\python.exe share\extensions\uniconv-ext.py c:\1.cdr
pause

I have error code:

C:\Program Files\Inkscape>python\python.exe share\extensions\uniconv-ext.py c:\1
.cdr c:\2.svg
UniConvertor failed: 'uniconv' is not recognized as an internal or external comm
and,
operable program or batch file.
C:\Program Files\Inkscape>pause


Pex

Re: inkscape 0.46 + windows + uniconverter + cdr

Postby Pex » Fri Jun 19, 2009 5:16 am

sas wrote:
p72 wrote:I can not run "uniconv --help".

If you mean that you get the message "'uniconv' is not recognized as an internal or external command, operable program or batch file" (or something similar), then you need to add the directory where uniconv.cmd is installed (probably C:\Program Files\Inkscape\python\Scripts) to the system path.


I have the directory in system path, but "uniconv" not run....Command line write this same text: "'uniconv is not recognized as an internal or external command, operable program or batch file".
This same is, when i go directly to directory where is "uniconv.cmd".....I have Win Vista 64-bit...It may be problem here?
And sorry for my english...it's not my strong side... I hope, it was understandable...


Return to “Help with using Inkscape”