On Thursday 07 September 2006 12:27, Thomas Heller wrote: > Giovanni Bajo schrieb: > > After that, you have several solutions. One is to explicitally import > > "Gnumed.wxpython" yourself in your code. You don't even know to actually > > execute the code: > > > > if 0: # hint for PyInstaller > > import Gnumed.wxpython # yes, i want the wxpython plugin > > If Pyinstaller still parses the bytecode to find import statements, > this will not work because blocks starting with 'if 0:' are optimized > away. Using a function that's never called should be safer: > > def hint(): > import Gunmed.wxPython
Hi! I worked with the hooks which turned to be easy and now GNUmed flies. But only on the system used to build the pyinstaller. On another system it complain about missing libraries such as libpython2.4.so depsite the fact that the *.so file *is* right there, included in the same directory as the built gnumed executable. What do I miss here ? built on SUSE 10.1 tested on same system --> works fine tested on Debian Sarge --> missing library Ok I went ahead and added the distgnumed directory to the LD-PATH and now it complains of somethinh different : ./gnumed: relocation error: ./gnumed: symbol __strcpy_chk, version GLIBC_2.3.4 not defined in file libcso.6 with link time reference Any help is appreciated -- Sebastian Hilbert Leipzig / Germany [www.gnumed.de] -> PGP welcome, HTML ->/dev/null _______________________________________________ PyInstaller mailing list [email protected] http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller
