The symptom has changed - suddenly (and I swear I didn't change the spec file) the error is no longer "enchant C library not found," it has become the following, I show the full debug output because it seems to show the bundled app executing code out of the pyinstaller's folder and the build folder and also out of the installed enchant egg -- rather than being confined to the bundle.
import encodings # directory /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings
-- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult ist Mitglied bei http://www.7-it.de
--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To post to this group, send email to pyins...@googlegroups.com.
To unsubscribe from this group, send email to pyinstaller...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
To implement the hook you need to:
- find properly enchant plugins (e.g. libenchant_aspell.so,
libenchant_ispell.so, libenchant_myspell.so). On my system they are
located in /opt/local/lib/enchant (it's default location from macports).
- you should put these plugins in directory
YOUR_APP_DIST_DIR/lib/enchant
- then you need to force pyinstaller check to check these plugins for
dynamic depenencies on other .so or .dylib files. You could do this in a
similar way as it is done for qt_plugins. (e.g.
PYINSTALLER_TRUNK/PyInstaller/hooks/hook-PyQt4.QtGui.py)
- to test that it works there is a test case in pyinstaller:
PYINSTALLER_TRUNK/buildtests/libraries/test_enchant.py
- to run it use command
PYINSTALLER_TRUNK/buildtests/runtests.py libraries/test_enchant
- then you need some additional code co collect dictionaries
Hope this helps.
enchant can use both. It depends on backend plugins you have in your
enchant installation and on the format of dictionaries you have.
Have you read the section about Hooks
(http://www.pyinstaller.org/export/latest/trunk/doc/Manual.html#hooks).
I must admit, that the Manual is not quite clear about this. I will try
to improve the text.
Have you read the section about Hooks (http://www.pyinstaller.org/export/latest/trunk/doc/Manual.html#hooks).
I must admit, that the Manual is not quite clear about this. I will try to improve the text.
On Tue, Nov 15, 2011 at 12:16 AM, Hartmut Goebel <h.go...@goebel-consult.de> wrote:
I must admit, that the Manual is not quite clear about this. I will try to improve the text.
That would be good, but I think what is more important is that to me, it is not clear what pyinstaller is trying to do. It is trying to assemble a run-time environment that contains everything the app needs, yes, but what are all those pieces? And how are they arranged and connected to each other? You need to explain that first.