Hello Everyone,
Because of Inkscape, I started drawing an online comic. I'm now working on a bigger project with this excellent program and I need to use some of the advanced features in the effects menu.
I'm running Inkscape 0.45 on OS X 10.4.9. I've followed the instruction on the Inkscape wiki http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX#pyXML on how to install pyXML and it seems to have installed without any problems. However, when I try to use the effects menu, I still get the error: "|The inkex.py module requires PyXML. Please download the latest version from http://pyxml.sourceforge.net/.|"
Is there a step that I'm missing?
Thank you for any help,
-Grey
Hi Grey,
On 2007-March-31 , at 09:45 , Grey wrote:
Because of Inkscape, I started drawing an online comic. I'm now working on a bigger project with this excellent program and I need to use some of the advanced features in the effects menu.
very nice!
I'm running Inkscape 0.45 on OS X 10.4.9. I've followed the instruction on the Inkscape wiki on how to install pyXML and it seems to have installed without any problems. However, when I try to use the effects menu, I still get the error: "The inkex.py module requires PyXML. Please download the latest version from http://pyxml.sourceforge.net/."
I need a little more info. Which Effect in particular are you trying? Are you on PPC or Intel? If on PPC, did you compiled pyXML yourself or did you install the precompiled binary? How long ago did you installed them? (I uploaded a new package something like 2 weeks ago) Can you check if you have a folder named _xmlplus in the directory / Library/Python/2.3/site-packages)? In a Terminal type: ls /Library/Python/2.3/site-packages Can you give me the output of the commands (in Terminal): which python and python -V
Thank you
JiHO --- http://jo.irisson.free.fr/
I need a little more info. Which Effect in particular are you trying?
The main one I've been trying is render function, but I get the same error for all of the effects. (With the exception of render grid)
Are you on PPC or Intel?
Intel
If on PPC, did you compiled pyXML yourself or did you install the precompiled binary? How long ago did you installed them? (I uploaded a new package something like 2 weeks ago)
I'm on Intel. I downloaded PyXML-0.8.4.tar.gz from sourceforge.net two days ago.
Can you check if you have a folder named _xmlplus in the directory / Library/Python/2.3/site-packages)?
No there isn't a folder name that.
In a Terminal type: ls /Library/Python/2.3/site-packages Can you give me the output of the commands (in Terminal): which python and python -V
ls /Library/Python/2.3/site-packages yeilds:
Extras.pth README
python yeilds:
Python 2.5 (r25:51908, Mar 30 2007, 11:43:19) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information.
python -v yeilds:
# installing zipimport hook import zipimport # builtin # installed zipimport hook # /sw/lib/python2.5/site.pyc matches /sw/lib/python2.5/site.py import site # precompiled from /sw/lib/python2.5/site.pyc # /sw/lib/python2.5/os.pyc matches /sw/lib/python2.5/os.py import os # precompiled from /sw/lib/python2.5/os.pyc import posix # builtin # /sw/lib/python2.5/posixpath.pyc matches /sw/lib/python2.5/posixpath.py import posixpath # precompiled from /sw/lib/python2.5/posixpath.pyc # /sw/lib/python2.5/stat.pyc matches /sw/lib/python2.5/stat.py import stat # precompiled from /sw/lib/python2.5/stat.pyc # /sw/lib/python2.5/UserDict.pyc matches /sw/lib/python2.5/UserDict.py import UserDict # precompiled from /sw/lib/python2.5/UserDict.pyc # /sw/lib/python2.5/copy_reg.pyc matches /sw/lib/python2.5/copy_reg.py import copy_reg # precompiled from /sw/lib/python2.5/copy_reg.pyc # /sw/lib/python2.5/types.pyc matches /sw/lib/python2.5/types.py import types # precompiled from /sw/lib/python2.5/types.pyc import _types # builtin # /sw/lib/python2.5/warnings.pyc matches /sw/lib/python2.5/warnings.py import warnings # precompiled from /sw/lib/python2.5/warnings.pyc # /sw/lib/python2.5/linecache.pyc matches /sw/lib/python2.5/linecache.py import linecache # precompiled from /sw/lib/python2.5/linecache.pyc import encodings # directory /sw/lib/python2.5/encodings # /sw/lib/python2.5/encodings/__init__.pyc matches /sw/lib/python2.5/encodings/__init__.py import encodings # precompiled from /sw/lib/python2.5/encodings/__init__.pyc # /sw/lib/python2.5/codecs.pyc matches /sw/lib/python2.5/codecs.py import codecs # precompiled from /sw/lib/python2.5/codecs.pyc import _codecs # builtin # /sw/lib/python2.5/encodings/aliases.pyc matches /sw/lib/python2.5/encodings/aliases.py import encodings.aliases # precompiled from /sw/lib/python2.5/encodings/aliases.pyc # /sw/lib/python2.5/encodings/ascii.pyc matches /sw/lib/python2.5/encodings/ascii.py import encodings.ascii # precompiled from /sw/lib/python2.5/encodings/ascii.pyc Python 2.5 (r25:51908, Mar 30 2007, 11:43:19) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. dlopen("/sw/lib/python2.5/lib-dynload/readline.so", 2); import readline # dynamically loaded from /sw/lib/python2.5/lib-dynload/readline.so
Thank you so much for your help,
-Grey
On 2007-March-31 , at 12:49 , Grey wrote:
[...] python yeilds: Python 2.5 (r25:51908, Mar 30 2007, 11:43:19) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. python -v yeilds: # installing zipimport hook import zipimport # builtin # installed zipimport hook # /sw/lib/python2.5/site.pyc matches /sw/lib/ python2.5/site.py import site # precompiled from /sw/lib/python2.5/ site.pyc # /sw/lib/python2.5/os.pyc matches /sw/lib/python2.5/os.py import os # precompiled from [...]
OK I see. Your default python version is the one in Fink and therefore you installed pyXML inside that Fink version. The issue is that Inkscape uses only the default version of OS X. There are two things you can do:
- reinstall pyXML in Apple's python tree. To do that you can either * edit your .profile or .bashrc or whatever file Fink's adds it's PATH modification in and comment the line which adds Fink's PATH (it looks like: test -r /sw/bin/init.sh && . /sw/bin/init.sh). Then relaunch a Terminal and reinstall pyXML, it should use Apple's python and not the one in Fink * try the install process with the command python2.3 instead of just python (not sure about this one but should work)
- try to have Inkscape use your Fink's tree. To do this right click Inkscape.app, select "Show package content", navigate to Inkscape.app/ Contents/Resources/bin/ and open the file "inkscape" with your favorite text editor. This is a bash script which sets the environment up and opens the actual Inkscape binary afterwards. Modify the PATH line to add Fink's PATH: export PATH="$CWD:$PATH" should read export PATH="$CWD:/sw/bin/:$PATH" I would be curious if this works.
Hope that helps.
JiHO --- http://jo.irisson.free.fr/
I tried your second solution (opening the contents of inkscape.app and modifying the path) and it worked.
Thank you so much for your help,
-Grey
jiho wrote:
On 2007-March-31 , at 12:49 , Grey wrote:
[...] python yeilds: Python 2.5 (r25:51908, Mar 30 2007, 11:43:19) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. python -v yeilds: # installing zipimport hook import zipimport # builtin # installed zipimport hook # /sw/lib/python2.5/site.pyc matches /sw/lib/ python2.5/site.py import site # precompiled from /sw/lib/python2.5/ site.pyc # /sw/lib/python2.5/os.pyc matches /sw/lib/python2.5/os.py import os # precompiled from [...]
OK I see. Your default python version is the one in Fink and therefore you installed pyXML inside that Fink version. The issue is that Inkscape uses only the default version of OS X. There are two things you can do:
- reinstall pyXML in Apple's python tree. To do that you can either
- edit your .profile or .bashrc or whatever file Fink's adds it's
PATH modification in and comment the line which adds Fink's PATH (it looks like: test -r /sw/bin/init.sh && . /sw/bin/init.sh). Then relaunch a Terminal and reinstall pyXML, it should use Apple's python and not the one in Fink
- try the install process with the command python2.3 instead of just
python (not sure about this one but should work)
- try to have Inkscape use your Fink's tree. To do this right click
Inkscape.app, select "Show package content", navigate to Inkscape.app/ Contents/Resources/bin/ and open the file "inkscape" with your favorite text editor. This is a bash script which sets the environment up and opens the actual Inkscape binary afterwards. Modify the PATH line to add Fink's PATH: export PATH="$CWD:$PATH" should read export PATH="$CWD:/sw/bin/:$PATH" I would be curious if this works.
Hope that helps.
JiHO
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D... _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
participants (2)
-
Grey
-
jiho