How to Enable Inkscape extensions in Puppy

Paint programs, vector editors, 3d modelers, animation editors, etc.
Message
Author
User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

How to Enable Inkscape extensions in Puppy

#1 Post by darkcity »

The reason Inkscape extensions don't work by just loading the standard Puppy PET is because they require Python, and Python libraries lxml (aka libxml) and numpy (aka ?).

This can be resolved by one of the following methods-

Option 1. Load [url=hhttps://drive.google.com/drive/folders/0B_UQmrFG4zuedWtIQV9IbXZJUkk]python-2.6-lxmlnumpy-cut-i486.pet[/url] - This Pet includes all the parts of Python required to run the extensions. It is made by cutting down the Python from Slacko's devx. To install, download and run.
-This method works on Slacko 5.3.1, Slacko 5.6, Puppy 5.29 3-headed-dog and Polarpup 005.

---

Option 2. Load the appropriate developer devx.sfs - Many devx packages include Python 2.6 and the required libraries (though I couldn't understand exactly where lxml, numpy are derived from, maybe an include?).
-This works for Slacko 5.3.1 and Wary, but NOT Slacko 5.6 or Polarpup 005. Thanks to vtpup for finding this out.

--- ---

Whats in the python-2.6-lxmlnumpy-cut-i486.pet -

Code: Select all

/usr/bin/python2.6
/usr/lib/libpython2.6.so.1.0
/usr/lib/python2.6/  *.pyc and *.so only
/usr/lib/python2.6/site-packages/lxml/ (2.2.8) *.pyc and *.so only
/usr/lib/python2.6/site-packages/numpy/ (1.4.1) *.pyc and *.so only
-minus /usr/lib/python2.6/test/
its 29M uncompressed, any help further reducing its size would be useful
; -)

---

A great feature in Inkscape is to be able to select vectors that are fully covered by ones above. This involves alt-clicking - which is already taken (by default) puppy and in JWM can't be reconfigured A work around is to use OpenBox window manager and config its mouse bindings see-
How to disable/config alt-click-move in OpenBox

----

original post
I can not get any of Inkscape's extensions to work in Puppy. If I run Puppy the terminal it reveals the following error...
Can't Spawn!!! spawn returns: Failed to execute child process "" (No such file or directory)
For example,

if I select 'Extensions > Render > Barcode', enter number and click apply.

I quick message box saying 'Barcode is processing' pops up and vanishes, nothing is done in inkscape, the above message is return in the terminal.

This happens with every extension I have tried. I've tried a few versions of 0.47 and 0.48 to the same effect (using Puppy 5.28). Any suggestions or help appreciated.... :shock:
EDIT link to .pet now working
Last edited by darkcity on Wed 14 Jun 2017, 18:47, edited 9 times in total.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#2 Post by darkcity »

the extensions are storage in

/usr/share/inkscape/extensions/

it may be a problem with the language the extensions are written,

how can I check what languages are installed?

some need python and some xml?

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#3 Post by Aitch »

Try this

http://code.google.com/p/jessyink/wiki/Installation

or this

http://www.evilmadscientist.com/article.php/hershey

Inkscape wiki is down atm, otherwise try that....

also seems to need python AFAICT, see

http://wiki.xmoto.tuxfamily.org/index.p ... cape-0.4.0

Aitch :)

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post by Lobster »

You are using the full Inkscape and not Inkscape Lite (which is modified from an early Inkscape)?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#5 Post by darkcity »

Yes, I'm using the so called 'full-versions' of 0.47 or 0.48.

It may be a problem with the language the extensions are written in, as the code files are in the directory.

I hadn't had chance to look into what Aitch said yet. I would be most grateful if someone could confirm this problem on their machine.

Probably the easiest way to test is install inkscape from the PPM and test any extension. :D

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#6 Post by Flash »

Don't know if this is relevant but I installed Inkscape .48 from PPM in Racy Puppy 5.2.1.90 only to find that it won't open .WMF (Windows Media File) files. have been unable to figure out how to open those files in Racy Puppy as yet. Here's the thread about it.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#7 Post by darkcity »

Thats strange, will test later. I assume inkscape could open WMF in other puppies?

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#8 Post by Flash »

This is the first time I've tried to open WMF files. I have some older multisession Puppy DVDs. Today I should have time to find one and give it a try.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#9 Post by darkcity »

someone written a convertor see post here

http://www.inkscapeforum.com/viewtopic.php?p=6162#p6162

its written for windozer so you'll need wine 8)

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#10 Post by vovchik »

Dear puppians,

There are a few such converters floating around, including wmf2png, wmf2svg and wmf2x (for display). They basically work and I have used them. Thanks for the link above. I compiled the 4 progs that make up this package in Lucid and made a pet. They are command-line progs and seem to work. I tested on a few wmf files. have fun.

With kind regards,
vovchik
Attachments
wmftosvg-alpha.pet
(34.06 KiB) Downloaded 1009 times

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#11 Post by Flash »

Thanks vovchik. I installed wmftosvg in Racy 5.2.1.90. When I run it I get:

Code: Select all

