473,703 Members | 3,140 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

py2exe, mx.ODBC


- 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


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.mx DateTime.mxDate Time'
creating python loader for extension 'mx.ODBC.Window s.mxODBC'
*** finding dlls needed ***
*** create binaries ***
*** byte compile python files ***
byte-compiling C:\Python23\lib \site-packages\mx\ODB C\Windows\__ini t__.py
to mx\ODBC\Windows \__init__.pyc
creating D:\myapp\build\ bdist.win32\win exe\collect\mx
creating D:\myapp\build\ bdist.win32\win exe\collect\mx\ ODBC
creating D:\myapp\build\ bdist.win32\win exe\collect\mx\ ODBC\Windows
byte-compiling C:\Python23\lib \site-packages\mx\ODB C\ODBC.py to
mx\ODBC\ODBC.py c
byte-compiling c:\Python23\lib \copy_reg.py to copy_reg.pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\fonts.py to
wxPython\fonts. pyc
creating D:\myapp\build\ bdist.win32\win exe\collect\wxP ython
byte-compiling C:\Python23\lib \site-packages\wxPyth on\windows.py to
wxPython\window s.pyc
byte-compiling d:\myapp\grid_t ools.py to grid_tools.pyc
byte-compiling c:\Python23\lib \locale.py to locale.pyc
byte-compiling D:\myapp\build\ bdist.win32\win exe\temp\_sre.p y to _sre.pyc
byte-compiling C:\Python23\lib \site-packages\mx\ODB C\Windows\dbtyp es.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\win exe\temp\dateti me.py to
byte-compiling c:\Python23\lib \atexit.py to atexit.pyc
byte-compiling D:\myapp\build\ bdist.win32\win exe\temp\wxPyth on.gridc.py to
wxPython\gridc. pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\events.py to
wxPython\events .pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\utils.py to
wxPython\utils. pyc
byte-compiling C:\Python23\lib \site-packages\mx\Dat eTime\DateTime. py to
mx\DateTime\Dat eTime.pyc
creating D:\myapp\build\ bdist.win32\win exe\collect\mx\ DateTime
byte-compiling C:\Python23\lib \site-packages\wxPyth on\grid.py to
wxPython\grid.p yc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\controls2.py to
wxPython\contro ls2.pyc
byte-compiling C:\Python23\lib \site-packages\mx\Mis c\__init__.py to
mx\Misc\__init_ _.pyc
creating D:\myapp\build\ bdist.win32\win exe\collect\mx\ Misc
byte-compiling C:\Python23\lib \site-packages\mx\Dat eTime\Parser.py to
mx\DateTime\Par ser.pyc
byte-compiling d:\myapp\addres ses_impl.py to addresses_impl. pyc
byte-compiling C:\Python23\lib \site-packages\mx\Dat eTime\Timezone. py to
mx\DateTime\Tim ezone.pyc
C:\Python23\lib \site-packages\mx\Dat eTime\mxDateTim e\__init__.py to
mx\DateTime\mxD ateTime\__init_ _.pyc
creating D:\myapp\build\ bdist.win32\win exe\collect\mx\ DateTime\mxDate Time
byte-compiling C:\Python23\lib \site-packages\wxPyth on\printfw.py to
wxPython\printf w.pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\misc.py to
wxPython\misc.p yc
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\wxPyth on\streams.py to
wxPython\stream s.pyc
byte-compiling c:\Python23\lib \sre_constants. py to sre_constants.p yc
byte-compiling c:\Python23\lib \re.py to re.pyc
byte-compiling C:\Python23\lib \site-packages\mx\Dat eTime\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\Dat eTime\ARPA.py to
mx\DateTime\ARP A.pyc
byte-compiling c:\Python23\lib \sre_compile.py to sre_compile.pyc
byte-compiling D:\myapp\build\ bdist.win32\win exe\temp\wxPyth on.wxc.py to
wxPython\wxc.py c
byte-compiling C:\Python23\lib \site-packages\wxPyth on\filesys.py to
wxPython\filesy s.pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\stattool.py to
wxPython\statto ol.pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\controls.py to
wxPython\contro ls.pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\__version__. py to
wxPython\__vers ion__.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\addres ses_wdr.py to addresses_wdr.p yc
byte-compiling C:\Python23\lib \site-packages\mx\Mis c\LazyModule.py to
mx\Misc\LazyMod ule.pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\wx.py to
byte-compiling C:\Python23\lib \site-packages\wxPyth on\sizers.py to
wxPython\sizers .pyc
byte-compiling c:\Python23\lib \repr.py to repr.pyc
D:\myapp\build\ bdist.win32\win exe\temp\mx.Dat eTime.mxDateTim e.mxDateTime.py
to mx\DateTime\mxD ateTime\mxDateT ime.pyc
byte-compiling c:\Python23\lib \sre_parse.py to sre_parse.pyc
byte-compiling c:\Python23\lib \copy.py to copy.pyc
D:\myapp\build\ bdist.win32\win exe\temp\mx.ODB C.Windows.mxODB C.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\wxPyth on\windows3.py to
wxPython\window s3.pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\windows2.py to
wxPython\window s2.pyc
byte-compiling d:\myapp\inihan dler.py to inihandler.pyc
byte-compiling c:\Python23\lib \sre.py to sre.pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\cmndlgs.py to
wxPython\cmndlg s.pyc
byte-compiling C:\Python23\lib \site-packages\mx\__i nit__.py to
byte-compiling c:\Python23\lib \os2emxpath.py to os2emxpath.pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\frames.py to
wxPython\frames .pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\__init__.py to
wxPython\__init __.pyc
byte-compiling c:\Python23\lib \calendar.py to calendar.pyc
byte-compiling C:\Python23\lib \site-packages\mx\ODB C\__init__.py to
mx\ODBC\__init_ _.pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\image.py to
wxPython\image. pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\mdi.py to
wxPython\mdi.py c
byte-compiling C:\Python23\lib \site-packages\mx\Dat eTime\__init__. py to
mx\DateTime\__i nit__.pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\gdi.py to
wxPython\gdi.py c
byte-compiling c:\Python23\lib \os.py to os.pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\misc2.py to
wxPython\misc2. pyc
byte-compiling C:\Python23\lib \site-packages\wxPyth on\clip_dnd.py to
wxPython\clip_d nd.pyc
*** copy extensions ***
copying c:\Python23\DLL s\_sre.pyd -> D:\myapp\dist
copying c:\Python23\DLL s\datetime.pyd -> D:\myapp\dist
copying C:\Python23\lib \site-packages\wxPyth on\gridc.pyd -> D:\myapp\dist
copying C:\Python23\lib \site-packages\wxPyth on\wxc.pyd -> D:\myapp\dist
C:\Python23\lib \site-packages\mx\Dat eTime\mxDateTim e\mxDateTime.py d ->
copying C:\Python23\lib \site-packages\mx\ODB C\Windows\mxODB C.pyd ->
*** copy dlls ***
copying C:\WINNT\system 32\python23.dll -> D:\myapp\dist
copying C:\Python23\lib \site-packages\wxPyth on\wxmsw24h.dll ->
copying C:\WINNT\system 32\ODBC32.dll -> D:\myapp\dist
copying c:\Python23\w9x popen.exe -> D:\myapp\dist
*** copy data files ***
copying clients16x16.bm p -> D:\myapp\dist\
copying clients16x16_ma sk.bmp -> D:\myapp\dist\
copying clients32x32.ic o -> D:\myapp\dist\
copying C:\Python23\lib \site-packages\py2exe \run_w.exe ->
D:\myapp\dist\a ddresses.exe
The following modules appear to be missing
['mxDateTime.__v ersion__', 'mx.ODBC.Window s.DriverConnect ']
As you can see, in the last two lines it complains about not finding
mxDateTime.__ve rsion__ 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_ma sk.bmp
clients32x32.ic o

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,
Jul 18 '05 #1
0 2243

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

