halamalala / inkscape2tikz

Automatically exported from code.google.com/p/inkscape2tikz
Other
22 stars 2 forks source link

Show a helpful error message when dependencies are not found #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Open a svg file created in inkscape
2.Select effects>export>export to Tikz path
3.Select output=tikzpicture, crop picture, Export to clipboard, wrap paths,
indent output

What is the expected output? What do you see instead?
I get an error given below in the additional information.

What version of the product are you using? On what operating system?
inkscape0.46, ubuntu 9.04.

Please provide any additional information below.

traceback (most recent call last):
  File "/home/venkat/.inkscape/extensions/tikz_export.py", line 73, in <module>
    from svg2tikz.inkexlib import inkex
ImportError: No module named svg2tikz.inkexlib

Original issue reported on code.google.com by venkat.s...@gmail.com on 2 Feb 2010 at 12:37

Attachments:

GoogleCodeExporter commented 8 years ago
Looks like the extension can't find one or all of the following files:

    * inkex.py
    * simplestyle.py
    * simplepath.py 

Have you remembered to copy those files into your .inkscape/extensions 
directory?
You can find them here if you don't have them:
http://inkscape2tikz.googlecode.com/hg/svg2tikz/inkexlib/

Original comment by kjel...@gmail.com on 2 Feb 2010 at 12:59

GoogleCodeExporter commented 8 years ago

Original comment by kjel...@gmail.com on 2 Feb 2010 at 1:02

GoogleCodeExporter commented 8 years ago
I  have the files, as the following excerpts indicate.  Earlier, I just checked 
in the 
synaptic package manager the list of installed files for inkscape.  So, to be
doubly sure I checked again.
venkat@venkat-laptop:/usr/share/inkscape/extensions$ ls -al inkex.py
-rwxr-xr-x 1 root root 6549 2009-04-09 05:19 inkex.py
venkat@venkat-laptop:/usr/share/inkscape/extensions$ ls -al simplestyle.py
-rwxr-xr-x 1 root root 6223 2009-04-09 05:19 simplestyle.py
venkat@venkat-laptop:/usr/share/inkscape/extensions$ ls -al simplepath.py
-rwxr-xr-x 1 root root 6610 2009-04-09 05:19 simplepath.py
Are the versions OK?  Do I need newer ones?
Do they have to be copied in the ./inkscape/extensions directory?
even if they are in /usr/share/inkscape/extensions directory?

Original comment by venkat.s...@gmail.com on 3 Feb 2010 at 10:16

GoogleCodeExporter commented 8 years ago
It is important that the files are in the same directory as tikz_export.py
Alternatively you can put tikz_export.py in the/usr/share/inkscape/extensions
directory (if you have the right file permissions)

I know this is a bit inconvenient. When tikz_export is mature, I will ask the
inkscape team to include the extension in the main distribution. 

Original comment by kjel...@gmail.com on 3 Feb 2010 at 7:38

GoogleCodeExporter commented 8 years ago

Original comment by kjel...@gmail.com on 15 Jul 2012 at 5:36