472,796 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,796 software developers and data experts.

py2exe, mx.ODBC

Hi

- Win2000
- Python 2.3.3
- py2exe 0.5.0
- eGenix Comercial & Base Package

I am developing an app using mxODBC. On the home page they say

http://www.egenix.com/files/python/mxODBC.html#Hints

that one has to include

-i mx.ODBC.Windows,mx.DateTime

for py2exe find the appropriate files.

Well, I did that and called my setup.py as follows:

python setup.py py2exe -i mx.ODBC.Windows,mx.DateTime

The files and exes are created... here an excerpt of the creation log:

running py2exe
[... creating dirs zipped ...]

*** searching for required modules ***
*** parsing results ***
creating python loader for extension '_sre'
creating python loader for extension 'datetime'
creating python loader for extension 'wxPython.gridc'
creating python loader for extension 'wxPython.wxc'
creating python loader for extension 'mx.DateTime.mxDateTime.mxDateTime'
creating python loader for extension 'mx.ODBC.Windows.mxODBC'
*** finding dlls needed ***
*** create binaries ***
*** byte compile python files ***
byte-compiling C:\Python23\lib\site-packages\mx\ODBC\Windows\__init__.py
to mx\ODBC\Windows\__init__.pyc
creating D:\myapp\build\bdist.win32\winexe\collect\mx
creating D:\myapp\build\bdist.win32\winexe\collect\mx\ODBC
creating D:\myapp\build\bdist.win32\winexe\collect\mx\ODBC\ Windows
byte-compiling C:\Python23\lib\site-packages\mx\ODBC\ODBC.py to
mx\ODBC\ODBC.pyc
byte-compiling c:\Python23\lib\copy_reg.py to copy_reg.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\fonts.py to
wxPython\fonts.pyc
creating D:\myapp\build\bdist.win32\winexe\collect\wxPython
byte-compiling C:\Python23\lib\site-packages\wxPython\windows.py to
wxPython\windows.pyc
byte-compiling d:\myapp\grid_tools.py to grid_tools.pyc
byte-compiling c:\Python23\lib\locale.py to locale.pyc
byte-compiling D:\myapp\build\bdist.win32\winexe\temp\_sre.py to _sre.pyc
byte-compiling C:\Python23\lib\site-packages\mx\ODBC\Windows\dbtypes.py to
mx\ODBC\Windows\dbtypes.pyc
byte-compiling c:\Python23\lib\macpath.py to macpath.pyc
byte-compiling c:\Python23\lib\popen2.py to popen2.pyc
byte-compiling c:\Python23\lib\stat.py to stat.pyc
byte-compiling D:\myapp\build\bdist.win32\winexe\temp\datetime.py to
datetime.pyc
byte-compiling c:\Python23\lib\atexit.py to atexit.pyc
byte-compiling D:\myapp\build\bdist.win32\winexe\temp\wxPython.gr idc.py to
wxPython\gridc.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\events.py to
wxPython\events.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\utils.py to
wxPython\utils.pyc
byte-compiling C:\Python23\lib\site-packages\mx\DateTime\DateTime.py to
mx\DateTime\DateTime.pyc
creating D:\myapp\build\bdist.win32\winexe\collect\mx\DateT ime
byte-compiling C:\Python23\lib\site-packages\wxPython\grid.py to
wxPython\grid.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\controls2.py to
wxPython\controls2.pyc
byte-compiling C:\Python23\lib\site-packages\mx\Misc\__init__.py to
mx\Misc\__init__.pyc
creating D:\myapp\build\bdist.win32\winexe\collect\mx\Misc
byte-compiling C:\Python23\lib\site-packages\mx\DateTime\Parser.py to
mx\DateTime\Parser.pyc
byte-compiling d:\myapp\addresses_impl.py to addresses_impl.pyc
byte-compiling C:\Python23\lib\site-packages\mx\DateTime\Timezone.py to
mx\DateTime\Timezone.pyc
byte-compiling
C:\Python23\lib\site-packages\mx\DateTime\mxDateTime\__init__.py to
mx\DateTime\mxDateTime\__init__.pyc
creating D:\myapp\build\bdist.win32\winexe\collect\mx\DateT ime\mxDateTime
byte-compiling C:\Python23\lib\site-packages\wxPython\printfw.py to
wxPython\printfw.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\misc.py to
wxPython\misc.pyc
byte-compiling c:\Python23\lib\linecache.py to linecache.pyc
byte-compiling c:\Python23\lib\warnings.py to warnings.pyc
byte-compiling c:\Python23\lib\_strptime.py to _strptime.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\streams.py to
wxPython\streams.pyc
byte-compiling c:\Python23\lib\sre_constants.py to sre_constants.pyc
byte-compiling c:\Python23\lib\re.py to re.pyc
byte-compiling C:\Python23\lib\site-packages\mx\DateTime\ISO.py to
mx\DateTime\ISO.pyc
byte-compiling c:\Python23\lib\ntpath.py to ntpath.pyc
byte-compiling C:\Python23\lib\site-packages\mx\DateTime\ARPA.py to
mx\DateTime\ARPA.pyc
byte-compiling c:\Python23\lib\sre_compile.py to sre_compile.pyc
byte-compiling D:\myapp\build\bdist.win32\winexe\temp\wxPython.wx c.py to
wxPython\wxc.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\filesys.py to
wxPython\filesys.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\stattool.py to
wxPython\stattool.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\controls.py to
wxPython\controls.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\__version__.py to
wxPython\__version__.pyc
byte-compiling c:\Python23\lib\string.py to string.pyc
byte-compiling c:\Python23\lib\rfc822.py to rfc822.pyc
byte-compiling c:\Python23\lib\UserDict.py to UserDict.pyc
byte-compiling d:\myapp\addresses_wdr.py to addresses_wdr.pyc
byte-compiling C:\Python23\lib\site-packages\mx\Misc\LazyModule.py to
mx\Misc\LazyModule.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\wx.py to
wxPython\wx.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\sizers.py to
wxPython\sizers.pyc
byte-compiling c:\Python23\lib\repr.py to repr.pyc
byte-compiling
D:\myapp\build\bdist.win32\winexe\temp\mx.DateTime .mxDateTime.mxDateTime.py
to mx\DateTime\mxDateTime\mxDateTime.pyc
byte-compiling c:\Python23\lib\sre_parse.py to sre_parse.pyc
byte-compiling c:\Python23\lib\copy.py to copy.pyc
byte-compiling
D:\myapp\build\bdist.win32\winexe\temp\mx.ODBC.Win dows.mxODBC.py to
mx\ODBC\Windows\mxODBC.pyc
byte-compiling c:\Python23\lib\types.py to types.pyc
byte-compiling c:\Python23\lib\posixpath.py to posixpath.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\windows3.py to
wxPython\windows3.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\windows2.py to
wxPython\windows2.pyc
byte-compiling d:\myapp\inihandler.py to inihandler.pyc
byte-compiling c:\Python23\lib\sre.py to sre.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\cmndlgs.py to
wxPython\cmndlgs.pyc
byte-compiling C:\Python23\lib\site-packages\mx\__init__.py to
mx\__init__.pyc
byte-compiling c:\Python23\lib\os2emxpath.py to os2emxpath.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\frames.py to
wxPython\frames.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\__init__.py to
wxPython\__init__.pyc
byte-compiling c:\Python23\lib\calendar.py to calendar.pyc
byte-compiling C:\Python23\lib\site-packages\mx\ODBC\__init__.py to
mx\ODBC\__init__.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\image.py to
wxPython\image.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\mdi.py to
wxPython\mdi.pyc
byte-compiling C:\Python23\lib\site-packages\mx\DateTime\__init__.py to
mx\DateTime\__init__.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\gdi.py to
wxPython\gdi.pyc
byte-compiling c:\Python23\lib\os.py to os.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\misc2.py to
wxPython\misc2.pyc
byte-compiling C:\Python23\lib\site-packages\wxPython\clip_dnd.py to
wxPython\clip_dnd.pyc
*** copy extensions ***
copying c:\Python23\DLLs\_sre.pyd -> D:\myapp\dist
copying c:\Python23\DLLs\datetime.pyd -> D:\myapp\dist
copying C:\Python23\lib\site-packages\wxPython\gridc.pyd -> D:\myapp\dist
copying C:\Python23\lib\site-packages\wxPython\wxc.pyd -> D:\myapp\dist
copying
C:\Python23\lib\site-packages\mx\DateTime\mxDateTime\mxDateTime.pyd ->
D:\myapp\dist
copying C:\Python23\lib\site-packages\mx\ODBC\Windows\mxODBC.pyd ->
D:\myapp\dist
*** copy dlls ***
copying C:\WINNT\system32\python23.dll -> D:\myapp\dist
copying C:\Python23\lib\site-packages\wxPython\wxmsw24h.dll ->
D:\myapp\dist
copying C:\WINNT\system32\ODBC32.dll -> D:\myapp\dist
copying c:\Python23\w9xpopen.exe -> D:\myapp\dist
*** copy data files ***
copying clients16x16.bmp -> D:\myapp\dist\
copying clients16x16_mask.bmp -> D:\myapp\dist\
copying clients32x32.ico -> D:\myapp\dist\
copying C:\Python23\lib\site-packages\py2exe\run_w.exe ->
D:\myapp\dist\addresses.exe
The following modules appear to be missing
['mxDateTime.__version__', 'mx.ODBC.Windows.DriverConnect']
As you can see, in the last two lines it complains about not finding
mxDateTime.__version__ and mx.ODBC.Windows.DriverConnect.