Similar topics

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- and ActivePython-2.2.1-222. In the sample below, commenting out "import numarray" allows the exe to run. Left in, I get "4.exe has generated errors" etc. I'm going around and around and there isn't much on Google. py2exe output is last.
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 special extension and how? Below is the output I get as well as a small demo app to reproduce the problem.
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 -packages encodings --force-imports encodings). This resolved the codec error. When I tried to create an exe with py2exe I still got the following warnings. Please see the new error I got (after warnings). ...
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 parsers found". This only happens when I run the ..EXE; it does not happen if I run the .PY file. When I'm running the .EXE this exception doesn't happen immediately. It happens as soon as I try to create a classReader object. Please see the...
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 following output: warning: py2exe: ************************************************************************* warning: py2exe: * The following modules were not found: warning: py2exe: * Carbon.Folder
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 Python 2.3) - PIL 1.1.4 - Installer or py2exe : latest versions.
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 call last): File "dbmod.py", line 2, in ? File "odbc.pyo", line 9, in ?
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 to search hi and lo for the example of how to exclude Tkinter. Coming soon: scipy includes and numpy include that gets rid of complaints of missing modules that are fantom errors. # Py2Exe version 6.3 setup file for wxPython GUI programs. #...
by: Larry Bates | last post by:
Jimmy Retzlaff wrote: Everyone, Thanks for all your hard work on py2exe, it is greatly appreciated. -Larry Bates
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.