I went digging in the temporary files that Inkscape generates, and all the tex and ps files are there, and they have been created without a problme, but the svg file is nowhere to be found. To me that indicates that maybe the problem is the creation of the svg that fails for some reason. So I tried running the pstoedit command which is executed in eqtexsvg directly from the command line, and that works without a problem -- I get the svg, and it looks fine in Firefox (it is also included below). I tried editing eqtexsvg so that the full path to pstoedit was hardcoded, but that did not change the behaviour at all.
My conclusion (which may be incorrect) is that the version of pstoedit I have installed has problems with the libraries which are included in the OSX version of Inkscape I am using (0.46.3). I use MacPorts, and everything seems to be up to date. If anything, the error seems to indicate that my version is _too recent_ for the libraries included in Inkscape.
Has anyone encountered this problem and solved it? Is there are clear way to get around this problem? I'd really like to make Inkscape my tool for illustrating my research papers ...
pstoedit: version 3.45 / DLL interface 108 (build Aug 12 2008 - release build - g++ 4.0.1 (Apple Inc. build 5465)) : Copyright (C) 1993 - 2007 Wolfgang Glunz
Problem during opening /opt/local/lib/pstoedit/libp2edrvlplot.0.0.0.so:dlopen(/opt/local/lib/pstoedit/libp2edrvlplot.0.0.0.so, 1): Library not loaded: /opt/local/lib/libpng12.0.dylib
Referenced from: /opt/local/lib/pstoedit/libp2edrvlplot.0.0.0.so
Reason: Incompatible library version: libp2edrvlplot.0.0.0.so requires version 30.0.0 or later, but libpng12.0.dylib provides version 27.0.0
Problem during opening of pstoedit driver plugin: /opt/local/lib/pstoedit/libp2edrvlplot.0.0.0.so. This is no problem as long the driver in this library is not needed. Possibly you need to install further libraries and/or extend the LD_LIBRARY_PATH (*nix) or PATH (Windows) environment variables.
Problem during opening /opt/local/lib/pstoedit/libp2edrvlplot.0.so:dlopen(/opt/local/lib/pstoedit/libp2edrvlplot.0.so, 1): Library not loaded: /opt/local/lib/libpng12.0.dylib
Referenced from: /opt/local/lib/pstoedit/libp2edrvlplot.0.so
Reason: Incompatible library version: libp2edrvlplot.0.so requires version 30.0.0 or later, but libpng12.0.dylib provides version 27.0.0
Problem during opening of pstoedit driver plugin: /opt/local/lib/pstoedit/libp2edrvlplot.0.so. This is no problem as long the driver in this library is not needed. Possibly you need to install further libraries and/or extend the LD_LIBRARY_PATH (*nix) or PATH (Windows) environment variables.
Problem during opening /opt/local/lib/pstoedit/libp2edrvlplot.so:dlopen(/opt/local/lib/pstoedit/libp2edrvlplot.so, 1): Library not loaded: /opt/local/lib/libpng12.0.dylib
Referenced from: /opt/local/lib/pstoedit/libp2edrvlplot.so
Reason: Incompatible library version: libp2edrvlplot.so requires version 30.0.0 or later, but libpng12.0.dylib provides version 27.0.0
Problem during opening of pstoedit driver plugin: /opt/local/lib/pstoedit/libp2edrvlplot.so. This is no problem as long the driver in this library is not needed. Possibly you need to install further libraries and/or extend the LD_LIBRARY_PATH (*nix) or PATH (Windows) environment variables.
Traceback (most recent call last):
File "Contents/Resources/extensions/eqtexsvg.py", line 119, in <module>
e.affect()
File "/Applications/Inkscape.app/Contents/Resources/extensions/inkex.py", line 154, in affect
self.effect()
File "Contents/Resources/extensions/eqtexsvg.py", line 114, in effect
svg_open(self, svg_file)
File "Contents/Resources/extensions/eqtexsvg.py", line 67, in svg_open
doc = inkex.etree.parse(filename)
File "etree.pyx", line 2045, in etree.parse
File "parser.pxi", line 970, in etree._parseDocument
File "parser.pxi", line 974, in etree._parseDocumentFromURL
File "parser.pxi", line 891, in etree._parseDocFromFile
File "parser.pxi", line 582, in etree._BaseParser._parseDocFromFile
File "parser.pxi", line 656, in etree._handleParseResult
File "parser.pxi", line 622, in etree._raiseParseError
IOError: Error reading file '/var/folders/Xa/XaqHO9PeEC8K-Nrd0L9xWk+++TM/-Tmp-/inkscape-UJr2T5/eq.svg': failed to load external entity "/var/folders/Xa/XaqHO9PeEC8K-Nrd0L9xWk+++TM/-Tmp-/inkscape-UJr2T5/eq.svg"
[svg]
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" baseProfile="full" id="body" width="8in" height="8in" viewBox="0 0 1 1" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events">
<title>SVG drawing</title>
<desc>This was produced by version 4.2 of GNU libplot, a free library for exporting 2-D vector graphics.</desc>
<rect id="background" x="0" y="0" width="1" height="1" stroke="none" fill="white"/>
<g id="content" transform="translate(-0.03125,1.1875) scale(1,-1) scale(0.0017361) " xml:space="preserve" stroke="black" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10.433" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1" fill="none" fill-rule="even-odd" fill-opacity="1" font-style="normal" font-variant="normal" font-weight="normal" font-stretch="normal" font-size-adjust="none" letter-spacing="normal" word-spacing="normal" text-anchor="start">
<path d="M472.64,421.04 L472.67,421.17 L472.7,421.32 L472.75,421.49 L472.79,421.67 L472.85,421.86 L472.91,422.07 L472.97,422.28 L473.04,422.51 L473.12,422.74 L473.21,422.98 L473.31,423.23 L473.41,423.47 L473.52,423.72 L473.64,423.97 L473.77,424.22 L473.91,424.47 L474.06,424.71 L474.21,424.95 L474.38,425.18 L474.56,425.4 L474.74,425.62 L474.94,425.82 L475.15,426.01 L475.37,426.19 L475.6,426.35 L475.85,426.49 L475.97,426.56 L476.1,426.62 L476.23,426.67 L476.37,426.72 L476.51,426.77 L476.65,426.81 L476.79,426.84 L476.94,426.87 L477.09,426.89 L477.25,426.91 L477.41,426.92 L477.57,426.92 C477.82,426.92,479.02,426.92,480.06,426.27 C478.66,426.02,477.67,424.78,477.67,423.59 C477.67,422.79,478.21,421.84,479.56,421.84 C480.66,421.84,482.25,422.74,482.25,424.73 C482.25,427.32,479.31,428.02,477.62,428.02 C474.73,428.02,472.98,425.38,472.39,424.23 C471.14,427.52,468.45,428.02,467.01,428.02 C461.83,428.02,458.99,421.59,458.99,420.35 C458.99,419.85,459.49,419.85,459.59,419.85 C459.98,419.85,460.13,419.95,460.23,420.39 C461.93,425.68,465.21,426.92,466.91,426.92 C467.86,426.92,469.6,426.47,469.6,423.59 C469.6,422.04,468.75,418.7,466.91,411.73 C466.11,408.64,464.37,406.55,462.18,406.55 C461.88,406.55,460.73,406.55,459.69,407.2 C460.93,407.45,462.03,408.49,462.03,409.89 C462.03,411.23,460.93,411.63,460.18,411.63 C458.69,411.63,457.45,410.33,457.45,408.74 C457.45,406.45,459.93,405.45,462.13,405.45 C465.41,405.45,467.21,408.94,467.36,409.24 C467.96,407.39,469.75,405.45,472.74,405.45 C477.87,405.45,480.71,411.88,480.71,413.12 C480.71,413.62,480.26,413.62,480.11,413.62 C479.66,413.62,479.56,413.42,479.46,413.07 C477.82,407.74,474.43,406.55,472.84,406.55 C470.89,406.55,470.1,408.14,470.1,409.84 C470.1,410.93,470.39,412.03,470.95,414.22 Z " stroke-width="0" fill="black" />
<path d="M501.61,430.35 H500.42 C500.32,429.58,499.97,427.52,499.52,427.17 C499.24,426.96,496.55,426.96,496.07,426.96 H489.65 C493.31,430.21,494.53,431.18,496.62,432.82 C499.2,434.88,501.61,437.04,501.61,440.36 C501.61,444.57,497.91,447.15,493.45,447.15 C489.12,447.15,486.2,444.12,486.2,440.91 C486.2,439.13,487.7,438.96,488.04,438.96 C488.88,438.96,489.89,439.55,489.89,440.81 C489.89,441.43,489.65,442.66,487.84,442.66 C488.92,445.13,491.29,445.9,492.93,445.9 C496.41,445.9,498.23,443.18,498.23,440.36 C498.23,437.32,496.07,434.91,494.95,433.66 L486.55,425.36 C486.2,425.05,486.2,424.98,486.2,424 H500.56 Z " stroke-width="0" fill="black" />
</g>
</svg>
[/svg]