Hi Martin, Il giorno 06/dic/2011, alle ore 00.14, Martin Zibricky ha scritto:
> Antonio Valentino píše v So 03. 12. 2011 v 10:04 +0100: >> Anyway the real problem seems to be in gathering shared libraries >> associated to GDAL. >> A minimal test program to reproduce the issue is the following: >> >> """ >> #!/usr/bin/env python >> >> from osgeo import gdal >> >> if __name__ == '__main__': >> print(gdal.__version__) >> """ >> >> in this case you only need to install the GDAL package: > > I'm trying the latest svn r1864 with python and gdal from macports: it > works. The minimal test program works well for me. All gdal binaries are > included. So there has to be some issues with the GDAL package you > installed. > > What is the path to the gdal libraries on your system? Maybe gdal is put > in any system location and Pyinstaller ignores it because pyinstaller > does not include system libraries. > On my system gdal is in /Library/Frameworks/GDAL.framework and OGDI is in the same tree: /Library/Frameworks/GDAL.framework/Versions/1.8/Libraries I doubt that GDAL and OGDI can be considered system libraries and I would like to include them in my package in any case. How to do it? I also noticed that you libogdi is not in the list of collected files on your system. It is an optional dependency of GDAL so, probably, you do not have it at all This is the list of files in my dist directory $ ls -1 dist/pkg_test/ GDAL GEOS MacOS.so Nav.so PROJ Python SQLite3 UnixImageIO _AE.so _Ctl.so _Dlg.so _Evt.so _File.so _Menu.so _Qd.so _Res.so _Win.so _bisect.so _bytesio.so _codecs_cn.so _codecs_hk.so _codecs_iso2022.so _codecs_jp.so _codecs_kr.so _codecs_tw.so _collections.so _ctypes.so _curses.so _fileio.so _functools.so _hashlib.so _heapq.so _locale.so _multibytecodec.so _random.so _socket.so _ssl.so _struct.so _tkinter.so _weakref.so array.so audioop.so binascii.so bz2.so cPickle.so cStringIO.so datetime.so eggs fcntl.so gestalt.so icglue.so itertools.so math.so mmap.so numpy.core._dotblas.so numpy.core._sort.so numpy.core.multiarray.so numpy.core.scalarmath.so numpy.core.umath.so numpy.fft.fftpack_lite.so numpy.lib._compiled_base.so numpy.linalg.lapack_lite.so numpy.random.mtrand.so operator.so osgeo._gdal.so osgeo._gdal_array.so osgeo._gdalconst.so parser.so pkg_test readline.so select.so strop.so termios.so time.so unicodedata.so zlib.so Thanks for your effort -- Antonio Valentino -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