The wxWindows application runs but has of course no database connection.
Am I missing here something? Here are the files created in the dist-folder:

clients16x16_mask.bmp
clients32x32.ico
datetime.pyd
addresses.exe
gridc.pyd
library.zip
mxDateTime.pyd
mxODBC.pyd
ODBC32.dll
python23.dll
w9xpopen.exe
wxc.pyd
wxmsw24h.dll
_sre.pyd

As you can see: mxDateTime.pyd and mxODBC.pyd are here...

Do you have any ideas what I must do, that mxODBC can be added properly to
the "exe"?

Thanks for any hints,
Greetings,
Marco
Jul 18 '05 #1
0 2160

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
2
by: Stefan Behrens | last post by:
Hi, does anybody know how I can get py2exe to work with wxPython's wxCalendarCtrl? Currently, I have just a "standard" setup.py, and py2exe gives me a syntax error. Do I need to include any...
0
by: Kathleen Kudzma | last post by:
I'm having a problem with py2exe for Python 2.3. I got fixed the Lookuperror no codec search functions registered: can't find encoding by following the instructions on the py2exe page (added...
8
by: Kathleen Kudzma | last post by:
Does anyone know how to resolve the following problem that I'm getting in Python 2.2 and 2.3? PROBLEM: When I try to create a classReader object I get an exception: "SAXReaderNotAvailable: No...
0
by: Steven Bell | last post by:
I am trying to build an executable from a python script. Using python 2.3, SOAPpy 0.10.3, Py2exe 0.4.2. Build command: python setup.py py2exe -w --includes xml.sax.drivers2.drv_py I get the...
6
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
2
by: Marc Ederis | last post by:
Hello, I'm trying to create an executable with py2exe, and it uses the odbc module. The script runs fine until I use py2exe on it and run the ..exe. Then I get: -- Traceback (most recent...
0
bartonc
by: bartonc | last post by:
You can find the original author of the script by ggling " Py2Exe version 6.3 setup" The cool thing about this is that it calls py2exe, just in case you're uncomfortable with the command line. I had...
0
by: Larry Bates | last post by:
Jimmy Retzlaff wrote: Everyone, Thanks for all your hard work on py2exe, it is greatly appreciated. -Larry Bates
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.