On 17/10/09 05:31, m h wrote:
On Fri, Oct 16, 2009 at 5:23 PM, ~suv <suv-sf@...16...> wrote:
On 16/10/09 22:41, John Culleton wrote:
On Friday 16 October 2009 11:49:21 ~suv wrote:
On 16/10/09 17:41, ~suv wrote:
On 16/10/09 17:19, John Culleton wrote:
Compiled pre4 successfully . Some things like perfect bound cover and bar code don't work. Messages reference lxml in each case. So I iinstalled lxml. Still no joy. I started a recompile.
numpy installed? (at least on OS X I need both lxml and numpy) Do any of the other python extensions work? Try for example 'Text > Lorem ipsum…' or 'Render > Gear…'.
Does Python find all modules? Try running Python from the command line and import lxml: | LeWitt:~ suv$ python | Python 2.6.2 (r262:71600, Aug 23 2009, 06:02:15) | [GCC 4.0.1 (Apple Inc. build 5493)] on darwin | Type "help", "copyright", "credits" or "license" for more information. | | >>> import lxml | >>> print lxml.__path__
Your command line code failed to find the module. What is its exact name? Does it have a .py suffix?
I'm a Python newbie myself and don't know more details about how to correctly install lxml on your linux distribution (on OS X I can use a port utility that handles the dependencies for me when installing python modules). At least it doesn't look like an Inkscape bug ;-)
Any linux+python expert who can help?
On linux, since inkscape extensions are written in python and many of those use the python wrappers for lxml to parse the xml I would assume that the distro should take care of making the python wrappers a dependency for inkscape. On gentoo it does at least.
What about Python modules on Slackware 13? Does one have to install manually - http://codespeak.net/lxml/installation.html#installation? The Slackware Package Browser http://www.slackware.com/packages/ currently seems broken…
I'm not sure about MS/Mac and how that dependency is handled on those platforms. But one should be able to install the python wrappers on those platforms too.
On OS X the Inkscape packaging process takes care of it and bundles the necessary python modules lxml and numpy with the application. The same goes for win32 installer packages which even include the python binary.
When building from SVN however a port manager like MacPorts on OS X helps a lot. On win32 AFAIK one can download (pre-compiled?) dev-libs needed to build Inkscape from SVN.
~suv