[FWTools] try to compile python script to executable file using FWTools libraries

Andrey Khmelevskiy kmelevskiy at gmail.com
Mon Jul 19 11:39:02 EST 2010


Dear collegues,
I am trying to compile python script to executable file using FWTools
libraries.
I am trying to use py2exe program for compiling script (
http://www.py2exe.org).

The script itsel works correctly when run by external IDE and also under the
FWTools shell:


Compilation of exe file from simple scripts work fine. For example from such
a script:
 #simple script
print "Python script to exe test program"
count = 0
while count < 10:
    print "count = " + str(count) +"\n"
    count = count + 1

In case of compilation of script that included libraries:
# import modules
import ogr, os, sys
import gdal
from gdalconst import *

I've got following error:
The following modules appear to be missing
['Numeric', '_gdal']

Properties:
Windows XP (SP3), ArcGIS 9.3.1 with Python25 (C:\Python25\\), after that FW
Tools 2.4.7 was installed (that goes with Python 2.3.4).

Any ideas how to find solution for this issue or use any other software?
Thank you in advance
-- 
Best regards,
Andrey Khmelevskiy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/fwtools/attachments/20100719/113986c0/attachment.htm 


More information about the FWTools mailing list