# wmftosvg
wmftosvg: /lib/libc.so.6: version `GLIBC_2.11' not found (required by wmftosvg)
# 

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#12 Post by vovchik »

Dear Flash,

My libc is:

Code: Select all

/lib/libc.so.6 -> libc-2.11.1.so
To find out which version Racy has, run:

Code: Select all

ls -l /lib/libc.so.6
That is the source of the problem. I have a suspicion that Racy has a newer libc, but, actually, the newer libs should be backwards compatible, so I don't get it.

With kind regards,
vovchik

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#13 Post by Flash »

Here's what I get:

Code: Select all

# ls -l /lib/libc.so.6
lrwxrwxrwx 1 root root 14 2011-11-10 01:53 /lib/libc.so.6 -> libc-2.10.1.so
# 

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#14 Post by vovchik »

Dear Flash,

You have an older version of clib :(. I'll try to use Puppy 3.01 for the compilation, which will work in nearly every recent Puppy and will post it soon.

With kind regards,
vovchik

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#15 Post by vovchik »

Dear Flash,

Please try out the attached version. I compiled again using an older clib and it should now work.

With kind regards,
vovchik
Attachments
wmftosvg-alpha-old-clib.pet
(33.96 KiB) Downloaded 1043 times

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#16 Post by Flash »

Thanks, vovchik, that looks like it will work if I can figure out the right command:
# wmftosvg ---help
WMFtoSVG 0.0.7
Usage: wmftosvg [OPTION]... WMF_FILE
See README.txt for information about the available options. [Where is this README file?]
# wmftosvg /tmp/ADVNTURE/ADV003.WMF [/tmp/ADVNTURE is a directory full of .wmf files. I copied it from the CD to /tmp]
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010 ... /svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 3035 2947"
stroke-linecap="round" stroke-linejoin="round" stroke-width="0.85"
fill="none" fill-rule="evenodd">
Followed by a whole lot of similar numbers.

As I write this, my two dogs are snoring a duet. :lol:

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#17 Post by vovchik »

Dear Flash,

Glad you have it running. The readme is here:

Code: Select all

/usr/local/doc/wmftosvg/README.txt
As the program outputs to stdout, you have to redirect the output to a file, e.g.:

Code: Select all

wmftosvg xxx.wmf > xxx.svg
If you put this in a for loop, you can convert an entire dir in one go:

Code: Select all

#! /bin/bash
for a in $(ls *.WMF); do
	# is it a file
	if [ -f "$a" ]; then
		# if yes, set b to $a without .wmf and do conversion
		b=${a%.*}
		wmftosvg "${b}.WMF" > "${b}.svg"
		inkscapelite -z -f "${b}.svg" --export-svg="${b}.svg"
	fi
done
With kind regards,
vovchik

PS. I edited the litttle bash script - I must have been sleeping when I wrote it. Also added batch processing via inkscape lite (comment it out if you don't what to do this). I included that step because the svg files generated by wmftosvg, while basically normal, do not show up in ROX filer because, presumably, they are missing some unix "magic" in the dtd. By running them through inkscapelite, this is fixed automatically and I get my thumbnails!

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#18 Post by Flash »

Thanks, vovchik, your script worked perfectly - though it didn't seem it did anything at all until I right-clicked the eye in ROX to show thumbnails. :)

Code: Select all

wfmtosvg xxx.wmf > xxx.svg
works also, but the size file it yields is only half as big as the one I get when I run the script that converts the entire directory. :?

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#19 Post by vtpup »

Looks like this thread got a little OT.

Darkcity, I'm running Inkscape0.48.0-w5.pet from puppy-wary5 repository in Racy5.3.

I'm able to run extensions including rendering bar codes. (Note: there are a few bugs in this version of Inkscape, apparently solved in bugfix version 0.48.1 -- including a very annoying failure to refresh ruler marks when the cursor moves. Wish we had 0.48.1.) Anyway this version works okay otherwise so far. I installed this big version of Inkscape because I wanted to run Gcodetools, a free downloadable extension. I compiled those and they work well.

What I found:

You do need Python onboard to run the Inkscape extensions, so if you don't have that, you'll need to add it. I have devx loaded.

You may need the lxml package, as well. Go here for that:
http://pypi.python.org/pypi/lxml/

Then after you get that, you have to download an installer for it from here:

http://peak.telecommunity.com/DevCenter/EasyInstall

according to instructions;

Code: Select all

Installation
------------

Get the `easy_install`_ tool and run the following as super-user (or
administrator)::

  easy_install --allow-hosts=lxml.de,*.python.org lxml

But also, one hangup I found was that the installer expected /usr/bin/python2.3 I only had python2.6 in there, so I made a symlink to python2.6 which I named "python2.3". Then the script ran.

Also for running your extensions check to make sure that any python scripts in the /usr/share/inkscape/extensions folder are set to executable. (My newly created Gcodetools extension files had one script that wasn't, and I had to change that.)

Hope this helps!
Attachments
InkscapeBarcodeExtension..png
(28.28 KiB) Downloaded 871 times
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#20 Post by darkcity »

thanks vtpup,

I can confirm extensions work in Slacko too - if its devx sfs is loaded (using inkscape-0.48 from the slacko ppm).

The extensions need Python.

In another version of Puppy I had it working with just the numpy and lxml directories in python.

---

I would like to make a PET as an alternative to having to load a devx sfs. Unfortunately I have no idea how to trim the Python directory down to size, presumably 'test', 'src' and 'doc' directories can be removed, and the .h files? I'm looking at the bare min that allows extensions to works.

8)

Post Reply